Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Improving VISA serial port functional execution speed

You are currently using the termination character but it's not set to the one you say the instrument is sending. I would first correct the VISA Configure Serial Port to that. Then, I would recomend you get rid of all local variables and sequence structures. I would also recomend that you use correct data flow programming techniques and that requires you wire up the error in/error out clusters.

How is the instrument sending the data? Is it one line at a time or multiple lines? You really don't need all of the parsing to check for the \n when you use the correct termination character. If it's multiple lines, you can put a VISA Read in a while loop with the VISA Bytes at Serial Port. Keep reading until the number of bytes is 0. You would build up your array of commands with a shift register and a build array function.

0 Kudos
Message 11 of 11
(898 Views)