> The problem I'm running into is that if Windows 3.1 crashes while taking
> data, the data is not automatically dumped into the data file. Thus I
> end up with a file of nearly zero bytes (no data recorded).
>
> Is there a command, or a switch that automatically updates the file (and
> file size) of the storage file during each storage phase.
>
> I'm currently running Vee 3.12 on a PC using Windows 3.1.
All you have to do is add the close command as the last command in
your write file box. As long as you don't execute a rewind or close,
it will append to the end of the file.
A better solution, however, would be to dump your data to an array,
and every time it gets to a size of 50 or more, dump the array to the
file (making sure to close the file after at the end, of couse:-) and
then clear out the array. This way, you're not constantly openning
and closing files.
Here's a quicky program I wrote to test this out;
+----------+
|For Range |
+----------+
|From: 0 |----+
|To: 9 | | +---------------------------+
|Step: 1 | | | To File |
+----------+ | +--+------------------------+
| | | To: myFile |
+---------------+ | | O Clear File at Pre Run|
| Random Number |------+ A| |
+---------------+ | | WRITE TEXT a EOL |
| | EXECUTE CLOSE |
+--+------------------------+
|
|
+--------+
| Next |
+--------+
(make sure you look at this using courier, or some other none
proportonal font)
___________________________________________________
E. Greg Noseworthy ____________
Greg.Noseworthy@comdev.ca ,_/| RubberDuck |
10-4 good buddy! |~||____________|
________________________________+O+--OO______OO____
> data, the data is not automatically dumped into the data file. Thus I
> end up with a file of nearly zero bytes (no data recorded).
>
> Is there a command, or a switch that automatically updates the file (and
> file size) of the storage file during each storage phase.
>
> I'm currently running Vee 3.12 on a PC using Windows 3.1.
All you have to do is add the close command as the last command in
your write file box. As long as you don't execute a rewind or close,
it will append to the end of the file.
A better solution, however, would be to dump your data to an array,
and every time it gets to a size of 50 or more, dump the array to the
file (making sure to close the file after at the end, of couse:-) and
then clear out the array. This way, you're not constantly openning
and closing files.
Here's a quicky program I wrote to test this out;
+----------+
|For Range |
+----------+
|From: 0 |----+
|To: 9 | | +---------------------------+
|Step: 1 | | | To File |
+----------+ | +--+------------------------+
| | | To: myFile |
+---------------+ | | O Clear File at Pre Run|
| Random Number |------+ A| |
+---------------+ | | WRITE TEXT a EOL |
| | EXECUTE CLOSE |
+--+------------------------+
|
|
+--------+
| Next |
+--------+
(make sure you look at this using courier, or some other none
proportonal font)
___________________________________________________
E. Greg Noseworthy ____________
Greg.Noseworthy@comdev.ca ,_/| RubberDuck |
10-4 good buddy! |~||____________|
________________________________+O+--OO______OO____
I've written a program that records temperature data versus time to an
ascii file.
The problem I'm running into is that if Windows 3.1 crashes while taking
data, the data is not automatically dumped into the data file. Thus I
end up with a file of nearly zero bytes (no data recorded).
Is there a command, or a switch that automatically updates the file (and
file size) of the storage file during each storage phase.
I'm currently running Vee 3.12 on a PC using Windows 3.1.
Thanks in Advance
Alberto Schroth
Hughes Aircraft Company
El Segundo, California, USA