Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66970

Unit processing for non numerical controls

$
0
0

My task is extending an existing application with an flexible unit system. E.g. it should be possible to change the unit system from SI to UScustom.
I solved to configure controls and indicators with units by the label unit.text property. I load and set these units for all of my controls indicators during the initiial phase of my application. But  how to handle values with units for non numerical controls, e.g. textoutput ?.

In my attached demo vi I try to outline the problem:

Values with units between numerical controls and indicators can be interchanged correctly by using the label.unit.text. This can be done also dynmically. So the value the operator recognizes is always correct. Now I want to write into textfiles. How can I do this consistently throughout my whole application. My target vi  consists of hundreds of vi's so I need a flexible solution.

 

In the bottom part of the vi I tried a solution which works but it is not flexible enough for big appliactions. Is there anybody with a elegant solution ?.

 

Regards,

Jörn

 

 

PS: By the way, I can't upload vi's, zip are uploadable.


Viewing all articles
Browse latest Browse all 66970

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>