From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, 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: 

Plot the integration of 4 differential equations

Hello,

I am based on the Lorenz example implemented in Labview to plot a dynamic attractor in 3D.

I just changed the Lorenz differential equations with my differential equations as attached below.

Labview runs without error but gives zero for all the coordinates. Lorenz system works very well.

Can someone explain why this happened? And how Can I solve it?

Thank you in advance,

Cheers,

Zied

Download All
0 Kudos
Message 1 of 5
(2,813 Views)

Have you checked, where you get zero results at first?

Some array indexing is done, are the arrays zero before or after?

0 Kudos
Message 2 of 5
(2,758 Views)

Hello,

I have no clue how they can be filled and this is why I am posting this topic.

They were empty before the run.

Thanks,

Zied

0 Kudos
Message 3 of 5
(2,746 Views)

 Hi Zied,

I would first verify your script on The MathWorks, Inc. MATHLAB® software and make sure that your T and Y value are outputted correctly.

MATLAB® is a registered trademark of The MathWorks, Inc.

Saki K.
Applications Engineer
0 Kudos
Message 4 of 5
(2,726 Views)

No, i mean you do not know currently at which part of the bd or the external ml code the error happens. Maybe the data is output correctly from the ml code but some of the array functions return the wrong part of the array or the indices are exchanged or something. That's why you should probe the wires in the bd to get intermediate results.

 

0 Kudos
Message 5 of 5
(2,675 Views)