07-28-2022 02:56 AM - edited 07-28-2022 03:10 AM
hi everyone,
Im asking this this question again because previously i created some unnecessary confusion. Im controlling my VI inputs using slider which sends command to micro-controller (string and last two bits which varies from 00 to 03) and changes last two bits when move the slider as 01,02,03. Now on front panel i want to show these number as 1100, 750. 355 but at block diagram it should be same as 01,02,03 as input. should i need lookup table? or can someone give me idea?. the Vi is attached for better understanding and to show what im trying to do which has same values at front panel and block diagram which are 01,02,03. ( 01 in block diagram is =1100 Khz on front panel, 02 in block diagram is= 750 khz, in short if i select 1100 on slider then it should send 01 in block diagram and so on) .
thanks 🙂
07-28-2022 05:08 PM
Sorry I have an old version of labview so I cant see your VI. Must you use a slider or could you select the values 1100, 750. 355 by clicking a boolean? You could have one bool for each selection and track the state of the selection (and use the Booleans to indicate the selection)
07-28-2022 07:20 PM - edited 07-28-2022 07:21 PM
How about a radiobutton control or a ring control? How about an enum?
07-29-2022 10:05 AM
Just right click on the slide and select "Text Labels", got to properties for the slide and modify the texts shown by default.
Look at the atached vi saved in LabVIEW2017
07-29-2022 11:21 AM