LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Remove number unit in Format into String

Solved!
Go to solution

I want to send a String command to a VISA resource. On the UI is a double input field "amplitude" with unit volt. When using the "format into string" function, the unit ends up in the string send to the VISA device causing an error there:

 

wgeithner_0-1615371894333.png

Probe "5" always shows a string like "AMPL nn.nnn V;"

 

What would be the most elegant way to get rid of the unit?

0 Kudos
Message 1 of 2
(870 Views)
Solution
Accepted by topic author wgeithner

Hi wgeithner,

 

remove the unit by inserting a ConvertUnit function before the FormatIntoString…

Best regards,
GerdW


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