06-12-2015 10:47 AM
So I know this is simple but I'm blanking. I want to be able to run part of my code before another part. And when the first part ends, the second starts.
How do I do this?
Solved! Go to Solution.
06-12-2015 11:02 AM
06-13-2015 04:33 PM
1... Put both functions into subVIs with some wire between them.
2... Use the stacked sequence structure, or the flat sequence structure. One frame will complete before the next.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
06-14-2015 01:23 PM - edited 06-14-2015 01:31 PM
@CoastalMaineBird wrote:
1... Put both functions into subVIs with some wire between them.
2... Use the stacked sequence structure, or the flat sequence structure. One frame will complete before the next.
Since you are a novice LabVIEW user - and I mean the OP and NOT YOU, CoastalMaineBird 😉 - you should avoid #2 until you completely understand why #1 works. Your question is THE FIRST THING that you learn in any formal LabVIEW training.
I suggest going here for some links to some excellent tutorials. The links are at the bottom of the page.
(IMHO you should just avoid 2a completely, but some people find the stacked sequence structure useful. Most people find it dreadfully diffcult to understand how all the frames fit together. The case structure has hidden frames, too - as does the event structure - but in each of those cases, you don't have to know what's in the hidden frames to understand what is going on in the visible one. With the stacked sequence structure, you have to have a very good memory - or a printout of the other frames in the sequence - to understand what exactly is happening from frame to frame.)