Data Acquisition Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
C.vanLeuken

DAQ device available by type instead of device number

Status: New

For each device, MAX will use an unique device number.

This is no problem with fixed measurement equipments.

With USB devices this may become a problem.

On a school, a student will work with different combinations of computer and device.

 

If the student wants to use his program with a different device, he will get an error.

Even if the device is the same type, but has a different serial number.

New Picture (1).png

To solve it, the student needs to open all DAQ routines and to alter the device number.

Or he needs to change the DAQ assistant routine into a VI and change the constant device number by a routine as shown in DAQmx device to use.vi.

 DAQmx device to use.png

This same problem occurs when using NI-IMAQdx devices.

 

Solution:

Make it possible to select a device by type instead of a device by number.

New Picture.png

2 Comments
mzaleski
Member

Why aren't you teaching them to rename the devices away from the default values of "DevN"?  Also, it is trivial to include a device identifier field settable by the user.

dj3
Member
Member

mzaleski, if you use the DAQ assistant to control the hardware (which I do and would expect a student to do) I can't see any way for the user to change the device identifier. Is there such a feature? Another option for this type of situation would be an option for devices to remove themselves from MAX when the hardware is unplugged so that each time a new device is plugged in it would be dev1.