LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

array output from formula node

Thanx a ton people.Was really helpful
0 Kudos
Message 11 of 19
(2,689 Views)

Your solution for defining output datatype works great! But why doesn't it work the same for inputs? When I try defining an input variable using "C code syntax" I get a message saying the variable is already defined.

 

I tried deleted the input connector and re-adding it after defining the variable datatype in the code. But I get the same message, "variable already defined". It makes for some strange looking code to define the output variable one way and the input variable another. 

 

Disclaimer: I'm a C programmer just starting with labview.

0 Kudos
Message 12 of 19
(2,623 Views)

The following reply was intended for mercurio (Message 7). ( How do you respond to an individual's comment on this board? )

 

Your solution for defining output datatype works great! But why doesn't it work the same for inputs? When I try defining an input variable using "C code syntax" I get a message saying the variable is already defined.

 

I tried deleted the input connector and re-adding it after defining the variable datatype in the code. But I get the same message, "variable already defined". It makes for some strange looking code to define the output variable one way and the input variable another. 

 

Disclaimer: I'm a C programmer just starting with labview.

0 Kudos
Message 13 of 19
(2,618 Views)
The data type of the input gets changed automatically when you wire a value to it. The limitation is that it has to be numeric. When you first create an input node it's set to double. If you connect a wire that has as its source an integer value then the input will change to blue to indicate it's an integer. You do not define the input variables inside the formula node. The input node acts as the declaration and definition of the variable.
Message 14 of 19
(2,611 Views)

I can't see why the output array is always zero in my case. When I checked the sum of the arrays inside the formula node I know they aren't zero. But I'm not able to take them out of the formula node.

 

Blockdiagram.pngFrontpanel.png

0 Kudos
Message 15 of 19
(508 Views)

How is Pful declared?

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 16 of 19
(505 Views)

FBro_0-1715698923468.png

 

0 Kudos
Message 17 of 19
(502 Views)

I bet it's not empty, but you've simply put numbers in index 21-36

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 18 of 19
(497 Views)

Oh! You have hawk eyes! Thank you very much. I was looking for hours and couldn't see it...🙈

 

Thank you!

0 Kudos
Message 19 of 19
(492 Views)