PythonCanalyzer icon indicating copy to clipboard operation
PythonCanalyzer copied to clipboard

Question about Start/Stop Measurement

Open PyCoder9595 opened this issue 2 years ago • 5 comments

Does the project support start and stop measurement without closing CANalyzer? "Server Busy" dialogue with "This action cannot be completed because the other program is busy" message is displayed in CANalyzer v17 when attempting to stop measurement.

PyCoder9595 avatar Nov 21 '23 16:11 PyCoder9595

You don't have to do anything in Canalyzer manually once rhe capl script development is done, the tool will open Canalyzer and start measurement and close Canalyzer once testing is done, hope this answers your question, thanks!

sgnes avatar Jan 11 '24 14:01 sgnes

I am interested in opening Canalyzer, then starting and stopping measurements several times before closing Canalyzer. Is there a way to control the start and stop of measurement independently from opening and closing Canalyzer?

PyCoder9595 avatar Jan 11 '24 14:01 PyCoder9595

It's possible, but this library was intended to be used for test automation, so there is no manually start stop measurement api, but first you can try canalyzerobject._CANalyzer.Measurement.Stop(),Start to start and stop the measurements, this should work, I don't have a usable setup, so I can't test it myself, thanks.

sgnes avatar Jan 16 '24 04:01 sgnes

I gave it a try. I get the attached com error. CANalyzer action cannot be completed

Measurement Stop Operation Refused

PyCoder9595 avatar Jan 24 '24 22:01 PyCoder9595

I tried and face the same issue you mentioned, I searched and tried but could not solve this issue, sorry can't help. Just want to better understand, what is the use case "starting and stopping measurements several times before closing Canalyzer"?

sgnes avatar Feb 18 '24 22:02 sgnes