LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

completing the video average before moving on to the next action

I'm not good at using labview however I've almost completed the project that I have been working on but i cant figure out how to have the labview complete a process before moving on to the next process. For example...I'm getting the video average of the spectrum analyzer but the program will move on to the next process before it completes the video average. I just want to know how to tell the program to complete the video average before moving on to completing the next process. Any help would be greatly appreciated.
0 Kudos
Message 1 of 7
(2,902 Views)
LabVIEW is a dataflow language. Look at the VIs you're using and look for the Error In and Error Out terminals. Connect the Error Out of the first VI to the Error In of the second VI. Dataflow means that the second VI will not start until the data to it is available and the Error Out data from the first VI will not be available until the first VI completes. There's a lot of information available about dataflow programming on NI's web site. Search around for more details.
0 Kudos
Message 2 of 7
(2,902 Views)
I have it set up the way you have told me to do it...but its still doing the video average but it doesnt complete it and then it just moves on to the next sequence. Is there a way that i create anything that will say once the video average completes then move on to the next sequence.
0 Kudos
Message 3 of 7
(2,902 Views)
What's doing the video average? is this something with the vision toolkit?
0 Kudos
Message 4 of 7
(2,902 Views)
I testing for the noise level using the video averaging. I have it all configured properly but i need it to complete the video average at 50 before it moves on completing the process.
0 Kudos
Message 5 of 7
(2,902 Views)
I still am not sure what you're doing to do the averaging. Is all of the averaging done inside a VI or is it done by an exteranl instrument? If inside a VI, what is the VI because I would like to see the VI that doesn't complete the operation before passing data to the next. If it's an exteranl instrument, then you'll have to dig into the instrument manual to see if there's a query to see if an operaton is complete. If there is, keep querying the instrument in a while loop and only exit when complete or some timeout is reached. If there is no such query, then the only thing that you can do is put some fixed delay between the VI that sends the command to do the averaging and the next VI. If you've got the Open G tools, then
you've got a Wait function with Error In/Error Out connections. Otherwise, you can use a signle sequence structure with a Wait inside and wire the error cluster through the sequence.
0 Kudos
Message 6 of 7
(2,902 Views)
Because I cannot rate a comment I would like to hereby add a four start rating here. Dennis's advice is accurate.
0 Kudos
Message 7 of 7
(2,902 Views)