Sir,
Personally, I think the best way would be to use ActiveX, being that you could connect both CVI and Matlab to each other very easily. We have fairly extensive help available in the documentation we provide for CVI. One particualr document comes to mind, a .pdf file titled buildingactivexservers.pdf loacted in C:\Program Files\National Instruments\MeasurementStudio\CVI\bin
I think this should get you started in the correct direction.
Also, since this is a simple text file, it might be possible to simply save the text file to a location in your system with CVI, and then open the text file in Matlab, do the editing you wish, and save it back to a location. Then CVi could open the newly modified text file. You can find functions to open and close files
under the File I/O library and some in the Utility library.
Daniel McChane
Application Engineer
National Instruments