LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

USB or COM what can I do?

Hello every one

I have to send a text file by an optical transmitter device. This instrument connect to USB (but it has a driver soft ware that when I check my device manager it shows USB by COM) so what is this connection how can I send the data ?

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

farhadsph ha scritto:

Hello every one

I have to send a text file by an optical transmitter device. This instrument connect to USB (but it has a driver soft ware that when I check my device manager it shows USB by COM) so what is this connection how can I send the data ?



Your instrument may is recognized like COM if he has a serial CIP inside his hardware and the PC recognized that component. Such as the USB-RS232 converte, they have a usb connection but they are recognized like COM port. I think you have to use the COM as way to send messages and data to your instrument.

Ricky
Italian Developer engineer
www.www.selt-sistemi.com
0 Kudos
Message 2 of 5
(2,477 Views)

Dear Ricky

Thanks for the clarification

I have a serial terminal port monitoring software and when i  check COM port , I can open the port but after that , time out error will happend.Even i used Lab view samples to send data "basic serial write and read.vi"

0 Kudos
Message 3 of 5
(2,472 Views)

Typically the serial comunication have to follow rules wich are written from the instruments builder who has to give you (this rules is named protocols). The first thing you have to do is to check you port configuration (n of byte, bit of stop, parity and so on) which have to be the same configuration of the port as the instrument is using. After trying to send a protocl command to the instruments and wait an ammount of milliseconds (100, 200,...) before getting the answer from the instrument. You need to insert a wait time because, usually the instruments need time to receive the command ad to send the properly answer. Use the "byte at port" node to check when there are some bytes to read before reading.

 

I hope this is enough, if it isn't try to post your VI we'll check it!

Ricky
Italian Developer engineer
www.www.selt-sistemi.com
0 Kudos
Message 4 of 5
(2,453 Views)

I recommend sitting on MAX with the users guide and sending some basicc commands.  It will be much easier to test all the COM settings such as baud, etc...  and also to find the correct termination character if needed, etc.. and generally trouble shoot before running some VI's.

 

Does the vender have a good manual and possible some examples?  Even if the examples are in another language you can look at the strings being sent out.

 

Sometimes I get time outs if I am reading more bytes than are available at the port.

 

Hope these help out too.

-------
Mark Ramsdale
-------
0 Kudos
Message 5 of 5
(2,438 Views)