LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem interfacing serial COM with LabVIEW

I am trying to communicate to the HC11 through the COM port using the serial VI's in LabVIEW 6.1. But everytime I specify the COM port, the program freezes with the (Not responding) message. Thanks in advance
0 Kudos
Message 1 of 3
(2,719 Views)
Some ideas to consider:

Can you communicate to the HC11 using HyperTerminal? If yes, then make sure you have the same setting to configure the COM port.
Make sure you are using the correct COM port (0 is for COM1). If you use VISA resources, it is selected using the "VISA Resource Name Constant" (ring selector).
Actually, this is probably the better way to use the COMM port.

Make sure you can communicate with the instrument using some sort of sw, such as HyperTerminal. Otherwise, it will be difficult to establish if the problem is within your vi.

Do you just send stuff to the HC11? or do you want to read back values? If so, then you need to use the "Bytes at Serial Port" sub-vi and feed the number of bytes into either VISA-READ or your serial p
ort read vi.

If this is not helpful, please provide some more info. I'm sure you'll have your vi running in no time.

-enjoy-

JLV
Message 2 of 3
(2,719 Views)
Also check out this thread:

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=50650000000800000092AB0000&USEARCHCONTEXT_CATEGORY_0=_49_%24_6_&USEARCHCONTEXT_CATEGORY_S=0&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
Message 3 of 3
(2,719 Views)