LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

control labels

Is it possible to either attach 2 labels to a control or place the label behind the control?

 

I am trying to achieve a display which contains leds with 2 text messages each

 

  "led 1" [O] "data value"

 

I can do this with an additional text box but this requires 2 lines every time I want to set the ctrl attributes for the item, with lots of controls to set this is going to take a lot of code.

I have tried with a label where the text is spread out behind the led control but unless the label is transparrent the control is hidden, with transparent you then lose the 3d appearance of the label. Setting the z plane does not affect the label.

 

Best Regards

John 

 

 

0 Kudos
Message 1 of 3
(2,958 Views)

Hi John ,

 

I think the best option here is simple C programing ,

 

Write a function which gets the number of the led and the msg and display it to the led you want....

 

some thing like ChangeLedVars( int ledNumber, char textMsg[]);

 

the panel is the same panel and the controls are the same so you dont have any problem changing them

 

Hope it helps...

 

-----------------------------------------
Kobi Kalif
Software Engineer

0 Kudos
Message 2 of 3
(2,919 Views)

If you haven't too many states for the LED you could use a picture ring with an appropriate set of image/value pairs. Take a look to the attached example.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 3 of 3
(2,913 Views)