06-09-2009 07:04 AM
I wanna get a group of different data from the serious port,which includes differet byes of decimal num.so how to do this which can make it get and show only one decimal num each time.
another quertion is how to Put the different nums which read from visa serious port at same time into different column of the excel file
Thanks
06-09-2009 10:11 AM
First, it is a 'serial' port, not a 'serious' port.
Now, onto your question....
Using the VISA "configure port" function, there is an option to 'enable termination character'.
Wire a 'True' to this. Then, whenever you encounter a termination character, it will end the read.
This way, you can use a 'visa read' in a For loop. It will read each line, then stop at each termination character.
Since it is in a For loop, it will then build an array of the data.
This data can be sent to 'write to spreadsheet file', so you can use the data in Excel if you want.
06-09-2009 10:28 AM
06-10-2009 03:46 PM
06-10-2009 04:19 PM