microscope icon indicating copy to clipboard operation
microscope copied to clipboard

ASI parameter parsing.

Open iandobbie opened this issue 2 years ago • 2 comments

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 avatar Nov 08 '23 22:11 iandobbie

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 avatar Nov 09 '23 02:11 iandobbie

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.

iandobbie avatar Nov 09 '23 22:11 iandobbie