I have created a LabVIEW program with a USB-6003 that will be used with other USB-6003 devices besides this one when this application is finally built. In MAX the device I used for development was identified as Dev2. My program worked fine with Dev2. Now when I plug a different USB-6003 into my computer the program could not see it. When I opened MAX I saw my original Dev2 with a red X beside because it couldn't be seen, but there was also a new USB-6003 that needed to be initiated. But as you know my LabVIEW program is written with the physical channels starting with 'Dev2'! Is there a way such that for any single USB-6003 that I plug into my computer, MAX and my program will see it as Dev2? Is there another way around this?
A few options:
1. In MAX, you can delete the current Dev2 and rename your new device to Dev2.
2. Use a configuration file that your application reads that defines the device and/or channels to use.
3. You can dig through the DAQmx properties to search for the device you want. This will get a lot more difficult if you have multiple devices of the same model attached.
If there will be only one USB-6003 connected to the host computer at any time, your application can use the DAQmx System Node to query for all available present DAQmx devices and verify that its product type is correct like the VI snippet below. If output from the for loop is blank, then it did not find the device it was looking for.
Thank you for your reply, that sums it up that there would only be one USB-6003 at a time. Could you take me a little further on this? Now I have a method to derive the device but in the DAQmx pallete, the Create Channel has an input called "physical channel" that is both a device and a port on that device. Is there a VI that will combine the device with a desired port on the DAQ device to create a physical channel to input into a create channel vi? Or is there some other method I would use?
Is there a VI that will combine the device with a desired port on the DAQ device to create a physical channel to input into a create channel vi? Or is there some other method I would use?
It's called Format Into String.