LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

formula node

Hi everyone.

I have a problem with the formula node.
I want to calculate the following  function:

Ux=xdot+Omegat*(y-y0)+thetax

where xdot, Omegat, y, thetax are all 1D arrays ( honestly these are waveforms but I convert these in arrays) while y0 is a constant. Also the output Ux has to be a 1D array.
When I implement the formula in the appropriate box I receive a message about "array indexing indices".
For more information I link my .VI.
Some idea how to solve this task?

Second question:
Using the formula node is faster than realize all these operations in a different way?
I ask it because I will need to include this .VI into 5 different "for loops"?

Thanks
matomato
0 Kudos
Message 1 of 3
(2,197 Views)
Hi matomato,

fastest is usually to use LabView primitives! See attachment...

Edited: made another small change to your vi: changed y0 to DBL to avoid unneccessary datatype conversions!


Message Edited by GerdW on 02-27-2008 05:11 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(2,188 Views)
Thanks GerdW!!

This means that it is better to use the primitives than the formule node.

Great
Regards,
matomato
0 Kudos
Message 3 of 3
(2,176 Views)