Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I extract a channel number from a MAX-assigned DAQ channel name?

I have set up DAQ channel names within the Data Neighbourhood section of max. For example 'Sensor output 1' I have assigned to be channel 0 of my DAQ card.

Is there a way of extracting the channel number from this (i.e from the data type 'DAQ Channel Name')?

I have NI-DAQ v6.9.3

Mike
Mike Evans
TRW Conekt
N.I. Alliance Member, UK
http://www.Conekt.net
0 Kudos
Message 1 of 3
(2,748 Views)
Mike,

This is possible by using two LabVIEW VIs in conjunction. You will need to use the "Get DAQ Channel Names.vi" and "Get Channel Information.vi" The first VI will get you an array of virtual channel names that are stored in the Data Neighborhood. The second VI takes a channel name as an input and you can get various properties from the virtual channel, including the device channel.

Regards,
Justin Britten

Applications Engineer
National Instruments
Message 2 of 3
(2,748 Views)
Thanks Justin - it's easy when you know how!
Mike
Mike Evans
TRW Conekt
N.I. Alliance Member, UK
http://www.Conekt.net
0 Kudos
Message 3 of 3
(2,748 Views)