ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Formula node- using C

Solved!
Go to solution

Hi there,

 

I need to create a vector and for that I am using the formula node. I am doing that in C ( in which I really am a beginner) whereas in MATLAB the program some time runs some time it does not.

Attached is the program,  the error list says:

 

 Error on line 3 is marked by a '#' character: "  int32  j; double# Rv[14]; Iv[14]; for "

 

Can anyone help?

 

thank you in advance

0 Kudos
Message 1 of 3
(3,178 Views)
Solution
Accepted by topic author helaka

You have 2 syntax errors on that line.  The proper term is not double but float64.  And separate the two arrays with a comma and not the end of statement semicolon.

 

Make it look like this and the broken run arrow goes away.

 

float64 Rv[14], Iv[14];

0 Kudos
Message 2 of 3
(3,170 Views)

Hi Raven Fan,

 

Thanks a lot. it really helps.

 

Sincerely ,

 

Helaka

 

0 Kudos
Message 3 of 3
(3,140 Views)