Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmxStopTask hangs when no reference trigger seen

I have created an analogue input task with a digital input reference trigger.

 

The analogue inputs are on a couple of 6110 cards linked by a RTSI cable

 

If the reference trigger is not seen (i.e doesn't occur), the call to stop or clear the task using DAQmxStopTask or DAQmxClearTask does not return.

 

The problem only occurs on real hardware, running the program against simulated devices works.

 

 

0 Kudos
Message 1 of 15
(3,850 Views)

Hi IChodera,

 

I would like to help you get your problem solved.

 

There have been several instances of the DAQmx Stop Task.vi hanging in the past with different versions of DAQmx for different reasons.

 

Can you tell me what version of DAQmx you are using? Problems have been reported with ver. 8.7.

 

Best Regards,

 

Chris

National Instruments - Tech Support
0 Kudos
Message 2 of 15
(3,819 Views)

I am using version 9.2.2 - program interface using C++

 

The problem is almost certainly to do with the reference trigger. If I don't define a reference trigger the DAQmxStopTask call returns as expected.

 

 

0 Kudos
Message 3 of 15
(3,798 Views)

Ok, thanks for getting back to me.

 

I'll look into this for you.

 

Best Regards,

 

Chris

National Instruments - Tech Support
0 Kudos
Message 4 of 15
(3,796 Views)

Thanks, if you want my source code please let me know.

 

0 Kudos
Message 5 of 15
(3,789 Views)

Yes that might be useful. Feel free to post it.

 

Regards,

 

Chris

National Instruments - Tech Support
0 Kudos
Message 6 of 15
(3,787 Views)

Code attached. 

 

Problem occurs when ModifyAcquire is used

0 Kudos
Message 7 of 15
(3,744 Views)

Hey IChodera,

 

Thanks for posting your code. I'm not an expert with text-based DAQmx so it may take me a little while to get my head round it but shouldn't take too long.

 

Best Regards,

 

Chris

National Instruments - Tech Support
0 Kudos
Message 8 of 15
(3,742 Views)

No problem

 

I have reduced it down as much as possible. The place to start is "ExampleProblem" which sets up an acquire task, then tries to clear it and change the parameters. This is when the problem occurs. Either a call to DAQmxStopTask or DAQmxClearTask (as in ModifyAcquire) locks up if no reference trigger is seen.

 

 

0 Kudos
Message 9 of 15
(3,738 Views)

I may try and recreate the code in LabVIEW. It should be identical as the functions called are the same.

 

Regards,

 

Chris

National Instruments - Tech Support
0 Kudos
Message 10 of 15
(3,736 Views)