LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Run Time Control Value Change for Debugging

LabVIEW can come with the feature where we can change control values on run time for more effective debugging and quick solution.

Here my idea to implement this feature can open opportunity to cange control value of a code running in loop and we can check control value change effect same time. No need to run code again and agin with different inputs.

Thanks and Regards
Himanshu Goyal | LabVIEW Engineer- Power System Automation
Values that steer us ahead: Passion | Innovation | Ambition | Diligence | Teamwork
It Only gets BETTER!!!
0 Kudos
Message 1 of 6
(3,086 Views)

@Himanshu_Goyal wrote:

LabVIEW can come with the feature where we can change control values on run time for more effective debugging and quick solution.

Here my idea to implement this feature can open opportunity to cange control value of a code running in loop and we can check control value change effect same time. No need to run code again and agin with different inputs.


I am sorry, I don't understand what you mean. Are you proposing an Idea or sharing your thoughts? Can you please explain little more detailed?

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 6
(3,080 Views)
Please list to the idea exchange. I'm certain this has been suggested before so do a search and kudo the idea.
0 Kudos
Message 3 of 6
(3,067 Views)

Hi Himanshu,

 

is this the same like placing a control in a loop and changing it's value in the FP while using (step-by-step) debugging?

Something possible since "ever"?

 

Or do I get this wrong?

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 6
(3,046 Views)

Hi Himanshu

 

It is possible to change the control value at run time, if the control is placed inside the loop but not if the control is outside the loop.

 

As, LabVIEW follows dataflow model for running VIs, every node on the block diagram executes when it receives the required input and it executes only once and passes the output to the subsequent node in the path. A loop is also a node, it accepts the input and executes the code inside it. A code running inside a loop does not accept a new input from a control outside the loop when the loop is running. But if the control is placed inside the loop the code accepts a new input, thus enabling you to change the control value at run time.

 

If you have any more queries, feel free to ask.

 

Regards,

Rohit Joshi

0 Kudos
Message 5 of 6
(3,017 Views)
I agree with Gerd. Your "idea" sounds like a good description of how LV already works -- and has since 1986. In fact in the Core 1 class there is a discussion of exactly what you are wanting. This is how dataflow works.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 6 of 6
(3,001 Views)