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

SubVI default value

$
0
0

A SubVI in my LabVIEW program has a boolean terminal. It's default value is false. My LabVIEW front panel has two instances of SubVI. Boolean terminal of the one of the instance is TRUE while other has FALSE as its default value.

 

Problem is that other instance is also getting TRUE value, even if it has FALSE as its default value.


Modbus Slave I/O Server 32 port limitation

$
0
0

i'm currently working on configuring a Modbus Slave I/O server and i can only view the first 32 comms ports. i currently have 108 serial ports installed on my chassis and i need to be able to communicate with all of them. Does anyone know how to get around this limit?

 

 

image1.jpeg

Fixed size array and FIFO functionality

$
0
0

Hello all.  I am definitely a LV noob.  So, the problem I am trying to solve is my boss wants a control that will prevent a piece of equipment from running more than 1 minute within a running 5 minutes.  I assumed I could create a 2D array with 300 lines (number of seconds in 5 minutes), and 2 columns.  The first line would just be 0-299, and the second column would contain "1" if the power is on during that loop, and "0" if it is off during that loop.  At the end of each loop, I would add up the second column and if it equaled 60, then I would automatically turn off the equipment and disable the button.  After all 300 registers have been filled, I would like the first record to drop off, and the most recent record to be placed at the  end.  In other words, it will take 5 minutes for the last record to be purged.

 

Can someone point me in the right direction to accomplish such a thing?  Maybe an easier way?

 

Thanks,

 

LV_noob

Reset variable value after each execution

$
0
0

Hi people,

I have a .net object invoking a node that counts a certain value when executed (dll is working as it should), and in each VI execution I get the desired value. However when I "Run Continuously" the VI, it seems that LabVIEW is adding up the actual value to the last one of the last execution, and I get a wrong value. I have already tried to create a local variable and zeroed it at the beginning of the script and many others attempts such as cleaning all indicators at the VI properties, but it seems that the reference is just not closed at the end of each execution (but I am closing the reference of the object too)...  I have no idea how to solve this, if anyone could help, I would be grateful!

 

I am not sure if posting the code would help, nor if I can, it is just a Construction Node -> Invoke Node -> Indicator -> Close Reference.

Not connecting to some shared variables

$
0
0

Hello, I'm having a strange case of my VI connecting to some shared variables, but not to others from the same library. The attached code snippet shows the BD. All SV refnums are sent to the auto-indexing loop, where "Open and Verify Variable Connection" is executed for each SV in turn. A test indicator before the loop shows that all SV refnums are correct. However, the refnum array indicator after the loop only has some of the SV, not all of them (the missing SV names are just empty strings). At the first empty string the Error Out becomes "-1950678943:  Open and Verify Variable Connection in States.lvclass: prepareSV.vi". The DSM shows that all SV are deployed. Why would "Open and Verify Variable Connection" complete successfully for some SVs, and not for others? I could not find any difference between them in the DSM. Any suggestions would be greatly appreciated!

LabView inline temperature integration

$
0
0

Hello, 

I would like to know if it is possible to have in-line temperature integration while measuring data. Right now we are using LabView to measure the horse power, RPM, integrated power, and temperature on a lab scale Banbury rubber mixer. The application file is called bodytemp. The power is integrated in-line in units of kilowatt hours so I was hoping integrating temperature the same way wouldn't be too difficult or strange. For certain products that we use it is preferable to use temperature integration rather than power integration. If this topic is discussed already, let me know where since it is difficult to locate this topic when there are a couple meanings for the word integration and the meaning I am using is mathematical (area under curve), not programming related.

 

Thanks.

Pressure Transducer Reading requirements

$
0
0

Hello, totally new to using Labview and just starting to learn some of the ins and outs.  I currently have a lot of pressure transducers that have a 28v exitation voltage that are full bridged units which output 0-10v.  They are from Lord stellar tech.  I have a variety of NI modules for the cDAQ 9178 chassis and the ability to get whatever is best for this situation.  I am just wondering what would be the best way to acquire the data that I need.  I have an adjustable voltage supply but not sure what is the best module for this type of data. Thanks for the help

Need help with logaritmic scale

$
0
0

Hello,

 

