LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Formula Node issue - how to spawn array output?

Solved!
Go to solution

Hello forum,

 

there is this online help article from NI:

http://zone.ni.com/reference/en-XX/help/371361P-01/lvconcepts/formula_nodes/

 

...where we see this piece of code:

 

loc_bd_fnode

 

Can somebody help me to re-create this? I tried, but I can't spawn the numArry as an actual array output - it's always a scalar!

There must be a trick, please tell me

 

 

 

Here's what I tried already:

number-generator.png

 

Regards,
Alex

0 Kudos
Message 1 of 5
(4,107 Views)

Right-click the node output and set the data type? (Sorry, posting by phone, cannot test).

0 Kudos
Message 2 of 5
(4,101 Views)
Solution
Accepted by topic author alexderjuengere

Hi Alex,

 

Believe it or not, it is because of your comment syntax! Change the " /* " to " */ " at the end of your comment.

Message 3 of 5
(4,095 Views)

Gregoryj is right.

 

(I guess I had the Mathscript node behavior in my mind when composing my answer above, but in my defense I never use any script nodes myself ;))

0 Kudos
Message 4 of 5
(4,083 Views)

@Gregory

 wrote:

Hi Alex,

 

Believe it or not, it is because of your comment syntax! Change the " /* " to " */ " at the end of your comment.

 

altenbach wrote:

Gregoryj is right.

 

(I guess I had the Mathscript node behavior in my mind when composing my answer above, but in my defense I never use any script nodes myself ;))

 

 

Smiley Very Happy

 

thank you both!

I hardly use the script nodes in real applications - but for lazy prototyping, I tend to use the formula node.

Especially, if mathematically or logical equations are involved in finishing the task.

 

Understanding the formula node's syntax and programming with it

belongs to the category "brain calisthenics" 😉

 

 

 

 

0 Kudos
Message 5 of 5
(4,026 Views)