Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx Regenerative Voltage Output - Sample Data Update Problem

I'm trying to output some basic waveforms with USB-6003 using a DAQmx analog output channel in regenerative mode. In the VI, when a timeout event occurs, task is stopped, timing settings and sample data is updated and task is restarted. I'm expecting the device to continuously output the available samples until another timeout event occurs and new samples are written. Most of the time device does this. However, sometimes the regeneration does not work and newly written data is outputted only once or twice.

 

Here is an example simplified block diagram generating the problem,

 

block_diagram.png

 

An example output signal captured with the same device,

 

example_output_1.png

 

The flat lines above are the problem. They should be square waves instead.

 

I'm also getting an internal software warning after a short time the program starts. I don't know wheter it is related to the problem or not.

 

I would be very glad if anyone can point out the cause of the problem.

0 Kudos
Message 1 of 5
(3,121 Views)

I ran your code with no notable duration of constant state between the square wave pulses.  I'm using a PCIe-6341 in a desktop PC.  Just wondering if what you're seeing is some extra latency delay time to stop & restart due to using a USB device.

 

Also, no warnings or errors seen here.

 

 

-Kevin P

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 2 of 5
(3,072 Views)

Hi Kevin,

I've modified the VI a little bit such that the output data is shifted up and down at each update. This makes the update more visible. In the following example output, you can see that there is no notable delay after writing the new data and restarting the task. The device outputs the written data for a couple of cycles and then outputs constant voltage until the next update. 

 

example_output_3.png

0 Kudos
Message 3 of 5
(3,053 Views)

Do you have any other DAQ hardware you can test the code on?  It continues to run fine on my desktop PCIe-6341.  Here's a 5-second grab for example.

 

-Kevin P

 

5 sec graph pic.gif

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 4 of 5
(3,041 Views)

I only have one more of the same device. Unfortunately I get the same results with it.

0 Kudos
Message 5 of 5
(3,036 Views)