Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

I'm looking for an example using the SCAN_Op function in a C#.Net application

I am trying to do a synchronous read on 2 channels using the SCAN_Op function in C#. I tried implementing the SCANsingleBufSync example, but couldn't make it work. I'm using the PXI 6120 DAQ card. The function executes but the data returned is all zeros, and I get an error number 55533. I was able to successfully configure the channels.
0 Kudos
Message 1 of 3
(2,475 Views)
I'm not sure what examples you are currently using, but you might want to take a look at some of the C# examples I've attached. They are all analong input examples and can be easily configured to acquire from more than one channel. Simply change the channel string to 'Dev1/ai0:1', that will acquire data from channel 0 and channel 1. Also, you could use this syntax: 'Dev1/ai0, Dev1/ai1'. I hope this helps!
-Alan A.
0 Kudos
Message 2 of 3
(2,473 Views)
Oh, here is where I found the examples:
C:\Program Files\National Instruments\MeasurementStudioVS2003\DotNET\Examples\DAQmx\
Bunch more examples there!
0 Kudos
Message 3 of 3
(2,470 Views)