LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

2D picture control rotating text

Hello All,

I need to develop a number of avionics styled instruments for the user interface part of my program. I decided to do this using the 2D picture control and have had some success developing the compass lines. See attached image

 

I then moved onto trying generate the numbers and letters and rotate them around the compass, this is where I have been getting problems

 

First I found I cannot get the [user specified font] parameters to work in the Draw Text in Rect.vi to work. For example the font size doesnt appear to work for me.

 

Next I tried to find a way to print text at varying angles around the compass on the pic control, the only method I could find was convert the text to an image and rotate it around the compass centre by looping my code with new text on each iteration. Unfortunately as I rotate the string the text dissappears behind the white pane and and black rectangle appears in place of the shifted box.

 

I would like to continue using the picture control as it suits the number and type of instruments I need to construct. Otherwise I will need to modify the Labview dials and indicators. Is there a Picture Control toolkit available I have seen yet or an old post solving these issues?

 

Help Appreciated

 

Chris

 

Download All
0 Kudos
Message 1 of 2
(2,880 Views)

User specified font works.  See attached VI.

 

For rotate test, pad the text with spaces before and after sting before converting to a picture.

 

Look for an Add-In for LabVIEW using Package Manager or check NI's site.

 

You are off to a good start!

 

Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
Download All
0 Kudos
Message 2 of 2
(2,828 Views)