ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Single Read/Write sample: Speed test code: Console vs. GUI

Hello,
 
First of all I have to say that I'm more or less a noob in VC++ programming with the MFC as well in using the DAQ Multifunction card... Smiley Indifferent
 
I started from the ANSI C++ example: VC_VoltUpdate.dsw and created a single read and write operation and a speed test loop (speed_kurztest_einzelne_samples.dsw).
The result of around 13 microseconds is in the axceptable range from 10 up to 20 microseconds...
now I wrote a GUI-version in which a thread does exactly the same code but is much slower then I excpected, around 3ms, but it should be in the same range (test.dsw).
In the attached zip-file are the two examples.
I also wrote a GUI-version without any thread, but it didn't change any thing.
The test.dsw example thread loop without any read/write operations is much faster(around 2 microseconds)...
 so I think it's something wrong with including the NIDAQmx??????

If you have any idea what I'm doing wrong, please let me know!

Regards,
Tonio

Message Edited by TGsell on 10-19-2005 07:38 AM

Message Edited by TGsell on 10-19-2005 07:42 AM

0 Kudos
Message 1 of 2
(2,961 Views)
Here's the zip-file with the include and lib directory...
0 Kudos
Message 2 of 2
(2,925 Views)