09-11-2014 09:27 AM
I have a program to process and record the data while experimenting. The data file is attached here with (please have a look). It is recorded injection by injection with injection number. Is it possible to read the data file while acquisition and display the injection number (only the injection number)? I mean, the counter should count the number of injection while experiment from the datafile.
09-11-2014 09:32 AM
If you are writing to the file, it is really a bad idea to try to read from it at the same time. Weird things can happen.
Instead, you should keep a counter in your code. Shift Registers work extremely well for that.
09-11-2014 09:32 AM
Well of course it its possible! You can do it and much more!
Have you started any program? If so, show us your VI and tell us what bothers you - we'll be more happy to help you;)
09-11-2014 09:33 AM
Hi aneps,
when your software is recording the data why can't it display your information directly? Why to go the redirection by reading the data file?
Yes, you could read the datafile and parse the injection number. But:
- the datafile may be set to exclusive access from the writing routine. Then you will have a hard time to read it while it is written to.
- You need to parse data from the end of the file. Either you need to read the whole file again and again or you need to remember the last read position…