Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Daq & MDI - Exception after closing MDI-Child with running Daq-Task

Solved!
Go to solution

Hi

 

while I'm doing my first steps with Measurement Studio and C# in Visual Studio 2008 I tried to close a MDI Child with a running Daq-Task within. This throws an exception because the task has already been disposed. So how can I avoid this?

 

 

Thx, Peter

0 Kudos
Message 1 of 2
(3,456 Views)
Solution
Accepted by topic author cyro

Hi Peter,

 

sorry for the delay.

 

This is normal behaviour when the DAQmx-task is still running.

 

You have to stop/clear the task before you close the window. Mostly it's good style to work with only one UI / window.

 

I hope this helps.

 

With best regards

Ralf N.

 

BTW:

A good starting-point are the DAQmx-examples:

 

Where Can I Find NI-DAQmx Examples?
http://digital.ni.com/public.nsf/allkb/E3BAF6FC4017960B8625755A00525D37?OpenDocument

Installing Measurement Studio NI-DAQmx Examples
http://digital.ni.com/public.nsf/allkb/52F5F5EF78AF084286256E0B007FE793?OpenDocument

0 Kudos
Message 2 of 2
(3,416 Views)