From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pendulum Error Query

Solved!
Go to solution

Hello, this is some C code I inserted inside a formula node for a pendulum. It comes up with the error shown in the second screenshot, and I'm not sure what to do about it as I've copied exactly the code from a manual we were given. 

Thanks 🙂

IsobelMunden_0-1582205063435.png

IsobelMunden_1-1582205087697.png

 

 

0 Kudos
Message 1 of 4
(1,901 Views)
Solution
Accepted by topic author IsobelMunden

Hi Isobel,

 


@IsobelMunden wrote:

Hello, this is some C code I inserted inside a formula node for a pendulum. It comes up with the error shown in the second screenshot, and I'm not sure what to do about it as I've copied exactly the code from a manual we were given. 


What about that missing variable "theta0"? It isn't defined anywhere in this formula node!

(Check the naming of the formula node input carefully…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 4
(1,891 Views)

Thank you!!

0 Kudos
Message 3 of 4
(1,885 Views)

If GerdW's answer fixed your issue then you should mark it as the solution.

0 Kudos
Message 4 of 4
(1,862 Views)