Menu

Plotting byte-swapped data

Logging
Anonymous
2023-08-18
2023-08-22
  • Anonymous

    Anonymous - 2023-08-18

    Hello,
    I'd like to be able to plot out hexadecimal data that is returned to YAT byte-swapped. For example, if I read out a voltage status, I may receive:
    5F06
    However, the actual hexadecimal value is 065F

    (Ultimately, this would also be divided by 4096 and multiplied by 2.5 to get a value of 0.995V)

    I couldn't seem to figure out a way to accomplish position-swapping with RegEx - is there a way to perform this task?

    Thanks!

     
    • Maettu

      Maettu - 2023-08-22

      Hi,

      As far I know this indeed is not possible with Regex. And YAT doesn't provide any means to inject such logic yet. But with scripting this could become available as post-processing scriptlet.

      Best regards,
      Matthias

       

      Last edit: Maettu 2023-08-22

Anonymous
Anonymous

Add attachments
Cancel