Adding Custom Device Channels and Waveforms
- Updated2025-04-08
- 2 minute(s) read
Adding Custom Device Channels and Waveforms
Add channels and waveforms to a custom device by using the appropriate VI within a Custom Device Library VI that runs on the host computer.
- Open a Custom Device Library VI that runs on the host computer.
-
Based on the data exchange mechanism you want the custom device
to use, add a VI from the Configurations VIs palette.
Mechanism VI Type Channel Add Custom Device Channel VI Waveform Add Custom Device Waveform VI -
Modify the following code in the VI.
Note The following image displays the Add Custom Device Channel VI customized to add two input channels and one output channel. The customizing process for the Add Custom Device Waveform VI is very similar.
1 Device Item Ref in—Provides each instance of the Add Custom Device Channel VI with the reference to the custom device to which to add the channels.
2 Channel cluster—Defines the various properties of the channel, including the type, units, default value, faultability, and scalability of the channel. In this example, two input channels and one output channel will be created.
3 Channel Name—Specifies the name of the new channel. In this example, the channel names are A, B, and A+B. Each channel must have a unique name. If the name you specify already exists, this VI overwrites the existing channel settings.
With this configuration, the custom device will create three channels, A, B, and A+B, when you add it to a system definition.