Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i make COM port selection in LabView

Hello Mansi here.

 

I am working on "warehouse monitoring system using wireless loadcell" project.For that i am using zigbee technology. I have the ETRX357-LRS USB stick made by TELEGESIS company. This zigbee device is work as receiver and connected to the PC. Tlegesis terminal software will display the data comming from the transmitter side.

 

 

1.Now i want to display that data directly in to Excel sheet.For that i have choose the LabView. The ETRX357-LRS USB stick having COM17 id shown in device manager. I want to select this com port device in labview and that display data into the excel sheet.

 

Is that possible? 

 

2. Can anyone help in interfacing of  ETRX357-LRS USB stick with labview?. 

 

I m new in this field. tell me the steps so that i can rich to the my goal.Smiley Indifferent

 

0 Kudos
Message 1 of 7
(5,704 Views)

use a VISA control to select the com port.

All ports should be displayed.

 

Which operating system and LabVIEW version do you have?

greetings from the Netherlands
0 Kudos
Message 2 of 7
(5,698 Views)

I m using window 7 os and LV 10 version.

 

How can i export the data from COM port device to excel sheet? Data from the COM port is digital numerical value.

 

 

 

0 Kudos
Message 3 of 7
(5,674 Views)

Convert the data into an array of the data and then use the Write To Spreadsheet File.vi to save the data in a tab delimited text file.  Excel can open those easily enough.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 7
(5,665 Views)

I have made 1 VI to transfer data from com port device to excel sheet. but out put is different. I want output 2.49, 2.49 continuously. But getting 2.49,0,2.49,0.

Dont want this extra 0. 

 

Attaching the vi and excel sheet have look at it.

Help me out.Smiley Sad

Download All
0 Kudos
Message 5 of 7
(5,641 Views)

sorry i have attached the incomplite vi. the complete one is here.

 

0 Kudos
Message 6 of 7
(5,638 Views)

Hi

two remarks

1) the clr and the close should not be connected in parallel. In fact you can omit the Clr, because you are closing anyhow.

2) why not use an endcharacter instead of reading the number of bytes.

 

And if that ,0 is sent you always can throw it away after reading

greetings from the Netherlands
0 Kudos
Message 7 of 7
(5,614 Views)