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: 

Scan to Disk locks up my program.

I have a PXI 6031E in PXI 1000B chassis. I set up to scan 8 channels using SCAN_to_DISK. The program hangs. I don't even get an error message. I substituted DAQ_to_DISK on one channel using the same parameters(excluding number of channels, channel list, and gain list) and it worked fine. I had my sample rate set at 100000 and my scan rate at 10Hz.
0 Kudos
Message 1 of 3
(2,671 Views)
Greetings,

If you decrease the number of channels or sampling rate, does your program still hang? How many samples are you acquiring? Are you establishing a timeout for the SCAN_to_Disk() function? If not, I would suggest using Timeout_Config() to do so. After doing this, do you receive a timeout, or does your program still hang?

Let me know.

Spencer S.
0 Kudos
Message 2 of 3
(2,671 Views)
I did not use Timeout_Config but I will insert it in there. I was able to get it to work but only if I set the scan rate to 0 (for continuous scanning). I'm scanning 8 channels (0-7).
0 Kudos
Message 3 of 3
(2,671 Views)