The baud rate specified in this code and in the Jrk’s settings do not have to match because the serial bytes are transferred via USB. If the Jrk is connected to your PC via USB, you will need to set the Jrk’s serial mode to “USB dual port” in the “Input” tab of the Jrk G2 Configuration Utility. Also, you might need to change the line that sets port_name in order to specify the correct serial port. The Jrk’s input mode should be set to “Serial / I2C / USB”, or else the “Set target” command will not work. It demonstrates how to set the target of the Jrk by sending a “Set target” command and how to read variables using a “Get variables” command. The example Python code below uses the pySerial library to communicate with the Jrk G2 via serial.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |