LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

knowing function blockdiagram

how can i khnow the blockdiagram for each function in labview like the function Add Array Element,
0 Kudos
Message 1 of 7
(3,437 Views)

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

Graham Green

Sr. Product Marketing Manager

National instruments
Message 2 of 7
(3,429 Views)

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.

 

  • If you need to know more about a function right-click it and select help to read all about it.
  • To find a certain function in the palette, use the palette search function.
  • If you see an icon on the block diagram and ned a quick hint on what it does, enable context help (ctrl+h) and move over it with the mouse.
  • ...
Message 3 of 7
(3,417 Views)

I cannot agree more altenbach here context help is an invalubal feature which I use constantly.

 

(altenbach - congratulations on your knighthood)

 

best regards

Graham Green

Sr. Product Marketing Manager

National instruments
0 Kudos
Message 4 of 7
(3,365 Views)

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?

 

Smiley Happy

0 Kudos
Message 5 of 7
(3,360 Views)

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.

 

0 Kudos
Message 6 of 7
(3,352 Views)

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.)

0 Kudos
Message 7 of 7
(3,329 Views)