Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I get a list of all channels of a device?

I'm writing a software for use in a couple of our labs to be run as an executable i.e. without LabView being installed on all machines.

Now there's also a couple of different daq hardwares in use. So I planned to have a config tool where the user can choose the appropriate - physical, not virtual - daq devices and channels like: temperature 1 measured by device 1, analog input 2.

Therefore I'd need a list of all available daq devices (which is somewhat possible) together with a list of all channels of a particular device. Is there any way to get this?

Unfortunately I don't want to use virtual channels since I don't want to bother the user with configuring them and btw I don't know if virtual channels work wit
h the pure run-time module of an executable.

Thanks!
Daniel
0 Kudos
Message 1 of 2
(2,883 Views)
Hello Daniel,

You can use virtual channels with executables and there is actually a way to transfer the virtual channel configurations to the target computers so your users would never need to mess with configuring virtual channels. Once you have configured virtual channels, you can save the configuration within a .daq file. You can then include that .daq file as a support file of the executable and programmatically set the configuration of the target machine. The linked document below illustrates how to accomplish this.

How Do I Port a DAQ Configuration File With an Executable?
http://digital.ni.com/public.nsf/websearch/CB83B101E19EF83086256A3E0054206C

If you do not want to use virtual channels, the only other thing I can think of is to use the Get_D
AQ_Device_Info VI or function call. You can get a device code when using this VI or call and each code is associated with a specific instrument. You would then have to know (use the device's user manual) to determine how many channels the corresponding device has. Without virtual channels, you would have to use a channel number (0,1,2,...etc) and would not be able to use a string ("temperature 1 measured by device 1").

So, I think using virtual channels and transferring the .daq file to the target machines with the executable will be the best option. I hope this helps.

Regards,

Todd D.
NI Applications Engineer
Message 2 of 2
(2,883 Views)