Skip to content
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

ASI parameter parsing. #298

Open
iandobbie opened this issue Nov 8, 2023 · 2 comments
Open

ASI parameter parsing. #298

iandobbie opened this issue Nov 8, 2023 · 2 comments

Comments

@iandobbie
Copy link
Collaborator

Another slight issue with the parameter parsing which I cant quite work out.

The first line from "INFO X" on my controller is:
b'Axis Name : X Limits Status: f\r'

This produces a parse error....
Error parsing info. No item name found on: Limits Status:

The regexp is
pattern = r"(?P.):\s((?P\S+)(\s+)?(?P[[].[]])?(\s+)?(?P.)?)$"

It sees to me that the item should really be "Limits Status: f" so I have no idea what exactly is swallowing the " f" which I think might make the regexp work.

@iandobbie
Copy link
Collaborator Author

I think I need to go and see if any of the axes are returning different text as this text works fine. I hand ran though the output I had saved and it worked fine. Maybe the Piezo Z axis is different or something. Needs more debugging!

@iandobbie
Copy link
Collaborator Author

Ok, did some testing the Z axis on my system returns

b'Axis Name : Z Limits Status: '

I think the lack of any response after the Limits Status causes the parse error. The axis is actually an output siungal which leads to a madcity labs piezo controller, presumably an analog voltage but I have not investigated and I dont have an oscilloscope here. Happy to just ignore it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant