01-04-2008 08:52 AM
01-07-2008 04:06 PM
Hi Andrei,
1. In your directory, there should be a file named “lsdaq” that lists all the devices compatible with DAQmx base and list them by device syntax (i.e. “dev1”)
2. From the NI-DAQmx Base 2.x C Function Reference Help, the DAQmxBaseWriteDigitalU8 states “Writes multiple eight-bit unsigned integer samples to a task that contains one or more digital output channels. Use this format for devices with up to 8 lines per port.” The DAQmxBaseWriteDigitalU32 is identical but is “for devices with up to 32 lines per port.” The USB-6008/9 only has 8 lines per port (as do most devices), so use the DAQmxBaseWriteDigitalU8 function.
I hope that gets you started.
01-07-2008 09:27 PM
01-08-2008 04:08 PM
Hi Andrei,
That should be the right syntax. The way to see many details about your product is in the NI USB-6008/6009 User Guide and Specifications. It has pinouts, descriptions of the channels, and a lot of other information that can answer many questions you might have, etc.
Also, there is built-in error handling, which will give you descriptive message (usually) that indicate what is wrong and how to fix it. So if the syntax happened to not work, it should give you an indication of how to fix it.
Best of luck with your application.
Where Can I Find NI-DAQmx Base Examples?