LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial Read Error

Hopefully you added the COM PORT input that I forgot to include!

 

image.png

 

If you are still having problems, then it is a hardware problem.

1) Instrument is not configured correctly

2) Serial cable is not wired correctly

3) PC serial/USB port problem (which one you using? Real RS232 port, or USB to RS232 cable)

 

Did you mention what version of LabVIEW you are using? Also what OS are you using?

---------------------------------------------
Former Certified LabVIEW Developer (CLD)
0 Kudos
Message 31 of 33
(679 Views)

Hi Frozen,

 

I am using USB to RS232, with LABVIEW 2019 on Windows 10 and tried different adaptors.

 

After running your VI I modified it slightly and got an entry in the Receive data (attached), I not sure if that's a step in the right direction. Just to flag the same observation again I get a chirp from the instrument every 3 runs which might be significant?

 

Thanks for help Frozen.

0 Kudos
Message 32 of 33
(672 Views)

A chirp from the instrument usually means an error has occurred. Have you checked the instrument's menus for an error msg?

By *not* including the "/n" in the command, you have sent an un-terminated string to the instrument and it is waiting for more input. 

Also, if you are not configuring the port, at least put a VISA Open before the first write command.

You really need to verify that hardware connection is correct.

image.png

 

 

 

 

---------------------------------------------
Former Certified LabVIEW Developer (CLD)
0 Kudos
Message 33 of 33
(662 Views)