LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to use visa serious terminal char port

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 

0 Kudos
Message 1 of 5
(2,826 Views)

First, it is a 'serial' port, not a 'serious' port. Smiley Wink

 

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.

Cory K
0 Kudos
Message 2 of 5
(2,805 Views)
that port has no sense of humor... 😮
0 Kudos
Message 3 of 5
(2,800 Views)
Thank you for your kindly help Cory, however currently I need divide a long string number like:"12345678" into two "1234" &"5678" ,which can be disply in the two different waveform and write them into the same two different column at same time ,may I knidly know how should I do it?Thanks.The attached example is below
0 Kudos
Message 4 of 5
(2,776 Views)
A new thread was created here.
0 Kudos
Message 5 of 5
(2,771 Views)