This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

GUI update time

Hi,

If I am using widejet  "scalar line graph" is it possible for me buffer the data at the rate of 8KHz?.

My aim is: I am doing motor control at the switching frequency of 8 KHz.  I need the current, speed, position, etc of motor for every sample?

( I know the best way is to buffer inside the microcontroller and read it in GUI. but i dont have sufficient memory inside microcontroller to buffer so many samples)

When I am configuring the variable in "scalar line graph", its just buffer the random sample, instead of buffering the continuous sample. Could any one help me?

Thanks & Regards,

Rathinavel

  • Hi Rathinavel,

    rathinavel j said:
    When I am configuring the variable in "scalar line graph", its just buffer the random sample, instead of buffering the continuous sample. Could any one help me?

    I don't think it buffers random sample, instead it buffers data in order but the data fetching happens instantaneously. This happens due to MCU being very fast at processing data but the graph update rate is very slow.

    Regards,

    Gautam

  • It is not a buffer issue, more of a sampling frequency issue. By default GUI Composer samples the data once per second. Thus all variables bound to widgets are refreshed approximately every second. There is a a way of overriding this refresh cycle, but it will not be able to achieve 8KHz. The most we have seen is 10 samples (i.e. refresh every 100ms) with one or two variables using JTAG with 28x device. 

    Martin

  • To clarify a bit more, if you stick to default refresh cycle then you will be able to get more data out of the device. However, there is a limit there as well as to how much can be transferred.

    Martin
  • Thanks Martin for the info.

    Regards,
    Gautam