Syntax of new Batch Control commands in Patchmaster 2.30

Command

Syntax

Export "Export [overwrite|nooverwrite], [FileName]"
parameters
two strings:
  • the string defining the file overwrite mode
  • the string defining the file name. The default export file [data file] path is used, if it does not contains a path.

  • returns "Done" or error description
    OpenProtFile "OpenProtFile [FileName]"
    parameters
    one string:
  • the string defining the name of the protocol file. The default [protocol file] path is used, if it does not contains a path.

  • returns an error, if it fails.
    Query "Query"
    no parameters
    response:
  • "Query_Quitting" -> when the program is about to quity
  • "Query_Aq_WaitTrig" -> when waiting for trigger
  • "Query_Acquiring" -> when acquiring sweeps
  • "Query_Aq_Waiting" -> when acquiring sweeps and wait at end
  • "Query_Executing" -> when executing a protocol
  • “Query_Ex_Waiting" -> when waiting while executing a protocol
  • "Query_Recording" -> when a macro is being recorded
  • "Query_Playback" -> when a macro is being played back
  • "Query_Running" -> when running a task (e.g. replay)
  • "Query_Ru_Waiting" -> when waiting while running a task
  • "Query_Idle" -> otherwise.
  • SweepInfoExt "SweepInfoExt"
    no parameter
    response the string "SweepInfoExt" followed by
  • the response of the “Query” command,
  • the sweep ID ([GroupIndex]_[SeriesIndex]_[SweepIndex])
  • a semicolon,
  • a list of parameters, separated by semicolons, for each trace of the presently selected sweep.


  • The parameters are:
    • trace index at time of acquisition ("TraceCount")
    • number of data points
    • x-interval
    • "DataFactor", i.e. factor by which the raw data are to be multiplied to get unity.
    • Y-range: dynamic range of y-data
    • zero data
    • offset in bytes from beginning of data file
    • interleave block size in bytes
    • interleave block skip bytes
    • data type: 0=int16, 1=int32, 2=real32, 3=real64
    • endian type: 0=big endian (PPC), 1=little endian (Intel)
    • temp file: 0=stored in data file 1=in temp file