10-08-2008 11:05 AM
10-08-2008 11:24 AM
LabVIEW has different kind of functions,
the most basic are displayed in a pale yellow colour. There Primary nodes do not have block diagrams as they are in their simplest form alraedy.
functions with block diagrams behind them are sub-VIs. These are programs within programs. any VI can be called as a sub VI. the block diagram can be viewed by double clicking on them and then sellecting view>>show block diagram.
blue nodes or functions are express VIs. These bring up a configuration box and then when you click ok write the relivant labview code in the background for you. The code can be viewed by right clicking and selecting "open front pannel" by viewing the code behind you will "hard-code" it, thus turning the express VI into a subVI and therefore you will be unable to use the configuration box again.
I hope this information has been helpful as I did not find your question entirly clear. If you can clarify it for me asuming i have not answered you entirly or if you have any other questions then please post back.
best regards
10-08-2008 11:36 AM
tinamoli wrote:
how can i khnow the blockdiagram for each function in labview like the function Add Array Element,
In addition to Graham's answer here are a few more points because your question is not very clear.
Primitives such as "add array elements" don't have an accessible block diagram.
10-09-2008 02:44 AM
I cannot agree more altenbach here context help is an invalubal feature which I use constantly.
(altenbach - congratulations on your knighthood)
best regards
10-09-2008 03:00 AM
thanks GrahamG,
in my vi ihave an array of n_elements,,and i want to subtract each element by the first element,,
in the function i could find add array elements,,which if i know its block diagram ,maybe i can mimicking it for subtraction,,
there is not view >>show block diagram option .
can you help me more clearly pls?
10-09-2008 03:40 AM
You can just use the subtract function. No need to access any block diagram.
The subtract function is polymorphic, it accepts arrays or scalars of any type. To subtract the first array element of all array elements, get the first array element, then subtract this from the array using the standard subtract function.
10-09-2008 09:45 AM
tinamoli wrote:in my vi ihave an array of n_elements,,and i want to subtract each element by the first element,,
in the function i could find add array elements,,which if i know its block diagram ,maybe i can mimicking it for subtraction,,
Why don't we keep all this in one place? Thanks! 🙂
(And no, "add array elements" has really nothing to do with what you need. It will just give a single number that is the sum of all array elements, while you need to operate element by element.)