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,836 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,824 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,820 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,808 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,803 Views)