LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Xcontrol including a ring control: how to update it in real time?

Solved!
Go to solution

Hello

I'm implementing an Xcontrol with a ting control, and a checkbox as illustrated below:

Sans titre.png

 

I'm blocked about the initialisation of the values displayed by the menu

Since I can't use the ring control's property "strings" (because it is includedinto the xcontrol), I created my own property "strings" in the .xctl, with an FGV for storing these values or read it depending on the read/write property.

 

Despite of this, the controlmenu still don't update at changing of the "strings" proprety.

 

you can find joined my .xctl (labview 2016) (click on Principal.vi, change table content, and click on OK ro see that nothing is updated)

 

thanks in advance Smiley clignant de l'œil

Pierre FCentum TNS, Grenoble
Certified LabVIEW Associated Developer
0 Kudos
Message 1 of 6
(3,835 Views)

The strings of the ring control are never being updated because there is no code anywhere that updates them.

In the Direction Change event of you facade, send a reference of the ring control to the Display State.

In your in your read/write properties, use that reference to access the strings in the ring.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 2 of 6
(3,786 Views)

hello, thanks for your help, but still don't work 😞

 

I moved the VI FGV to the others events (state change, run mode and  direction change)

then IQ added a indicator reference fo the ring control and a property node "strings" to refresh it.

without any success, but I think it's because any of these events are executed

 

more generally, How to change dynamically the front panel indicator when calling a property node?

 

you will find joined my VI correction with your advises

Pierre FCentum TNS, Grenoble
Certified LabVIEW Associated Developer
0 Kudos
Message 3 of 6
(3,766 Views)
Solution
Accepted by topic author Pierre_F

Do what I suggested in my previous post. "In the Direction Change event of your facade, send a reference of the ring control to the Display State. In your read/write properties, use that reference to access the strings in the ring."

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 4 of 6
(3,749 Views)

sorry I didn't read all your message

 

i created this reference to the display state and use ring control property node to the c Xcontrol property, but despite of this, it still don't work

 

please find the corrected code

 

If I put a probe in the value reference in the property.vi, it's said "not a refnum"

 

Pierre FCentum TNS, Grenoble
Certified LabVIEW Associated Developer
0 Kudos
Message 5 of 6
(3,745 Views)

this is working 🙂 thanks for your help

 

It didn't work because I didnt change both booleans 'data changed' and 'state changed' in the typedef 'action'

 

I don't know if I missed some information, but I think Xcontrols should be a little bit more documented in labview help. because since the .XCTL is scripted, the VIs'  and typedef 's behaviours inside it are very ambiguous

Pierre FCentum TNS, Grenoble
Certified LabVIEW Associated Developer
0 Kudos
Message 6 of 6
(3,733 Views)