Hello everyone. I'm using a temperature controller from Ascon Tecnologic to set and read the temperature of a batch. This controller allows Modbus RTU serial communication RS485 to monitor the temperature via PC and I'm using an RS485 to USB converter from Microflex to convert the signal. My purpose is to write a Matlab program that reads the temperature and gives me a plot T versus time but, although the device is connected, I'm not able to read anything from it so I'd like to know if anyone as any hint on what I should do/verify in order to communicate with the controller. Thanks!
Your question description is not enough to reproduce the error or to exactly pinpoint the problem, therefore here are some suggestion:
1) Make sure you are specifying the correct port. You can also use a software such as RealTerm to see if any data is coming over the serial port.
2) Make sure you have specified the appropriate properties to serial() object e.g. Baud rate, Data bits etc.
3) Make sure that you have opened the serial port using fopen().