Example Code

Parsing PSpice .CIR files into Digital Waveform Data

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Description

This example shows how to parse a .CIR file created in the PSpice software into Digital Waveform data in LabVIEW, ready to be saved to a file or streamed to a HSDIO device for output. It does this by searching the .CIR file for delimiting tokens and building an array of the signals.

As HSDIO devices are hardware timed, a constant dt is required, rather than a dynamically changing period present in some .CIR files. 

Related Links

How to Generate HWS Waveform Data in LabVIEW

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.