Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Enabling double buffered mode on a second NI-DAQ card hangs the OS

This code hangs the entire operating system:

iStatus = DAQ_Rate( 50000 , 0, &iSampTB, &uSampInt);

iStatus = DAQ_DB_Config( 1, 1 );
iStatus = DAQ_DB_Config( 2, 1 );

// pornesc conversia
iStatus = Lab_ISCAN_Start( 1, iNumChans, 0, (short*)piBuffer[0] ...
iStatus = Lab_ISCAN_Start( 2, iNumChans, 0, (short*)piBuffer[1] ....

When I remove the line : DAQ_DB_Config( 2, 1 ) the code works! When it hangs, it hangs on the second Lab_ISCAN_Start call. Please help, since I need double-buffered data aquisition from both cards!
Thank you!
0 Kudos
Message 1 of 2
(2,353 Views)
Well, I can't seem to reproduce this. The code I have attached below runs fine over here without incident. I used two PC-LPM-16's.

I'm not sure what to say other than to try this on another computer. Or an uninstall/reinstall of NI-DAQ couldn't hurt either.
0 Kudos
Message 2 of 2
(2,353 Views)