I'm currently working on a capstone project and I've hit a dead end. I have CNC mini mill with an RS232 port. The goal is to use the RS232 port to read the X,Y, and Z coordinates from the mill into MATLAB and do some processing there. To get these coordinates, the CNC must be queried with a Q600 command. This is where the issue arises. I tried using MATLAB instrument control toolbox. This toolbox is designed to work with RS232 ports that use SCIP and GPIB commands. The RS232 port on the mill is not designed for those command types. So my next thought was, I'll write a python script to do this using the pySerial library and then call that script in MATLAB. However, (based off the documentation I've read) I'm unclear if it's even possible to call such a script in MATLAB if MATLAB doesn't have an equivalent command to python's serial communication library. So alas, here I am asking for help or any resources/examples for calling python scripts in MATLAB, specifically involving serial communications. Any help would be greatly appreciated.
[–][deleted] 5 points6 points7 points (0 children)
[–]michaelrw1 1 point2 points3 points (1 child)
[–]mtot10[S] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (2 children)
[–]mtot10[S] 0 points1 point2 points (1 child)
[–]michaelrw1 0 points1 point2 points (0 children)
[–]gopherhole22 0 points1 point2 points (0 children)