• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
        • Vwsim-users-guide
          • Vwsim-tutorial
          • Vwsim-output
          • Vwsim-input
          • Vwsim-build-and-setup
          • Vwsim-commands
            • Vwsim-command
            • Vw-output-command
              • Vw-plot-command
              • Vw-output-all-command
              • Vw-assoc-command
        • Isar
        • Wp-gen
        • Dimacs-reader
        • Pfcs
        • Legacy-defrstobj
        • Proof-checker-array
        • Soft
        • C
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Leftist-trees
        • Java
        • Taspi
        • Bitcoin
        • Riscv
        • Des
        • Ethereum
        • X86isa
        • Sha-2
        • Yul
        • Zcash
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Bigmems
        • Builtins
        • Execloader
        • Aleo
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Vwsim-commands

    Vw-output-command

    Access and save simulation results.

    The VW-OUTPUT command

    General Form:
     (vw-output requests [keyword options])

    Description

    After performing a simulation using vwsim, vw-output provides the means to access simulation results. The results can be saved to an assocation-list in the interactive session or written to a CSV file. For more information on the output format, see the 'Output Format' section below.

    Usage and Arguments

    Options                Defaults
     :output-file             nil
     :save-var                nil

    where all arguments, which are described below, are evaluated.

    Required arguments

    requests - an association-list of request types and node/device names. See vwsim-output-request-format for the format of this alist.

    Optional arguments

    :output-file - when non-NIL, the csv file to write the requested simulation values.

    :save-var - when non-NIL, the requested simulation values are saved as an alist in the global variable specified by save-var.

    Output format

    When :output-file is NIL, vw-output produces an alistp. The keys in this association-list (alist) are the requested variables in the input argument requests, converted into strings. See vwsim-output-request-format for the syntax of the requests input argument.

    The translation of each request, which is of the form (type . name), into a string is as follows:

    (NODEV . name) => "V(name)"

    (NODEP . name) => "P(name)"

    (DEVV . name) => "V(name)"

    (DEVI . name) => "I(name)"

    (DEVP . name) => "P(name)"

    In the output alist, each request will have a corresponding list containing the request's values for each simulation time step.

    When :output-file is non-NIL, the alist described above is written to a file in the comma-separated-values (CSV) format.