I`m trying to plot a distrubition on a logaritmic scale(see image). How can I hide the first value(0.01) of X-Axis?

 

thanks Smiley Happy

 


Label of FrontPanel controls have wrong size when added

$
0
0

Hey guys,

 

I remember that I had this issue quite a while ago, but I could not find any suitable solution again. My problem is, that somehow the default label font size and style has changed, and anytime I add a new control, I have to format the label font to its normal size.

I cannot find a solution how to reset this to normal styles. Do you have any ideas (see picture below)?

 

Button with large label 01.png

 

Thanks a lot in advance!

 

Best Regards

Jenso

Hello I'm looking for the subroutine in labview with the same function of SendByte () in CVI

$
0
0

Hello,

For my experiment I use serial port Rs232 to communicate with the device.

I've the program to do that in CVI, in the CVI I use the command SendByte () but I can not find the same subroutine in Labview 2015, Do you have any suggestion?

DACmx Channel: Signal Type Property Node

$
0
0

Hi,

 

I have created an array cluster, the cluster consisting of a string, DACmx channel selection menu and a boolean button.

 

The idea is that when user loads a plot, each plotname is populated into the array cluster.

The user then gets choose to which channel to output the waveforms

 

Generating the array cluster, I could do (block diagram below)

cluster.png

It is with the next step that I am struggling with.

As I could not find a way to list BOTH AO and DO is the dropdown menu, I thought of using the Channel: Signal Type Property Node to switch between the AO and DO list when the button is pressed.

 

So for example if the button in row 1 of the array is pressed, the channel selection in row 1 only changes from AO to DO. Similarly for the other rows. How could this be achieved?

 

Also as the last step, how to then extract the channels selected by user from the array and use them to output the waveforms?

 

Kindly advise,

 

Sherzaad

 

PS: I do realise that this method I'm proposing may be convoluted; so if there are simpler, more direct solutions they are of course welcomed! Smiley Happy 

 

 

http://thefitnessvibes.com/

$
0
0

So this is purely from my experience. I have done a lot. I've counted macros for two years now and honestly I recommend everyone counting macros for at least six months of their life because then you're going to really be able to grasp a concept. Of. What what calories are in what and what you have been. You want me to believe how much overconsumption of carbs and fat that an underarm protein that everybody is. The Fitness Vibes You really don't realize how much you have been overeating your whole life until you start counting macros and then it all kind of makes sense as too high.

No wonder why I couldn't lose weight because I was eating two days worth of carbs in one meal. You know what I mean. So you're really you really it's really good to have a concept of what's in food. And because it's like how macros you have no idea.

 

http://thefitnessvibes.com/

Can multiple versions of the Labview RT Engine co-exist transparently ?

$
0
0

Hi,

 

I have a PC which runs Teststand which only calls Labwindows\CVI functions, but no Labview calls.

The PC has various versions of the Labview RT Engine loaded. I intend to load another, more recent version of the RT Engine so that I can run a Labview .exe .

 

My questions are, is the process of finding the correct version of Labview RT Engine when the .exe is run transparent to the end user ?

 

Having run and closed one version of the Labview RT Engine could this then affect the version of Labview adapter used by Teststand later ? 

 

Also can a Labview .exe be run from a USB memory stick as a command line parameter to the Labview RT Engine also loaded on the stick ?

 

Regards,

 

Gary. 

LabVIEW Multisim Co-Simulation

$
0
0

HI,

I'm attempting to design a ECG signal acquisition and processing vi. My thinking goes like this: the signal picked up by DAQmx should be fed through a Multisim circuit, then its output comes back to labview to be further processed. Can that be done using a Multisim circuit running in a vi? If it's possible, what would you suggest?

Labview FPGA Compilation error

$
0
0
Hello to all members... I am using NI USRP-2940R and labview 2015 with windows 7 on desktop PC. I have installed labview compilation tools of Vivado 2014.4, Vivado 2013.4 and Xilinx ISE 14.7 as well. While compiling Labview FPGA VI, I am getting an error: (LabView FPGA: The compilation failed due to Xilinx error. Details: ERROR [Common 17-345] A valid license was not found for feature 'Synthesis' and/or device 'xc7k410t'. Please run the Vivado license Manager for assistance in determining which features and devices are licensed for your system............ while executing ''synth_design-top"ReallyLongUniqueName_ReallyLongUniqueName'' -part''xc7k410tffg900-2'' -mode out_of_context''.............) I have tried many solutions like re-installing compilation tools and repairing as well, but still error exists. I am badly stuck now and beginner in NI USRP. Your help will be appreciated. Thanks in advance

Default SubVI created in DAQMx for digital output

$
0
0

I have a doubt regarding the SubVI generated while creating digital output lines from DAQ Asst (Image of the block diagram is attached). The subVI I am refering to is a data generating VI  which generated 0 and 1 state. Here I want DAQ to generate N sample at a given rate.

I did  understand the inner most "For loop" that generates a 2D array of 0 and 1.

What confuses me the most is the use of channels and digital lines separately. What I know is each digital line corresponds to one physical cahnnel. If I have N number of digital lines per channel, how to interpret.

Labview issue.

$
0
0

Hi! Im begginer with labview and arduino. I am trying to make a project for my University with arduino uno. So, as you can see in the screenshot below, program doesnt run normally. Current goin only until there and cant get through to the loop. I also tried to make the circuit simple so I remove the loop but problem still there. Anyone any help? 

Thanks in advance.

Re: Two Showstopper Bugs, and on minor one, in Windows 10

$
0
0

Hi

I have a simple FPGA program that compiles in cRIO without any problems, but I want to use the FPGA program on the NI 9144 EtherCAT Expansion Chassis in FPGA mode to NI PXIe 8135 (Code file attached). As you know there are some differences between programming the local FPGA and the FPGA for EtherCAT RIO, that must be used user-defined I/O variables (this paper).

For Compiling I did step by step as this paper said, we get successful processes, but after file generation complete we have an error (that attached). It shows that the file can not run in chassis. 

Please help me.

error.PNG

Regards. 

convert from LV2017 to LV2016

$
0
0
Moved to Version Conversion board

DAQmax read slow response

$
0
0

Hello all, I'm using cDAQ-9178, NI 9401,NI 9202 to control multiplexer and read analog signals. At the bottom while loop, when I select multiple channels multiple samples and 1D waveform, the plot waveform is responses very quickly to the sensor. However, if I choose multiple channels single sample and 1D DBL, and send to a for loop for calibration, the data responses very slowly to the sensor, a few seconds delays. Can anyone tell me what's the problem here? any solutions? Thank you very much. Attached is the VI.

Viewing all 67066 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>