2024-11-18 05:23 AM
Hi everyone
I need to capture the step response from a temperature regulator circuit (for estimating regulator parameters) and I want to use Cube Monitor for that.
No I get the example successfully running with a simple acquisition, but I stuck with further adjustions.
As far I see, Cube Monitor can't handle booleans, so I simply switch to integer variables and just compare them with 0, it looks like this here in my main code:
#ifdef ACQUIRE_STEP_RESPONSE
while(waitForStartingStepRespone == 0){
}
setHrtimPwmToAll(stepresponseStepSetting);
while(waitForEndingStepRespone == 0){
}
setHrtimPwmToAll(0.0);
#endif
So I just set the variable waitForStartingStepResponse to 0 by hitting a button. I read this article here ( https://wiki.st.com/stm32mcu/wiki/STM32CubeMonitor:How_to_write_a_variable_from_flow ) which seems to adress my case, but I do not get the "understanding what happens behind", so I still have no idea what to do. How do I get the adress of my variable, is there no similar simple way as to read a variable, where all variables are already listed in the variables node?
Would ne nice if somebody can tell me what I have to do.