I'm now using System Exec.vi to call a batch file to program a chip through COM port. The chip will return messages to PC for the current status and I want to get the message from LabVIEW. How to do that?
If I remember correctly, there is a DOS command that allows you to redirect the output to a file. You could put this command in your batch file.
>
"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
Hi, If you can use LabVIEW v6, it has a nice new function to handle dos commands & retrieving output from them. Failing that, you can pipe the output of a programme to a text file like this
dir > dirlisting.txt
and then just read the text file. You need to ensure that you wait until after the programme has run so you may want to use the LVWUtil library which has a programme call vi where you can wait until it returns.
Darren.
"ctbiu" wrote in message news:5065000000080000006E4F0000-1023576873000@exchange.ni.com... > Hi > > I'm now using System Exec.vi to call a batch file to program a chip > through COM port. The chip will return messages to PC for the current > status and I want to get the message from LabVIEW. How to do that? > > Bill.