LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Read back CVI Standard Input Output window text?

I am curious if there is a way to read back text from the Standard Input Output Window using the CVI I/O window, not the system window.  Essentially, I want to automate logging all data from the window to a file.  We have a lot of dll's in testing that all print things to the screen.  Sometimes, we get well over 2000 lines of data on the IO Window during one test.

I am hoping for an easy way, without modifying each dll's sourcecode (open and write to a file each time in each dll), and just do this once by reading all data back from the window and save it when my testing is complete.

If there is not any ways, any creative simple ideas?  🙂

Thanks.
0 Kudos
Message 1 of 3
(3,786 Views)

Hello ks08,

This KnowledgeBase article contains a list of commands that work with the Standard I/O window.  You should be able to use these commands to interact with the Standard I/O window.  Do note that I did get some errors/warnings when I used 0 as the file handle for the second set of commands listed, but not when I used 1, so I would recommend using a value of 1 as the file handle if you use those commands.

John B.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(3,711 Views)
Thanks for the reply.  For me, I have to use a value of '0'.  If I use a value of '1' for the filehandle, I get an error.

Also, if I use 'ReadFile' or '
ScanFile', the IO window will expect me to enter data, which then captures that data (the program pauses waiting for input data).  However, I am trying to get older text data that has already been printed to the screen.  Is there a way to go back and get this? 

Thanks.
0 Kudos
Message 3 of 3
(3,704 Views)