04-17-2022 08:04 PM
Hello to all ... I wonder if I can solve a difference equation with shift registers ... I tried the kutta VI runge ... it works perfectly but I want to implement my code on FPGA ... The problem is that the runge kutta VI doesn't work on the FPGA so I want to solve these equations with shift registers to be able to implement them.
The first code is done with Rungr Kutta.
The second one is my attempt to solve with Euler's method (shift registers) (i want all the eterations in an array), but it doesn't work at all.
Can someone help me?
ps : equation are attached to front panel
Solved! Go to Solution.
04-18-2022 11:09 AM - edited 04-18-2022 11:16 AM
At this point, you should go back to the tutorials and improve your general LabVIEW skills first.
When attaching code that "works" (according to your statements), you should make sure that all controls contain typical default values (x=0 and x0="empty array" are not reasonable). What are typical values? Why are you using a chart instead of a graph?
Same code, cleaned up:
04-18-2022 11:48 AM
the x0 values are all 0.001 and the code works and the 3d graph shows the lorenz system
the problem is in the second subvi atteched to my question
04-18-2022 11:55 AM - edited 04-18-2022 11:57 AM
You are still not telling us what the value of the x control is? (and why are you not labeling it as "time end" to keep us all sane???)
Looking at your FOR loop, it almost seems like you randomly wired things together. No resemblance to your original formulas.
04-18-2022 12:03 PM - edited 04-18-2022 12:05 PM
sorry i forgot it ...the x will be a const equal to 100
04-18-2022 12:24 PM
Seems to work just fine once you correct all the glaring math errors in your FOR loop.
04-18-2022 01:34 PM
Also note that using arrays typically simplifies things dramatically (you could even use an IPE, but I doubt the compiler would notice a difference 😉 )
04-18-2022 04:27 PM - edited 04-18-2022 04:28 PM
thinks for your help but i copied the code but the 3d graph dosen't appear i don't know why ! can you post the program so i can try it ?
04-18-2022 04:30 PM - edited 04-18-2022 04:32 PM
@neo0x wrote:
thinks for your help but i copied the code but the 3d graph dosen't appear i don't know why !
We don't know either because we cannot tell if you copied it correctly or made a mistake.
I posted two versions. Which one did you copy?
Show us what you did! Is the 2D array showing the correct values?
Is the blue zero really wired to the lower index of the two choices?
04-18-2022 04:49 PM
this what i have copied