2020-12-09 10:19 AM
How should I configure STM32CubeMonitor to watch the flow of an array? I can either select the first position or expand the array but then the graph will be a mess. See below.
Solved! Go to Solution.
2021-09-20 12:43 AM - edited 2024-03-05 05:37 PM
Update 2024 If download links are broken, check attachments below this message (*.7z archive).
Update 2023 (STM32CubeMonitor 1.6.0) Watching multiple 1D arrays + better code:
New version available (cubearrays v1.0)! Now all arrays are automatically parsed and stored in global variables. Step-by-step instructions:
Example using cubearray10.json in STM32CubeMonitor v1.6.0:
Three arrays - https://youtu.be/_tnx1ZxkiY8
Old version:
Just tried in latest version (1.2.0), please check this short explanatory video https://youtu.be/VAxnharGr_M
Note that script is written in previous version, probably 1.1.0 and worked without a problem too. It turns out I wrote it in 1.2.0. Some steps of explanatory video:
Most important steps: select ST_Link, import Stm32CubeMonitor_BasicFlow.json example and combine it with sigview2.json. Add all array elements as separate variables to the list. If array name and size in your code matches testBuffer in Node-RED script, then everything must work after pressing deploy→dashboard→start.
Update 2021: watching array with different name/size
Assume we have an array ADC_BUFF1 with values ranging from -1 to +1
float32_t ADC_BUFF1[256]; //... for (int i=0; i<256; i++) { ADC_BUFF1[i]=sin(2.0*M_PI/256*i); }
To make it work
I see that Setup and Close tabs are missing on your screenshot, I do not know why. Those tabs are common for function nodes in Node-RED, for example:
https://discourse.nodered.org/t/setup-in-a-function-node/39445
What happens if you put empty function node and double-click on it? Still no Setup/Close tabs?
2021-09-20 12:53 AM
Hello
The setup tab has been added in Node-RED after the release of STM32CubeMonitor 1.1.0. The feature is included in V1.2.0, you need to upgrade to have it.
It allows to have code execute at init and end of flows execution in the function nodes.
2021-09-20 01:12 AM
you are right, I thought 1.2.0 is released recently, but it was already available around April 2021. Probably @Community member downloaded older version because of interface
As seen on this image, select version does not include latest version download link.
2021-09-20 02:08 PM
Thanks. I had fallen into the trap of selecting V1.1.0 from the drop down. I had wondered where you got V1.2.0 from! I should have opened my eyes...
After updating the setup tab is visible and the warning message is gone. Note that even though there was a warning message it was still working correctly and was super helpful in debugging.
Thanks for taking the time to share your idea and help me.
2021-10-11 02:13 AM
@Community member and @Georgy Moshkin , interface have been updated and now shows the latest version in the Select version list.
Thanks' for your feedback.