LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

...getting started with LavView

Hi there!!


I just have started learning labview, I must know it a bit coz I have
a project to do at university...
So, I've tried many stuffs, loops, socket and more...
but progs never run as I would wish they do , here is the question,
how LabView start a node? what way does it choose to execute VI ?
Is it possible to make it running like a written language
programmation ? i.e a main loop with function calls or something else?
because I never know which node it will execute first, even when using
sequences...
I have to make a P2P client, still possible?? 🙂 what would be your
advices ?

thanks a lot!!

Mesca
0 Kudos
Message 1 of 2
(2,593 Views)
> how LabView start a node? what way does it choose to execute VI ?

This may sound like the obvious, but the best mechanism is to use
dataflow -- to use data wired from the output of one node and into
another node that needs the data. For synchronization of nodes that do
not need to share data values, there are the structure nodes, which
include the sequence, though all of the nodes affect execution.

> Is it possible to make it running like a written language
> programmation ? i.e a main loop with function calls or something else?
> because I never know which node it will execute first, even when using
> sequences...

Diagrams are found inside each structure -- the interior of the For
Loop, the While Loop, the Case Structure, the Sequence Structure, and

the Event Structure, and of course the top level of each Diagram window.
When a diagram begins execution, it propagates all of its inputs, then
picks a node that has all data inputs to execute. In a textual
language, they typically pick line 1, execute it, then go to line 2. In
LV, the way to do this is to have something flowing from node 1 to node
2, ... One very convenient way of doing this is to use the error I/O wire.

The second thing I'd recommend is to open and look at lots of example
diagrams.

Greg McKaskle
0 Kudos
Message 2 of 2
(2,593 Views)