08-01-2019 10:51 AM
Hopefully you added the COM PORT input that I forgot to include!
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?
08-01-2019 11:11 AM
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.
08-01-2019 11:52 AM
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.