LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting shared variable name on Scan mode Compact Rio project

Using a compact rio in scan mode, I want to display the name of the channel I'm logging next to the value.

 

Since I use shared variable to get those channel values from the cRio, I'm not able to get the name of those variable as well (wich are define in the project). Presently, beside the numerical indicator of the value, I used text box to identify them.

 

How could I get those name so they could be associated to the numerical indicator by the mean of an string indicator???

 

Your help would be much appreciated!

 

Alexandre Lataille

Novabus

 

Alexandre Lataille
Novabus, Division of Volvo
0 Kudos
Message 1 of 2
(2,310 Views)

If you are using LV 8.6 you can use the Scan API found on NI labs. Use the Get Input Channel Value by Name function. More information can be foundhere.

With this, you know what IO Channel Nme you are calling and you know the value, so you can record both.

This functionality is built into labview 2009.

 

Regards,

Andrew

National Instruments
RIO Embedded Hardware PSE

CompactRIO Developers Guide
0 Kudos
Message 2 of 2
(2,291 Views)