Uploaded image for project: 'Instrument control development'
  1. Instrument control development
  2. INSTRM-478

Write msim FPGA log decoder

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open (View Workflow)
    • Priority: Normal
    • Resolution: Unresolved
    • Component/s: None
    • Labels:
      None

      Description

      It would be useful to compare the traffic sent to the FPGA from msim and from cobraCharmer. Notably, each msim test run generates an fpga_log.txt showing all the traffic.

      Unfortunately this is the raw hex stream, and not something parseable. Given the pieces of code that we already have, I don't think it would be horribly difficult to write a decoder. One may already exist.

      As an example, the SETFREQ logs for msim and cobraCharmer are:

      3,3864153819.000000,030100384e208ae2082300fd0099101300fb009a102300fc0099181300fd0098182300fc0097201301000097202300fc0098281300fa0099282300fc0097301300fe0095302300fd0098381300fe0097382300fc0098401300fa0097402300fc009a481300fc0098482300fe0096501300fd0098502300fa0097581300fb0097582300fe0099601300fc0099602300fa0098681300fd0097682301000096701300fd0099702300fd0094781300fc0097782300fc0098801300fb0093802300fb0096881300fb0098882300fd0098901300fd0096902300fa0098981300ff0097982300fa0098a01300ff0099a02300fe0096a81300fc0097a82301000098b01300fd0097b02301010099b81300fa0097b82300fc0098c01300fa0097c02300fe0098c81300fc0096c82300f80096d01300fa0097d02300f90097d81300f80099d82300fb0099e01300fa009ae02300f70095e81300fc009a
      

      and

      2018-09-04T14:29:06.0759 20 fpga       CMD: setFreq (57 cobras)
      2018-09-04T14:29:06.0759 20 fpga           cobra:  1  1 Theta: 1 63.24 Phi: 1 108.11
      2018-09-04T14:29:06.0760 20 fpga           cobra:  2  1 Theta: 1 63.24 Phi: 1 104.58
      2018-09-04T14:29:06.0760 20 fpga           cobra:  1  2 Theta: 1 63.75 Phi: 1 103.90
      2018-09-04T14:29:06.0760 20 fpga           cobra:  2  2 Theta: 1 63.49 Phi: 1 104.58
      2018-09-04T14:29:06.0760 20 fpga           cobra:  1  3 Theta: 1 63.24 Phi: 1 105.26
      2018-09-04T14:29:06.0760 20 fpga           cobra:  2  3 Theta: 1 63.49 Phi: 1 105.96
      2018-09-04T14:29:06.0760 20 fpga           cobra:  1  4 Theta: 1 62.50 Phi: 1 105.96
      2018-09-04T14:29:06.0760 20 fpga           cobra:  2  4 Theta: 1 63.49 Phi: 1 105.26
      2018-09-04T14:29:06.0760 20 fpga           cobra:  1  5 Theta: 1 64.00 Phi: 1 104.58
      2018-09-04T14:29:06.0760 20 fpga           cobra:  2  5 Theta: 1 63.49 Phi: 1 105.96
      2018-09-04T14:29:06.0760 20 fpga           cobra:  1  6 Theta: 1 62.99 Phi: 1 107.38
      2018-09-04T14:29:06.0760 20 fpga           cobra:  2  6 Theta: 1 63.24 Phi: 1 105.26
      2018-09-04T14:29:06.0760 20 fpga           cobra:  1  7 Theta: 1 62.99 Phi: 1 105.96
      2018-09-04T14:29:06.0760 20 fpga           cobra:  2  7 Theta: 1 63.49 Phi: 1 105.26
      2018-09-04T14:29:06.0760 20 fpga           cobra:  1  8 Theta: 1 64.00 Phi: 1 105.96
        [ etc ]
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              cloomis cloomis
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: