From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

cDAQ BlueScreen Problem after reinitialization

Hello everyone,

 

i am using a cDAQ System with two analog input modules and one digital input modul in combination with Visual Studio 2005 and .net 2.0. My application simply waits for a trigger event on ch0 of the digital modul and writes the data of the analog channels to a textfile.
My program is based on the two examples:

 

  • "ReadDigChan_ChangeDetection" with myTask.Stream.Timeout = -1;
  • "ContAcqVoltageSamples_IntClk"

 

and works fine so far.

 

In case of a communication problem i dispose both tasks (analog and digital) - just like in the examples - and reinitialize them. I tested the reinitialization procedure by disconnection the usb cable and in most of the cases the system reinitializes as expected. However, sometimes when disconnecting the usb cable a BlueScreen event occurs and the computer reboots.


This is how the reinitialization is basically done:

 

if (runningAnalogTask != null)
{
    runningAnalogTask = null;
    analogTask.Dispose();
}


if (runningDigTriggerTask != null)
{
    runningDigTriggerTask = null;
    digTriggerTask.Control(TaskAction.Abort);
    digTriggerTask.Dispose();
}


initAnalogMeasurement();

initTriggerInput();

 

Is this a known bug and is there a solution for this problem or does anybody else have simillar issues?


Here my system configuration:

 

  • cDAQ 9174 with
  • 2 NI 9222 Analog input modules and
  • 1 NI 9421 Digital Input modul
  • sampling rate is 125000 samples/s
  • Windows7 64Bit
  • NI-DAQ MX 9.6.1
0 Kudos
Message 1 of 1
(2,859 Views)