Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview Calculation Speed

 i met a problem in Labview that I want to calculate the energy and distance using integration and feedback in the while loop. But the calculation result is quite different from the real result i recalculate on the calculator.
 
 there should be something in this while loop that postpone the timing. I really have no idea about it. and don't know how it can influence the calculation timing. Do you have any experience?
 
 
Thank you so much
0 Kudos
Message 1 of 2
(5,294 Views)

My first thought about what is causing you issues is that you may be encountering race conditions. Based on the screenshot, the property node values and the local variable indicate that you have multiple variables being used at the same time. However, I cannot tell from the screenshot which exactly is causing the race condition, and there could in fact be multiple race conditions. If you are willing to post your code I can try and take a closer look. If this is indeed the issue, you may need to rethink how you want to program this code. If you are able to post a flowchart of how you want the VI to function, I can provide some suggestions. 

Matthew R.
Field Applications & Systems Engineer
National Instruments

Certified-LabVIEW-Developer_rgb.jpg

Certified-TestStand-Developer_rgb.jpg


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