01-20-2009 12:05 PM
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
01-20-2009 04:12 PM
01-20-2009 04:23 PM
01-20-2009 04:54 PM
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.
01-21-2009 10:34 AM
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