Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

RS232 communication different format

Hi, there.  I try to communicate to a device through serial communication (through R232 to RS485 converter).  The device communicates well when I using Docklight.exe; however, it does not communicate in LabVIEW.  By looking at the data from portmon, Docklight.exe and LabVIEW does not use the same data format.  I have attach output files.  How do I change the data format in LabVIEW match with data format in Docklight.exe.  Thanks for your help

 

BC

Download All
0 Kudos
Message 1 of 2
(3,371 Views)
It would have been better to post some specs on the instrument itself instead so I can only guess that you have not written your program to send data in the correct format. You might have to use Byte Array to String to send hex commands. You could also use the typecast or right click on the string control/constant and select 'Hex Display'. You can do the same thing with your string indicator to show hex. There have been hundreds of posts on the subject of sending/receiving hex. Do a search.
0 Kudos
Message 2 of 2
(3,365 Views)