2021-12-22 07:20 AM
Hi everyone,
I need to monitor the amount of 2 variables in the 2 STm32 Nucleo board.
I could do that but I have 2 problems.
2.The sampling times of prob1 and probe2 are not same. Hier for Example it has done it for blue one in 3.689s and for other one in 3.691s.
Could you please help ?
Solved! Go to Solution.
2021-12-22 10:29 AM
Hello Nmo.1
The sampling of data is triggered by the computer OS, so the timing depends of what the computer is doing. In order to have more regular acquisition, try to close all the other apps, but it may not improve a lot for ms scale.
If you want very accurate sampling, you can use the "snapshot mode". The STM32 code must be instrumented, but it will allow to take a "snapshot" of the data at an accurate timing defined by the microcontroller.
STM32CubeMonitor:How to perform an acquisition in snapshot mode - stm32mcu
For the acquisition with 2 probes, the value is read on one probe first, and then on the second one. So it is nearly impossible to have the same time for the point.
Best regards
Stephane
2021-12-22 10:29 AM
Hello Nmo.1
The sampling of data is triggered by the computer OS, so the timing depends of what the computer is doing. In order to have more regular acquisition, try to close all the other apps, but it may not improve a lot for ms scale.
If you want very accurate sampling, you can use the "snapshot mode". The STM32 code must be instrumented, but it will allow to take a "snapshot" of the data at an accurate timing defined by the microcontroller.
STM32CubeMonitor:How to perform an acquisition in snapshot mode - stm32mcu
For the acquisition with 2 probes, the value is read on one probe first, and then on the second one. So it is nearly impossible to have the same time for the point.
Best regards
Stephane
2021-12-22 11:19 AM
Thank you so much.
2021-12-24 02:25 PM
Hi again,
When I start the acquisition it is waiting for the value and nothing happens.
How can I solve this?