LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data Parsing

Hi there,
I have a text string made which contains 30 blocks of variable size numbers.
eg, 123 3456 54323 46545678 656 56678
I want to data parse the string so that each number then goes into a
indicator. This indicator will then be used for calculations to output into
a different string. I do not have any problems with writing data to a file
using the bundle command, but I just do not seem to understand how to do it
the other way round. Thanks for any help
Denis

I
0 Kudos
Message 1 of 3
(3,812 Views)
Denis Hodgins wrote:
>
> Hi there,
> I have a text string made which contains 30 blocks of variable size numbers.
> eg, 123 3456 54323 46545678 656 56678
> I want to data parse the string so that each number then goes into a
> indicator. This indicator will then be used for calculations to output into
> a different string. I do not have any problems with writing data to a file
> using the bundle command, but I just do not seem to understand how to do it
> the other way round. Thanks for any help
> Denis
>
> I

Look at attached vi. Play with it.
--
Sergey Krasnishov
____________________________________
Automated Control Systems
National Instruments Alliance Member
Moscow, Russia
sergey_acs@levsha.ru
http://acs.levsha.ru
0 Kudos
Message 2 of 3
(3,812 Views)
Hi Denis,

take the string example you gave and wire it into the "Spreadsheet
String To Array" VI as spreadsheet string. Then set the format string to
"%d", create an U32 array constant and wire it to the "array type"
input. Create an indicator and run. Voila. (I send you the example in
priv. mail)

If you are using the "Read File" VI wire the "byte stream type" input.

Hans Jörg



Denis Hodgins schrieb:
>
> Hi there,
> I have a text string made which contains 30 blocks of variable size numbers.
> eg, 123 3456 54323 46545678 656 56678
> I want to data parse the string so that each number then goes into a
> indicator. This indicator will then be used for calculations to output into
> a different string. I do not have any problems with writing data to a
file
> using the bundle command, but I just do not seem to understand how to do it
> the other way round. Thanks for any help
> Denis
>
> I
0 Kudos
Message 3 of 3
(3,812 Views)