LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Memory editing for debug of code

I would like the ability to be able to change the value of variables during run time for debug purposes. In both CVI and TestStand I can change values directly through the watch windows. I haven't figured out how to do this in labview and when I try through the probe windows, the program does not let me change the values. Does anyone know of a way to do this?
0 Kudos
Message 1 of 4
(2,342 Views)

I think I dreamed about this once...

 

As far as I know, NO, it is not built-in.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 4
(2,339 Views)

Hi Steve,

 

one possible, but risky way would be the usage of global variables.

You have to define them as controls to be able to change their value. As long as you only write them once (seldomly) you can use this for debugging.

 

But be warned: it's risky because of side effects (aka race conditions):smileywink: 

Best regards,
GerdW


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

Then you should go and kudo this idea http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Allow-Data-in-Wires-to-be-Forced-During-Development/id... in the Ideas Exchange.

 

It seems to have gotten a reasonable number of kudoes already.  With enough support, maybe such a feature can be added to a future version of LV.

Message 4 of 4
(2,318 Views)