How to write functions in labview formula node?  labview
This is a discussion on How to write functions in labview formula node?  labview ; Hi,
Im new to Labview. I want to know whether we can implement functions in Labview formula node...?
Also can we get array output from a formaula node..?
In my program input is an array..the output I calculate is also ...

How to write functions in labview formula node?
Hi,
Im new to Labview. I want to know whether we can implement functions in Labview formula node...?
Also can we get array output from a formaula node..?
In my program input is an array..the output I calculate is also an array..?
How to solve this problem..
Please help me...
Shiva

Re: How to write functions in labview formula node?
Shiva,the formula node does not support writing own functions to be called alter in the node. You can do this using the XMath or the MathScriptnode.Nevertheless, the formula node is designed to incorporate algorithms which are quite complex in LabVIEW code, but a single line in C.But do not forget: The code within the formula node is normally executed slower than LVgeneric code!hope this helps,Norbert[Edit]: For Arrays as input, just connect an array to the connector. For outputs, you have to name the terminal just like an arrayvariable in your formula...Message Edited by Norbert B on 07042008 03:19 AM

Re: How to write functions in labview formula node?
Hi Norbert,
Thanks for your reply.
I tried to connect array variables used inside the formula to array labview object.It shows scalar type cannot be connected with 2D array..

Re: How to write functions in labview formula node?
Shiva, open the examplebrowser and search for "formula". Select the "quick sort.vi" in the list. This example contains an input and an output element for an array.hope this helps,Norbert

Re: How to write functions in labview formula node?
For example (at least for 1D array):
<img src="http://vilib.com/forForum/formulanodearray.PNG">
Andrey.PSAs was describged above, Help>Find Examples... is a very useful point!
FormulaNode.vi:
http://forums.ni.com/attachments/ni/...FormulaNode.vi