Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI under W2K crashes when using stop in debug mode and AOGenerateWaveforms

When using AOGenerateWaveforms to generate a sine wave. If you hit stop in debug the PC restarts. If you're using the same channel to generate a DC signal, it's fine. Seems to be the card accessing the dynamic memory I've set the waveform up in after you hit stop and the memory has been free'd.
0 Kudos
Message 1 of 2
(2,348 Views)
This is sometimes the nature of the beast. When your program is running you are doing DMA transfers to locations in memory that have been setup by your operating system. Now if you stop your program, with out killing or stopping the DAQ device it will cause you problems in some cases. You need to call AOClearWaveforms before you stop your program.

If you do not stop the DAQ device, before stopping your program it will cause the DAQ device to write to memory that is no longer allocated for that process. In most cases windows detects this as an error and reboots the system, because it thinks a program has crashed and is now writing to memory locations out of its designated space.

I hope this helps.

Joshua
0 Kudos
Message 2 of 2
(2,348 Views)