Hello, I want to ask how to determine the scaling and offset value for ADC (STM32) and Analog out (RT box).
First, what is the consideration to determine the scaling and offset value for both block ADC and Analog out?
Second, If I have a grid forming converter circuit divided in two parts of plant and controller, How is the scaling and offset value for every I/O blocks that needs to configure?
Hello Lukman!
The Analog Out scaling and offset values need to be set in such a way that your electrical signal does not exceed the limits of your RT Box DACs or your STM32 ADCs. In this case, that means that the signals are constrained to the interval [0, 3.3] V. What scaling and offset values are required to remain in this interval depends on your application.
The Analog In scaling and offset values can be chosen to invert the scaling and offset applied by the Analog Out block. In this way, your Analog In output will correspond to your Analog Out input.
Final note: In notice that you are still working with an old version of the STM32 TSP. I would recommend upgrading to the latest version (1.5.6)!
Ok thank you for your response, I already configure the scaling and offset value for my I/O configuration. For the next question, I meet the error message when uploading the models into RT box. This issue is related with unmatched 3 signal from U_ref and DAC block that only can read 1 signal. My question is How can I received the U_ref 3 signal from 3 DAC block with different pin that can read in Analog in block that connected to Inverter?
The DAC block in the STM32 TSP does not allow for vectorization. To output three signals on three different pins, you will need to use three different DAC blocks and a signal demultiplexer to split the vectorized signal into three non-vectorized signals.


