Documentation Home Page ◇ Power Electronics Add-On for NI VeriStand - OPAL-RT Circuit Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.
How to Log Waveform Data to a File
Prerequisites
How to Display Simulated Signals using Waveforms
Procedure
The Waveform Data Logger Custom Device is an open-source tool freely available for users to download online. It can be deployed in a VeriStand project alongside the Power Electronics Add-On to record Waveform channel data to a file during execution.
The Waveform Data Logger Custom Device is not developed, maintained, or supported by OPAL-RT. For any issues or questions related it its use, please contact National Instruments Support.
Installing the Waveform Data Logger Custom Device
Download and install the Waveform Data Logger Custom Device from GitLab:
Navigate to Waveform Data Logger Custom Device and select the latest build corresponding to your version of VeriStand.
Download the .nipkg file for the build.
Double-click the file to open it in the NI Package Manager and follow the installation prompts.
Logging Data to a File
The steps below describe how to add the Waveform Data Logger Custom Device to a VeriStand project alongside the Power Electronics Add-On. Before completing these steps, the desired simulated signals must be mapped to VeriStand Waveform channels in the Power Electronics Add-On. See How to Display Simulated Signals using Waveforms for more information.
In the VeriStand System Definition tree, expand the items until the Custom Devices section is reached.
Right-click the Custom Devices section and navigate to National Instruments >> Waveform Data Logger.
In the Waveform Data Logger page, click Add Log File. Notice that a new item, Waveform Log, is added to the System Definition tree.
In the Log File Settings tab, enter a Log File Path. This is the location on the target where the file will be saved.
Navigate to the Waveforms tab and click select Waveforms.
Expand Controller >> Custom Devices >> Power Electronics Add-On (OPAL-RT Circuit) >> Circuit >> Waveforms and select the Waveform channels to log to the file.
In the System Definition tree, expand Waveform Data Logger >> Waveform Log >> Commands to display the Logging Enabled channel. This channel must be set to TRUE to record data. If desired, it can be routed to a UI control and manipulated by the user at execution time.
Save the System Definition file and deploy the project to simulate and record data.
Customizations can be made in the custom device Configuration page to control start triggers, stop triggers, file sizes, and other logging options. At execution time, monitor the File Status and Missed Samples channels to ensure that data is being recorded as intended.
Transferring the File to the Host PC
During execution, the Waveform signal data will be logged to a TDMS file stored on the real time target. Use FTP to transfer the file back to the Host PC and examine the results.
Open a Windows Explorer window, and in the address bar enter ftp:\\<ip_address> to connect to the real time target. For more information about connecting to a target over FTP, refer to the National Instruments KB article How can I Transfer Files over FTP to a Remote System?
On the real time target, navigate to the file path configured in Step 4 above, and locate the TDMS log file.
Copy and paste the file from the real time target to the Host PC
Processing Results
TDMS is a custom National Instruments file type designed for storing and managing large amounts of data. More information about TDMS can be found on the National Instruments website:
To quickly view the data in Microsoft Excel, consider installing the TDM Excel Add-In for Microsoft Excel.
OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323
Follow OPAL-RT: LinkedIn | Facebook | YouTube | X/Twitter