From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Assigning value to picture in picture ring control

Hi,

 

i made a picture ring that contains 23 images. I'm measuring a real-time signal and want to assign (for example) picture 1 to measured-voltage-value of 0.5 V, picture 2 to 1 V, picture 3 to 1.5 Volts, etc.

How do i do this?

 

Greetings

0 Kudos
Message 1 of 5
(2,823 Views)

Hi Erik,

 

simply wire round(value/0.5) to the terminal of the ring...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 5
(2,811 Views)

Image ring.png

 

It all depends on your code structure.

---

While evaluating my code please have in mind that I am a LV novice. Therefore sometimes my code might violate some coding rules that I have to learn about myself. But how else could I do that... 🙂

Chart zoom with "Mouse Over" effect
0 Kudos
Message 3 of 5
(2,807 Views)

Thank you GerdW for your advice. I did as you said and it now responds to my signal.

I've an additional question: since my maximum value is around 3 volts, can i make the picture ring in such way that it shows every additional 0.3 volts the next picture (i've reduced it to 10 pictures)? (and when i'm over 3 volts it still shows the last picture)

 

Greetings, Eriktw

0 Kudos
Message 4 of 5
(2,795 Views)
Hi Erik, what about the "In range and coerce" function, found in the comparison palette?
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 5
(2,790 Views)