VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx Start / Stop Task in Custom Device

Solved!
Go to solution

Hi,

 

I write a custom device which allow to prepare waveform, start DAQmx task and stop DAQmx task.

This custom device is similar to GitHub - NIVeriStandAdd-Ons/DAQ-Waveform-Function-Generator-Custom-Device.

It is inline custom devices with asynchronous loops.

The difference is that I add ability to start / stop DAQmx task (used for synchronization).

 

The problem is that I getting HP Count increased when DAQmx Stop Task is running.

Target rate is 1000 [Hz]. Measured execution time of DAQmx Stop Task is 5 [ms].

HW: cRIO-9040 and NI 9263 with Linux_x64.

 

Does anyone know why the HP Count is increasing and how to get rid of it?

As I understand it, the custom devices with asynchronous loops should not increase the number of HP Count.

 

Regards,

Jacek

 

 

 

0 Kudos
Message 1 of 2
(1,044 Views)
Solution
Accepted by topic author j@cek

Issue was caused by piece of code in synchronous loop.

Details in created task:

 

HP Counts occurs when changing waveform parameters · Issue #3 · NIVeriStandAdd-Ons/DAQ-Waveform-Func...

0 Kudos
Message 2 of 2
(847 Views)