Gwyscope documentation

open hardware SPM controller with advanced sampling support

User Tools

Site Tools


hwperifpico

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
hwperifpico [2025/02/26 12:01] adminhwperifpico [2025/02/27 08:58] (current) admin
Line 1: Line 1:
 ====== Newport Picomotor ====== ====== Newport Picomotor ======
  
-We have implemented control of Newport Picomotor [[https://www.newport.com/f/picomotor-piezo-linear-actuators|actuator]]. The implementation is similar to the main hwserver, we wrote another server - [[https://sourceforge.net/p/gwyscope/code/HEAD/tree/peripherals/pmserver/|pmserver]] - the connects to the [[https://www.newport.com/p/8742|Newport 8742 controller]] via Ethernet and allows for getting controller's ID, setting actuator velocity and acceleration and moving the actuator. Open the ''test_client.c'' example to see how to communicate with the pmserver.+We have implemented control of Newport Picomotor [[https://www.newport.com/f/picomotor-piezo-linear-actuators|actuator]]. The implementation is similar to the main hwserver, we wrote another server - [[https://sourceforge.net/p/gwyscope/code/HEAD/tree/peripherals/pmserver/|pmserver]] - that connects to the [[https://www.newport.com/p/8742|Newport 8742 controller]] via Ethernet and allows for getting controller's ID, setting actuator velocity and acceleration and moving the actuator. Open the ''test_client.c'' example to see how to communicate with the pmserver.
  
 The implementation was done using [[https://pylablib.readthedocs.io/en/latest/devices/Newport_picomotor.html|Picomotor device class]] provided by the PyLabLib Python package for device control and experiment automation and Python to C interface. Several packages had to be installed onto the Red Pitaya. First of all it is necessary to upgrade pip: The implementation was done using [[https://pylablib.readthedocs.io/en/latest/devices/Newport_picomotor.html|Picomotor device class]] provided by the PyLabLib Python package for device control and experiment automation and Python to C interface. Several packages had to be installed onto the Red Pitaya. First of all it is necessary to upgrade pip:
Line 27: Line 27:
 </code> </code>
  
-In the directory, there is a simple Python script ''pico.py'' that tests if all the packages are installed correctly and tries to connect to the Picomotor controller and to write it's ID. Note that the IP address of the controller has to be known. It can viewed or set using [[https://www.newport.com/medias/sys_master/software/software/h4b/he7/9139939803166/PicomotorApp-2.1.5.zip|PicomotorApp]]. Note however that the software is available for Windows OS only. If testing with the pico.py utility was successful, the pmserver  can be started providing port number (50101) and .ini file (hwserver_sample.ini):+In the directory, there is a simple Python script ''pico.py'' that tests if all the packages are installed correctly and tries to connect to the Picomotor controller and to print out it's ID. Note that the IP address of the controller has to be known. It can be viewed or set using [[https://www.newport.com/medias/sys_master/software/software/h4b/he7/9139939803166/PicomotorApp-2.1.5.zip|PicomotorApp]]. Note however that the software is available for Windows OS only. If testing with the pico.py utility was successful, the pmserver  can be started providing port number (50101) and .ini file (hwserver_sample.ini):
  
 <code> <code>
hwperifpico.1740567716.txt.gz · Last modified: 2025/02/26 12:01 by admin