07-09-2012 03:43 PM - edited 07-09-2012 03:52 PM
Hi
Right now I'm working on a project where I have to modify the LabVIEW code written by someone else. The code is already proven to work for just one device, and I have to figure out a way to make it such that can control ten devices. I'm thinking of using the current code, and adding a drop-down box with device names 1-10 and when clicking on each individual one, the input and indicator values will change accordingly.
However, I have a few questions about implementing this.
How do I handle the DAQ assistances such that when I change the device number in the drop-down box, that I don't change the actual input, only have the input shown (i.e. make sure the input to the actual devices are what I want but it only shows on the front panel the values for whatever device number I select). Would I need multiple DAQ assistances?
With regards to the drop-down menu, would a normal drop-down menu be best, or is the better option to go with an enum or a listbox?
Thanks
07-10-2012 07:27 PM
Try avoiding multiple DAQ assistants. Actually, I would recommend using the DAQmx VIs instead, because, they offer more control and higher performance. If you would like to keep using the DAQ assistant, you can follow this instructions, simply add more channels using the blue plus icon. Make sure the device name in MAX and the DAQ assistant match with the hardware. If you have problems with this use the green arrow, on the channel settings section, and select the physical channel that you are targeting. I hope this helps.