08-16-2006 01:45 AM
08-17-2006 04:48 PM
King--
So when you send your instrument the command to start generating data, you will then tell the VISA read vi how many bytes of data to acquire and this will be how you will get the information that you need. It will all come in as one text array and then you will have to parse through it and separate it yourself. Often it will be separated by commas or some other delimeter. After that if the instrument is still sending data you could get a hardware buffer overflow. The easiest way to fix this is to simply send the instrument the command to stop. However, in your post you said that you are using handshaking (Xon/Xoff) this should automatically tell the instrument to stop when the buffer limit has been reached. If not then you could periodically send a command to flush the buffer using VISA flush I/O buffer vi.
Most of your questions could be anwered by going to the serial support page at http://www.ni.com/support/serlsupp.htm and if you can't find enough information there then you can simply search our site with what you want to know. There is a ton of infomation on our site. I would suggest that you actually try it out. That is the best way to know what kind of problem that you will run into. Furthermore, when you do that if something does happen to go wrong then you will have an error message to go by and you can look that up at our site and find specific information regarding how to fix the issue. If you still have a problem after you have searched or can't figure something out then let us know and we'd be happy to help.
Regards,
John H
Applications Engineer
National Instruments