Quantcast
Channel: LabVIEW topics
Viewing all 68981 articles
Browse latest View live

Is it possible to create a variable size subVi (extensible)?

$
0
0

I was wondering if it is possible to create a subVi where its size (and imputs/outputs) can be extended. To be clear, something like the concatenate funcion, where you can change its size by making it bigger.


FlexRIO development on desktop PC

$
0
0

Hello,

I have a LabView FPGA project for a FlexRIO PXIe-7966R board, mounted in a PXIe-1082 chassis with a controller running Windows (no RT). I would like to use my desktop PC to compile the FPGA vi. I tried the steps explain here to set-up a new target on my development computer, but the PXIe-7966R does not show up in the "Add Targets" dialog. I have NI FlexRIO 14.0 and NI PXI Platform services installed on my computer.

Is there additionnal software or drivers that I need to install on my development computer? Or do I need to compile on the PXI controller?

Can't create standalone application

$
0
0

Hi there Smiley Happy

 

I've been searching all day the way to build an standalone app but I can't follow the steps. I'll explain myself:

 

I've an student version of LabVIEW 2014. I've checked and I've got the Application Builder licese activated

Captura.PNG

 

But when I go to my project and right click on "Build Specifications"->"New",  I don't have the "Application" option, just the "Source Distribution". Everywhere I see says I've to do this, but I can't find it.

 

I fear this is a stupid checkbox thing or something I'm not seeing, so if anyone could help me I'd be very gratefull Smiley Happy

 

Best regards.

find optimum solution

$
0
0

Hi everyone,

i need your help in this vi, I have 4 2D arrays, gin, gjn, gif and gjf, 42X20 ... where the 42 represent different casses, and 20 represents 20 observations for each case. the objective is that for each case independantly, all the observations of gin must be larger than gjn, and all observations of gif is less than gjf.... of course this is not the case, so i'm searching for single  value L1 and a single value L2 to add to gi and gj to make these conditions true for all the 42 cases (each case is independant). (L1 and L2 are ln(x) functions)

i tried to write a vi to do this, but somehow it doesn't work as expected... your help will be appreciated

thanks

how to build the cluster of user event refnum

$
0
0

I'm trying to understand and copy this sub-VI, but I have problem in building this cluster of user event refnum, and how do I build the local variable?

 

1.png

 

\2.png

labview fpga dll issue

$
0
0

Hello 

 

I am quiet new with labview FPGA and have a question regarding controlling an FPGA via a third party host; in this case C# visual studio executable/application.

I wrote a simple program in my SBRIO9636 FPGA module that has two input; one is a FPGA input pin (that i control via hardware button) and the other one is a software button that i want to control via software, in this case a C# executable. both buttons send a boolean signal in an FPGA AND gate and output to an external FPGA pin (connected to a LED)

I generated a DLL of the FPGA that opens the "FPGA VI reference" before going to a while loop in which i call my FPGA VI (via "read/write control").  I use the DLL into my C# aplication to be able to control the Software botton inside my FPGA vi and get a boolean feedback everytime a click the software button. see attached codes

 

When I execute the C# application, and i click on the software button, the LED light up (showing that my C# application works) but  the signal get stuck inside the DLL while loop and as a results my C# application get stuck as well as the FPGA. If I remove the DLL while loop and the "close FPGA VI reference" then recompile everyrhing, it start working as expected but the FPGA module stops working after a few clicks on my C# application. 

 

Can anyone help. Any advice will be more than welcome.See attached Labview code and C# code.

 

Many thanks in advance

 

 

.net dll built on CLR version 1.0 for C# compatible with LabVIEW 2011?

$
0
0

I have a .net dll that I want to use to communicate to a device.  The .dll was written in C# and was built using .net Framework v.1.0 and CLR v.1.0.  Is it possible that this version .dll is too old to be compatible with LabVIEW 2011?  I understand that LabVIEW 2011 supports .net framework v.2.0, 3.0, 3.5 and 4.0 but it defaults to CLR v.2.0.  I am asking because I am having issues with  handling events in LabVIEW 2011 and in LabVIEW 2015.  When an event occurs, before the Register Event Callback vi can run, LabVIEW crashes out.  I have a test program from a development kit that uses the same .dll and compiled in C# and built to an executable.  The test program handles the events without any problem but in LabVIEW 2011 and LabVIEW 2015, it crashes out immediately every time.  Does anyone have any idea why this is?  Is it worthwhile to contact the manufacturer to see if they can recompile the .dll using a later version of .net like v.3.5?

 

Thank you in advance!

Inconsistent behavior using Ocean Optics LabVIEW driver

$
0
0

Hi There,

 

I noticed an odd behavior when using the Ocean Optics USB2000 Spectrometer. When I use the instrument driver to read the waveform, I get a waveform of length 2022 pixels. When I use Ocean Optics software (SprectraSuite) I get a waveform of length 2048.

 

I first noticed this behavior when I was looking at the spectrum of a light source that is known to be ~870nm. Using the LabVIEW driver I saw a peak at ~857nm, but using the Ocean Optics software I saw the peak at 870nm as expected. Please let me know if you can give any insight to this problem. Thank you,

 

Gregory


Re: Error -1074118629 occurred at Property Node (arg 2) in MRC Receiver.vi

