I have a problem reading data from serial port. In my program, first I try to write commands to the serial using VISA write function, then I read the data that come from serial port using VISA read function but I cant get all the information I need. I set the maximum byte count in VISA read but still give me the same results. If I set 300 they give me the same result. And again if I set 500 they give me the same results. And what happen is that if I run another VI like error query or other query VI, then this instrument give the rest information I need (For example: The data I must get is �This is SawNaingAye, I am from Singapore� but the data I got from serial port is when I run the [*IDN? VI] it sends me �This is SawNaingAye� and w
hen I run the: [SYST:ERR? VI], then I get �I am from Singapore� instead of giving me �0,No error�. I do not know how to solve. I just simply write my VI, like first I run VISA write then I run VISA read. The instrument I am using is Schaffner NSG438 ESD generator. The driver is not available from NI.com and Schaffner.com. Any suggestion how can I read the whole string from serial port.
And the same thing
Another problem is when I read my file that transfer from the scope, I only get the header of the file and the rest are missing. This is the same problem I think; I cannot read the entire data that send from the instrument. I may need to do something with this. I try to use while loop, but give me error. Thanks for any help.
SawNaingAye