The CMC Driver Framework is a LabVIEW framework for implementing a robust hardware abstraction layer. It abstracts both communication protocol and instrument model to provide maximum flexibility. Program once in Driver Framework and simply import the device support you need as you need it. No code changes required.
Additional configuration and debug tools are built in to accelerate development and reduce troubleshooting time. Specifically, the CMC Driver Framework Core includes:
CMC Configuration Manager
The CMC Configuration Manager provides a graphical user interface to generate device and communication protocol configurations. These configurations can then be used and re-used across different applications to set up, configure, and use the associated device or communication protocol.
When you install a new DF Driver it will show up as an available instrument here. Easily modify an existing configuration by changing a value and clicking save. Or create copies of configurations for different purposes. Change communication protocols with a drop-down menu and no changes to code.
The console enables you to monitor all communication between your program and the device while your program is running. It provides timing and directional (to or from device) information, as well as the ability to insert commands into the data stream during program execution. The console is an excellent debugging tool for verifying that commands are being sent and received properly.
Event Logger (Coming Soon)
The Event Logger is a pre-made logging tool that informs you of any errors or other events that occur in the CMC Driver Framework code. You can use the Event Logger API to integrate it into the rest of your code, enabling you to automatically log errors or simply mark events of interest during program execution for debugging purposes. The Event Logger UI can be used to review all logged events, search for specific event text, and filter by event type.
Instrument Control API
By programming with the CMC Driver Framework Core's Instrument Control API, you can switch between communication protocol simply by applying a new configuration file. These files are auto-generated by the CMC Configuration Manager.
The CMC Driver Framework Core Instrument Control API supports the following communication protocols:
- Serial (RS-232)
- Ethernet (VISA LAN)
- USB (VISA USB)
For device-specific support, install a CMC device-specific driver. These drivers all build on CMC Driver Framework Core and further abstract the device type.