Arduino measure signal ploting problem

Nico_21802
Nico_21802 Altair Community Member
edited June 2023 in Community Q&A

Hey guys.

I use Arduino Analog Input to measure some sinus with Offset. I use Target Interface block to plot the signal. 

Time Step is 0.001s.  On the left picture is the 100Hz signal. On the right ist the 10Hz signal. You can see on the left there are some values lost?

i need a high sample rate but the programm don't plot it right.

Thanks and greets from germany.

imageimage

Tagged:

Best Answer

  • Sreeram Mohan_20368
    Sreeram Mohan_20368
    Altair Employee
    edited June 2023 Answer ✓

    The arduino HIL based on Serial works well for data exchange up to 100Hz. 

    For now the only choice is to use targets for instance the TI and STM32 supported by Altair Embed with the Monitor Buffer blocks. The monitor buffer blocks allows a user specified trigger as well as the number of words of data that one can store and retrieve from the target and for such high speed data you could leverage the same. 

    --sreeram 

Answers

  • Sreeram Mohan_20368
    Sreeram Mohan_20368
    Altair Employee
    edited June 2023 Answer ✓

    The arduino HIL based on Serial works well for data exchange up to 100Hz. 

    For now the only choice is to use targets for instance the TI and STM32 supported by Altair Embed with the Monitor Buffer blocks. The monitor buffer blocks allows a user specified trigger as well as the number of words of data that one can store and retrieve from the target and for such high speed data you could leverage the same. 

    --sreeram