Reading text file using sequencer
Software Test Engineer I
There is no function block to read a text file. You can open it with the file manager, but the sequencer can't read it.
Well..its a bit point less if one can only open a text file and not read its contents.
Can this basic feature be added?
It would also be helpful to have some string manipulation function. For eg, reading a text file and assigning the values (separated by a delimiter) to variables.
Software Test Engineer I
I have talked about this feature with our developer who works on the sequencer and he said, that the feature could be implemented.
We just need to define how it would work. I suggest, that this sequence block would accept 3 parameters - text file, row in file and a variable to assign the row to it. I believe this could only work with string variables. Some one also suggested adding regular expressions to this function, to only save data belonging to an expression.
What do you think? How would you like this to be implemented? You suggested that the text file reading would be done by separating the values by a delimiter, any other suggestions?
Like I said, we believe this would be a really useful feature for many people, that is why it needs to be done well - and many user inputs can achieve this.
It doesn't look like its been implemented. Any comments Dewesoft?
Technical support
Dear Mario,
this feature has not been implemented yet. It would be possible with the new version of sequencer which would be available at the next measurement conference.
Currently it is possible with the combination with the C++ script. In C++ script you can open a .txt file and read the data from it and also can output the data from the *.txt file.
Regards