LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Want to assign channel line to control and indicators

Hi,

 

I have some Input output card in my PLC machine to interface my NI-9188 I/O modules. Can I assign a particular line in the channel for any control/indicator at the front panel of the VI. In other words can I create one drop down menu in front panel attached to control/indicator where I can select the channel line through which i want to pass or fetch that info from my PLC through NI-9188.

For example:

 

I have a LED at front panel and I want to assign that indicator to line number 29 of my 32 line channel.

 

Thanks

Prashant

0 Kudos
Message 1 of 2
(2,096 Views)

Hello Prashant,

 

Please take a look at the Read Dig Chan VI in the NI Example Finder, LabVIEW>>Help>>Find Examples>>Hardware Input and Output>>DAQmx>>Digital Measurements>>Read Dig Chan. This code can be modified to include Boolean LED that will correspond to a specific hardware line designated by the channel parameters for your DAQ device. On the block diagram modify the DAQmx Read to Digital>>Single Channel>>Single Sample>>Boolean. You can then wire a Boolean indicator to the data output of the DAQmx Read. This is a simple example can be modified for your specific application.

 

Paul-B

Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,068 Views)