VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Get current UserChannel value on Custom VeriStand Controls

I think this question is more about C# + MVVM Framework but, please allow me to post my problem.

 

I'm trying to understand VeriStand Editor Plugin Examples. Almost working well as expected but, I'm still struggling,

"How to get current value set to the control and path to other controls?"

 

I'm using https://github.com/ni/veristand-editor-plugin-examples/blob/master/VeriStandCustomControls/KeySwitch...

In the example code, I'd like to

  1. Add textblock onto the control (As the result, Knob and textblock are displayed)
  2. Assign UserChannel1 to Knob control on VeriStand UI
  3. (as custom control internal operatoin), Path current Knob value to the added textblock

But I'm still looking for a way to access a value which may be internally stored in KeySwitchCotrol instance.

Has anyone tried this?

 

Tepig_0-1754193404859.png

 

Certified LabVIEW Developer
There are only two ways to tell somebody thanks: Kudos and Marked Solutions

GCentral
0 Kudos
Message 1 of 3
(216 Views)

Why not place an additional numeric indicator that binds to the same channel?

 

I tried to play around with the KeySwitchControl ControlTemplate but couldn't figure out how it works.

I created something based on the PWMControl and could do the same for your use case, but it will be a full customized control with more effort. I don't think it's worth the extra time for something with a reliable workaround.

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
-------------------------------------------------------
https://github.com/ZhiYang-Ong
0 Kudos
Message 2 of 3
(140 Views)

Thank you ZYOng. My "current" goal is, to understand the architecture of the C# project and then, would like to develop various controls.

 

As you are already aware, this project is too difficult to understand the entire architecture for LabVIEW / VeriStand developer...

Although, I do not want to customize controls on VeriStand workspace, I'd prefer to use new VeriStand UI.

 

I beliebe this kind of request is necessary not only for me but also for many VeriStand users.

Certified LabVIEW Developer
There are only two ways to tell somebody thanks: Kudos and Marked Solutions

GCentral
0 Kudos
Message 3 of 3
(120 Views)