05-14-2008 03:07 PM
05-14-2008 09:09 PM - edited 05-14-2008 09:10 PM
Try the code shown below. I've got LabVIEW 8.5 and the latest DAQmx so I hope the properites are the same with your old version.
05-15-2008 09:45 AM
Hi All-
The properties that Dennis mentioned were added in NI-DAQmx 8.3. That release of NI-DAQmx only supports LabVIEW 7.1 and later, so if you are using LabVIEW 7.0 you will unfortunately not be able to use that method.
If you are stuck using LabVIEW 7.0, you could use another less optimal method to determine the available ranges. Before these properties were available, I would sometimes determine device-specific information by looping around DAQmx Create Channel (or Timing, etc) while increasing parameters and then trap errors for out of range attribute values. By handling and masking the errors you could determine the upper bounds or allowed values and only present those to the user in your application.
Unfortunately for the case of channel limits this only helps you find the maximum range and not the entire list of allowable ranges. If you really need to get that info programmatically from the NI-DAQmx driver then you'll need to upgrade your LabVIEW version or use the C API.
Hopefully this helps-