Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Pb with national examples Scan_Op with PCI-6110

We are interested using scan on several channels with synchronous method for PCI-6110. We compile the national examples Scansinglebufsync.c. At running we get an 10003 error. We verify the parameters and no problem found.
0 Kudos
Message 1 of 3
(2,375 Views)
It appears that you modified iNumChans to be 4 instead of two, but the arrays piChanVect and piGainVect still contain only 2 elements. You must be consistent and provide the 4 gains and 4 channel numbers if you set the number of channels to 4.

I hope this helps.

- Jason
0 Kudos
Message 2 of 3
(2,335 Views)
If you are just starting your development, I would highly recommend beginning with the DAQmx API instead of the Traditional DAQ one. DAQmx is our new API which is much easier to use than Traditional DAQ and also has performance improvements as well. Here's where you can find the some ANSI C DAQmx examples:

C:\Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\

-Jack
0 Kudos
Message 3 of 3
(2,331 Views)