LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx with signal generation

Hello,
 
I am working on converting my current test code that used Traditional DAQ to DAQmx. I need some help with DAQ Waveform Generation.
 
In my current code I am using the Traditional DAQ to send a Sinewave output on on the DAC0Out on my PCI-6036E card. I have it set-up so I can runt he VI and when the Vi stops the Signal Keeps going until I tell it to stop. I need to do the same thing with DAQmx. I found that the example 'Cont Gen Voltage WFM-INT Clk-Variable Rate.vi does everything I need but when the VI stops so does my signal. What can I do to make it so the signal stays running when my vi stops.
 
this VI is a Sub in my program, the user is able to control a boolean to start and stop the waveform, I cannot keep it in a loop as they may want to turn ont he waveform and perform other tasks then turn it off.
 
I am trying different things as well, but any help would be appreciated.
 
Oh yeah, this is an XP machine running  LabVIEW 8
Jeff D.

Certified Architect LabVIEW Champion DQMH Framework

0 Kudos
Message 1 of 4
(2,867 Views)
You say you have tried different things. Have you tried removing the Clear Task from the example you mention? That should be all you need to do.
0 Kudos
Message 2 of 4
(2,860 Views)


@Dennis Knutson wrote:
You say you have tried different things. Have you tried removing the Clear Task from the example you mention? That should be all you need to do.



Yes, I have removed the Clear task in the DAQmx example, but it still stops the signal. If I run the Traditional DAQ VI it does not. That is all I did with the tranditional one to keep it running.

I will look at it again and try to build a VI similar to the Traditional and see if that helps. it is quite odd though, you would think the absense of the Clear task would do it.

Jeff D.

Certified Architect LabVIEW Champion DQMH Framework

0 Kudos
Message 3 of 4
(2,854 Views)
Hello Jeff,

To continue to output a signal after you have stopped and closed the VI, you use the auto cleanup terminal on the DAQmx Create Channel VI.  Auto cleanup specifies if LabVIEW automatically destroys the task when the application completes execution. If auto cleanup is FALSE, LabVIEW does not automatically destroy the task until you exit LabVIEW. But you can use the DAQmx Clear Task VI to manually destroy the task.

I'm attaching a modified version of the Cont Gen Voltage WFM-INT Clk-Variable Rate.vi that continuous to generate the AO signal until you close LV.

Good luck!
Micaela N
National Instruments
0 Kudos
Message 4 of 4
(2,846 Views)