You need to perform random access File I/O to retrieve only parts of your
file. This cannot be done with the Easy File I/O VIs. Instead you must use
the intermediate File VIs. Use the Open/Create/Replace VI to open your
file, and the Read VI to read the values you want. Then wire to the Close
VI, and finally the Simple Error Handler. On the Read VI, you need to at
least wire the following terminals:
Position Offset
Count
Byte Stream Type
Data
Error Cluster
refnum
The position offset is a value indicating how many samples from the start of
the file. You need to multiply the offset by 4 before connecting the value
to the Position Offset terminal because each SGL value is 4 bytes long. The
Count is how many values to read from the file. Wire up a SGL constan
t
(value doesn't matter, you only need the data type) to the Byte Stream Type
input. Wire the Data output terminal to the rest of your VI.
Keep in mind that if you want to track the point where data was last read,
you also need to wire the Pos Mode input.
Mike