LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Obtain a DVR to a front panel control

How can I obtain a DVR of a front panel control and change its value using DVR?

0 Kudos
Message 1 of 4
(174 Views)

Hi canzie07,

 

Why would you want a DVR to a control?

Front panel controls can already be references by themselves:

 

raphschru_0-1713621275747.png

 

Regards,

Raphaël.

 

0 Kudos
Message 2 of 4
(148 Views)

A DVR lives on the diagram and has nothing to do with any front panel UI elements (except for the DVR terminal that can be used as subVI connector). Of course you can read from a front panel control terminal and wire it to a DVR or read from a DVR and write to a front panel indicator in classic dataflow programming. (Or go the other way using local variables or value property nodes in the rare cases where that is needed)

 

Instead of throwing a fancy acronym at us with vague operational questions, maybe you could take a step back and explain what you are trying to do, not how you are trying to do it. There is probably a much easier solution to whatever you are trying to do. What programming problem are you trying to solve?

0 Kudos
Message 3 of 4
(131 Views)

@canzie07 wrote:

How can I obtain a DVR of a front panel control and change its value using DVR?


You don't.

You can use a reference to a control, which is a suboptimal solution, you shouldn't use front panel objects as data storage. Or have a DVR to some data. This data can be written to a control or indicator, but the DVR doesn't point to it.

But trying to do what you wrote, it'd be something like this:

Yamaeda_0-1713769645111.png

 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 4 of 4
(65 Views)