-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
E-727 and Closed Loop Control commands #10
Conversation
@JensKappPI and @PI-SRau, should Augusto's changes be E-727-specific or would they also apply to the other piezo controllers support by motorPIGCS2?: motorPIGCS2/pigcs2App/src/PIGCSController.cpp Lines 68 to 76 in 9c85d0b
|
This problem is due to design decisions for handling both single-character commands that don't have a terminator and multi-character commands that require a terminator. The driver sets the asyn records output end-of-string to an empty string in motorPIGCS2/pigcs2App/src/PIasynController.cpp Lines 109 to 115 in 9c85d0b
The
Then the motorPIGCS2/pigcs2App/src/PIInterface.cpp Lines 115 to 118 in 9c85d0b
If motorPIGCS2/pigcs2App/src/PIGCSController.cpp Line 565 in 9c85d0b
Then the motorPIGCS2/pigcs2App/src/PIInterface.cpp Lines 194 to 233 in 9c85d0b
|
@AugustoHorita, are you able to send commands like |
First of all, @kmpeters: thanks for your feedback and detailed explanation. |
@kmpeters...Sending the commands like you suggested worked fine! Thanks one more time for your help. |
Jens responded by email with info about the other piezo controllers: "In general these change are valid for all piezo controllers, but there is one exception. The E-709 controller does not support the parameter 0x07030600." Applying these features to most of the piezo controllers is outside the scope of this pull request. I'll create an issue for that. |
The issue has been created: #11 |
I am working with the PIE727 module and couldn't find support for gains and notch configuration.
I implemented this code which works for us. I created a new class for PIE727 and also a header file with Closed Loop parameters and necessary structures. Included functions to set the CL parameters, and put the read function for these parameters in the poll thread.
There is a bug though, which I noticed also previously (also without this modification). If I use the asynRecord communication with the PI module, the poll thread starts to get timeouts for getting RAM parameters ("SPA?" commands) and position ("POS" commands) as soon as I set the ".OEOS" field in the asynRecord. I was thinking of maybe implementing a semaphore for this communication. (not yet done)