LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

execute one part before another

How to execute one part of code before another? The graph vi must execute before the case structure.

0 Kudos
Message 1 of 7
(2,915 Views)

Use a flat sequence?

0 Kudos
Message 2 of 7
(2,908 Views)

Use dataflow.  The error cluster wire is the usual choice to enforce it.  If you don't understand dataflow, start reading the LabVIEW 101 tutorials.  You won't get far without understanding it clearly.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 3 of 7
(2,898 Views)

Do you mean conecting error out of first vi to the error in of second vi? But case structure don't have this input.

0 Kudos
Message 4 of 7
(2,885 Views)

I doesn't matter if there is nothing in a structure that needs the error wire.  You can just pass it through (click inside the structure or it may wire under!) and it will create tunnels on the borders that will enforce dataflow.  You can even wire to one side of a structure and end the wire if you need to.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
Message 5 of 7
(2,879 Views)

Why does the graph VI need to execute first? It appears to me from the code you posted that you have created a race condition due to your use of local variables. Why are you trying to update the p- control in the case structure? It appears that you are trying to program LabVIEW as if it were a text-based language.

0 Kudos
Message 6 of 7
(2,878 Views)

If the integral is supposed to by used as input to the graph, why do you wire the controls to it? Just wire the integral directly, or what do you need the controls for? To see what's updating? Then make then change them to indicators and problem solved.

 

/Y 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 7 of 7
(2,864 Views)