LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

how to play waveform then pause and play another waveform

I have a program that plays two waveform. I would like to play the first waveform and then delay for a certain time and then play the second waveform. I have the code attached and it looks like two separate programs. The top program fetches for two frequencies from a spreadsheet and adds the two frequencies and plays it. I want the top program to play first and then pause for a certain time and then play the second program with the case structure. Any help would be greatly appreciated.

 

Thanks a lot

0 Kudos
Message 1 of 5
(3,227 Views)
Since this question is related to LabVIEW, you should post it to the appropriate forum


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 5
(3,217 Views)
its a programming question. what's the problem?
0 Kudos
Message 3 of 5
(3,214 Views)

The way of implementing the answer to your question is radically different in CVI, which is a procedural programming environment, and in LabVIEW, with its dataflow paradigm and parallel execution.

Basically to serialize execution in LabVIEW you can there an output of a VI to an input of another and you are assured that the latter one is executed after the first one. Error cluster input/output is a common and handy tool to obtain this. But I'm not a professional LV programmer (I cannot event open your VI here since I have not LV installed!) and you will find only a few of them in this board: posting to the LabVIEW board you will benefit for the large number of exoerienced professionals that are regularly posting there.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 4 of 5
(3,210 Views)

Oli,

 

What you want to use is a sequence structure. You can place the top waveform in the first sequence block, a wait for X amount of time in the second block, and then your third waveform in the third block. Sequence structures can be used to control the order of execution in LabVIEW programs just as error handling can do.

 

Regards,

 

Steven Zittrower

Applications Engineer

National Instruments

http://www.ni.com/support

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