ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to modify strings by deleting non-essential portions?

Solved!
Go to solution

I am using a Labview driver for a linear stage.  To use this stage, I need for it to output the position which I can get.  However, it outputs the position in a string like the following:

 

POSITION=-1.2754

>PRINT "POSITION="  POS

 

How would I get rid of everything except for -1.2754?  Is there some type of deconcatenating feature in Labview?

 

Thanks!

0 Kudos
Message 1 of 3
(3,030 Views)

would this work?

 

String.png

Andy Chang
National Instruments
Message 2 of 3
(3,016 Views)
Solution
Accepted by topic author Purdue17

Not sure what you mean by a "deconcatenating feature". The Spreadsheet String to Array is the closest I can think of.

 

I am assuming that's 3 lines that you're getting. The example shown above can be simplified to this: 

 

Message Edited by smercurio_fc on 04-12-2010 04:18 PM
Message 3 of 3
(3,011 Views)