$
0
0

LabVIEW 2012 - 32bit   

Windows 10

NI USRP 2922

Design of a RECEIVER with multiple channel single device.

Need help to deal with the error ,thanks in advance

multiple Format Specifier Syntax

$
0
0

I have a simple question but complicated to me for a long time.

When I manipulate a string, I added some special characters like space, tab or other.

However, I want to know the skill in case of many special letter.

 

For example, 5 tabs requires \t\t\t\t\t but cannot be intuitive.

 

Do you know any other skill like 5(\t)?

 

labmaster.

How do I put upper limit and lower limit on graph inside a while loop?

$
0
0

Need help here. I am working on a project, I have collected data thru NI myDAQ,plotted a waveform chart, is it possible to add a upper and lower limit to the waveform chart? I have tried ways but cant seem to work. Any form of help is appreciated thank you.

Program for Skye DataHog2

$
0
0

Dear all,

 

Please do let me know why my program cannot used to retrieve data from Datahog (data logger)?

gray out switch

$
0
0

Dear,

Does any know how to do it , when i use the switch the led should stay on and the switch should be grayed out

two axis inclinometer

$
0
0

Hi..

 

I am using a CompactRio and are collecting multiple different signals such as encoders, force and pressure transduceres etc.
I recently bought an NI9201 module: http://sine.ni.com/nips/cds/view/p/lang/da/nid/208798
This module I want to use with my sensor, NTI-230L-LNT two axis inclinometer: http://www.inclinometer.eu/NTI-230L-LNT%2020101229.pdf

 

In my FPGA i collect the input in a cluster, like I do in all my other modules.

 

My problem is that in my RT, I want to output a graph, showing the tilt of the sensor in degreese. I also want to output the values, which is the angle.

I have tried Inclination angle = arc sin ((V.out-offset) / Sensitivity), but this gives me just some noise from -0,2 to 0,2 in the Waveform Chart?

If you have any examples or need any thing, let me know Smiley Happy

 

BR
MT

Strange behaviour of DIO pins of sbRIO

$
0
0

Hello,

 

I use an SHT7X temperature/humidity sensor which gives digital output. The sensor has two digital lines, clock line and data line. The data line is bi-directional. A pull up resistor of 10k ohms across the data pin is used to drive the data high (voltage level =3.3v). The sensor works on an I2C (kind of) protocol.

 

The digital pin (here the data pin) of the sbRIO-9633 drops "low" when a high is sent through the program and remains "high" (due to the pull-up) when a "low" is sent to the pin through the program. What's the explaination? What happens when a pin is already high (due to the pull up) and the user also sends a high to it?

Does it drop to zero? Why?

 

 

Note: In the FPGA program, the data pin is configured accordingly. That is, the output setting (enable and disable) is configured according to its bidirectionality operation.


send Data from labview to matlab in realtime

$
0
0

Hi 

i create a vi in labview and i want send the labview vi outputs to matlab in realtime by udp or tcp or ... and process on data same time, please help me if u know 

TDMS File Not Appearing on Flash Drive (cRIO-9076)

$
0
0

Hi Everyone,

 

I have an application where I am recording temperature data via a CAN card (9853) and thermocouples (9211). Once this data is collected, I build an array out of it (totaling 16 channels), and write it to a TDMS file. When my chassis connected to my host PC and I run, everything works as expected - I get a TDMS file on my flash drive (written to the path U:\file_name.tdms) with all of the collected data. However, when I build an application, deploy, and run stand-alone, the flash drive will intermittently not seem to write anything. This is evident by the file not appearing on my flash drive after powering down the chassis, removing the flash drive, and checking on the host pc.

 

I've tried a variety of troublehshooting techniques, but the most recent left me quite discouraged. I used the "File Exists" block to toggle an LED on during the write TDMS operation. In stand-alone mode, the LED turned out, suggesting the file at "U:\file_name.tdms" existed and was being written to. However, checking the flash drive, there is nothing to be seen. Again, this only occurs when I'm not connected to a host. I've tried multiple flash drives. You'll see in my screenshot that I even tried to force the tdms file to be created (again) if it didn't exist already. All signs point to it being there and being written....but why isn't t appearing sometimes? And why does it appear sometimes? 

 

Thanks for the help,

Scott

 

 

automation refnum MSWord close

$
0
0
My program interacts with MSWord for it's report generation. MSWORD is minimized, but if someone closes MSWORD, the LV Automation Refnum isn't valid anymore. I was thinking of looking for a valid handle (>0 perhaps) and if it isn't valid then opent the application again and keep going. How should i handle it?

Error -200279 occurred at Untitled 9

$
0
0

I need advice on how to fix this problem. I saw one post that said that my code might be running to slow. Can someone help me figure out what to do?

Read serial data and detect serial break at the same time

$
0
0

I need to communicate with a device via serial that sends messages back and forth but also sends a serial break/pause/break/pause combo that I need to listen for. I have never worked with serial breaks before but the only VI I found that appears to detect them is the VISA Wait on Event VI with the Serial Break parameter. I'm not sure I understand how I could detect a serial break but also be reading and writing messages at the same time while waiting. Is this not possible?

Viewing all 68981 articles
Browse latest View live