LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Formula Node Troubles

I'm a beginner with LabVIEW and I am working with the formula node.  My program is not running.  The error I am recieving is "array indexing expected".  What exactly does that mean?  All my input arrays are defined outside of the node.

0 Kudos
Message 1 of 11
(3,846 Views)

@a1wd3 wrote:

I'm a beginner with LabVIEW and I am working with the formula node.  My program is not running.  The error I am recieving is "array indexing expected".  What exactly does that mean?  All my input arrays are defined outside of the node.


Don't be shy.  Post your code so we can see what you are doing.  This is a place of learning.  🙂

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 2 of 11
(3,840 Views)

I also can't seem to get array outputs and a place to wire my error output.

 

 

 

0 Kudos
Message 3 of 11
(3,837 Views)

@a1wd3 wrote:

I'm a beginner with LabVIEW and I am working with the formula node.  My program is not running.  The error I am recieving is "array indexing expected".  What exactly does that mean?  All my input arrays are defined outside of the node.


You need to index your arrays in the formulas.  Are you trying to get arrays going out?  Scalers and arrays do not mix inside of the formula node.  You could probably do all of that in actualy LabVIEW code instead of using the Formula Node.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 11
(3,828 Views)

Yeah, I'm trying to get arrays in my outputs.

 

0 Kudos
Message 5 of 11
(3,823 Views)

Hi a1,

 

- the formula node doesn't handle arrays...

- it doesn't handle error clusters...

- the help for the node also doesn't mention a function "ones(x,y)"...

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 11
(3,822 Views)

Well that's annoying.  I guess I'll just try doing it without the formula node.  Any ideas on how to make it any easier? Thanks.

 

0 Kudos
Message 7 of 11
(3,816 Views)

Hi a1,

 

an idea would be to use MathScript instead - when your LabVIEW license permits...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 11
(3,813 Views)

Ok, how to I access Math Script?

 

0 Kudos
Message 9 of 11
(3,808 Views)

Hi a1,

 

when you have it installed (and your license is valid) you will find it next to the formula node in the structures palette...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 11
(3,806 Views)