D
My first post! Here's the task: I want to communicate with a WAGO Fieldbus Controller from Matlab. I want to be using Matlab for data acquistion during some laboratory experiments.
I see two options:
1) Use the OPC toolbox. Setup a WAGO OPC server, then talk to the server from Matlab
2) Compile a dll from a free implementation of Modbus/TCP. Open a TCP connection in Matlab (using the Instrument Control toolbox), then load up the dll, and call its functions to communicate directly with the device.
The first seems easier, but pretty clunky. The second is more direct, but I'm not sure if it is possible, or wise. I'm very familiar with Matlab, but I have never used modbus for anything before. Your advice is appreciated!
I see two options:
1) Use the OPC toolbox. Setup a WAGO OPC server, then talk to the server from Matlab
2) Compile a dll from a free implementation of Modbus/TCP. Open a TCP connection in Matlab (using the Instrument Control toolbox), then load up the dll, and call its functions to communicate directly with the device.
The first seems easier, but pretty clunky. The second is more direct, but I'm not sure if it is possible, or wise. I'm very familiar with Matlab, but I have never used modbus for anything before. Your advice is appreciated!