LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Conversion string from a system unit to another

Hi all i've a problem

i'm talking with an oscilloscope.

when i ask it some information like X or Y scale, it answers me a string (like 0.0016 to indicate 1.6m or 0.0000005 to indicate 500n).

I'm finding difficulties because the first string to number conversion cut me the number so i can't go on....

I want 2 number indicators:

1)  with the value with 3 digits;
2)  unit as an integer to connect to a ring array of constants (filled like mVolt,nVolt,pVolt ecc)

Can you help me?

Regards

Dario
http://www.sd-studio.it - web design agency
0 Kudos
Message 1 of 5
(3,061 Views)
Hi Dario,

you can set the formatting of your number indicators!
Maybe you try to use a format like '%3p' to show a number with 3 digits and SI unit...

You can also go this way: right-click your number indicator, select format&precision and set it to 3 'significant digits' and 'SI notation'
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(3,057 Views)

Hi Dario,

GerdW is right; you can both set your indicator formatting and choose the best suitable conversion function for you.

Below there's a simple example of conversion string/numeric (double) (It's in 7.1)

Fabio M.
NI
Principal Engineer
0 Kudos
Message 3 of 5
(3,036 Views)
sorry

i've only 6.1 version avaible

tnx
http://www.sd-studio.it - web design agency
0 Kudos
Message 4 of 5
(3,033 Views)
Hi Dario,

here's a picture of Fabio's vi (with small addition by me to demonstrate the number-to-string formatting):

Message Edited by GerdW on 01-10-2007 10:44 AM

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 5
(3,028 Views)