LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read a character from a file

Solved!
Go to solution

If your format is always the same and will never change (i.e. same number of characters preceeding $), consider using a tag placement, that is, keep track of how much data is received/recorded, that is to say, occurrances.  For instance, you just made your 4th recording, you could store this counter into an FGV or feedback node, then when you read the file back using a FOR loop, you would search for $, and when you have iterated through until your iteration count equals your stored count (number of occurances of $ found = counter), you can extract the data at that location in the file.

An easier way would be to simply take your count and multiply by 127.  This would give you your offset file position.

You could use a modification of this idea, using the $ as a delimiter, as has already been suggested along with a count value.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 11 of 12
(268 Views)

Thanks Mr.. johnsold you idea works wonderfully...Smiley Happy

0 Kudos
Message 12 of 12
(245 Views)