LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Laditude display

There is a way to format a numeric indicator (double) and utilize N (North) for a positive number and S (South) for a negative number or I have to utilize a string?

 

 

actual format string: %<%H°%M'%S''>t

 

 

Image.jpg

 

 

Jean-Marc

 

 

 

 

 

 

 

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

I did the job with an event structure (LV86) but I am sure It exists a better solution...

 

 

Jean-Marc

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

Jean-Marc,

 

The event structure is fine. Since you are not using the timeout event, simply delete that case.  I would also move the format string calculation inside the false case of the large case structure so that the calculation is only performed if a change is going to be made rather than every time the event occurs.  It probably does not matter in this example, but it is generally good practice to avoid calculating things which are not actually needed.

 

On the Mac a degree symbol is typed as Option-Shift-8 = °

 

Lynn 

Message 3 of 3
(2,704 Views)