Custom Device Benchmarking and Debugging
- 更新日2025-04-08
- 2分で読める
Custom Device Benchmarking and Debugging
You can use tools provided by LabVIEW and VeriStand to benchmark and debug your custom device.
You should perform benchmarking on a system that is similar to the target. Other components of the VeriStand system, such as models, calculated channels, alarms, and procedures, affect the ultimate execution speed of the system.
Tool | Purpose | Granularity | Location | Details |
---|---|---|---|---|
LabVIEW Debugging Tools | Debugging | N/A | LabVIEW |
You can merge debugged VIs into the Custom Device Framework manually. Timing can differ between standalone VIs and VIs in the Custom Device Framework. This tool is not available after VeriStand integration. For more information, refer to the Debugging Techniques topic in LabVIEW Help. |
Custom Error Codes | Debugging | N/A | LabVIEW and VeriStand |
You can define custom error codes in LabVIEW and distribute the codes to VeriStand with a custom device. Copy the custom errors.txt file to VeriStand in the <Base>\National Instruments\Shared\Errors\English directory and add the file as a dependency in custom device and Custom Device XML file. For RT targets, deploy the errors.txt file to the error directory on target to display error descriptions in Console Viewer. For more information, refer to the Defining Custom Error Codes to Distribute throughout Your Application topic in the LabVIEW Help |
Print Debug String VI | Debugging | NA | LabVIEW |
This VI prints messages to the RT console and the VeriStand data log. This tool works on Windows and RT targets. |
NI Distributed System Manager | Benchmarking (CPU and RAM) | Medium | Installs with LabVIEW. |
The manager works with network variables and manages remote target settings and the status of the Shared Variable Engine. This tool takes periodic snapshots. To use this tool, you must install System State Publisher on the RT target. CPU spikes and transients might not appear. |
System Channels | Benchmarking and debugging | High | VeriStand | Useful system channels include: You can use these channels with alarms or
procedures.
|
関連コンテンツ
- Custom Device Framework
Follow the custom device framework to ensure your LabVIEW code interacts correctly with VeriStand.
- Viewing Real-Time Target Logs
Display and monitor logs from a real-time target.
- VeriStand Directories and Aliases
VeriStand uses directories and aliases for project files, models, and custom devices.
- Custom Device XML File
The Custom Device XML file enables you to define parts of the custom device in System Explorer, specify which VIs to call, and select the dependencies to deploy to an RT target.
- System Channels
Use system channels to monitor system parts, such as the host computer, the target, and the VeriStand Engine, while it is deployed and running.
- Adding and Configuring Alarms
Notify users when a channel value is outside a specified range.
- Adding and Configuring a Procedure
Set the actions the VeriStand Engine executes in response to an alarm, when called from another procedure, or as a startup procedure.