Serial Interface with Matlab on Lakeshore Gaussmeter 450 May 29, 2019 4:12:34 GMT -5 Quote Select PostDeselect PostLink to PostBack to Top Post by chris03 on May 29, 2019 4:12:34 GMT -5 Hi All,I am currently trying to interface the Lakeshore Gaussmeter 450 with Matlab but it does not work.I use the Serial I/O connector, connected to "LSCI Model4003 RJ-11 to DE-9 Adapter" as shown in the User Manual (4.2.1).The Adapter is then connected to a DE-9 to USB adapter before reaching my PC.I have derived the characteristic of the serial port from the User Manual (4.2.3)Port definitionGAUSS_PROBE=serial(GAUSS_PROBE_COM,'BaudRate',300,'DataBits',7,'Parity','odd','StopBits',1,'Terminator','CR/LF')The port opens. Then, I gave a read/write trial (without success)Write (the remote mode being set, this command should disable it)fprintf(GAUSS_PROBE,'MODE 0'); Read (this command should read the field value)fprintf(GAUSS_PROBE,'FIELD?');pause(wait);disp(GAUSS_PROBE.BytesAvailable);The Gaussmeter does not reply (BytesAvailable=0).Using a null modem as advided in User Manual (4.2.1) does not help. Moreover, BaudRate and Terminator (CR+LF) are correctly set. Finally, I played also with the Endianess (MSB or LSB first), but it did not help neither.Any advice? Thanks in advanced for your help.