CustomDevices.AddCustomDevice Method
- Aktualisiert2023-02-21
- 2 Minute(n) Lesezeit
Adds the specified CustomDevice to the system definition.
Namespace:
NationalInstruments.VeriStand.SystemDefinitionAPIAssembly: NationalInstruments.VeriStand.SystemDefinitionAPI (in NationalInstruments.VeriStand.SystemDefinitionAPI.dll) Version: 2013.0.0.0 (2013.0.0.0)
| Visual Basic (Declaration) |
|---|
Public Function AddCustomDevice ( _ customDevice As CustomDevice _ ) As Boolean |
| C# |
|---|
public bool AddCustomDevice( CustomDevice customDevice ) |
| Visual C++ |
|---|
public: bool AddCustomDevice( CustomDevice^ customDevice ) |
Parameters
- customDevice
- Type: NationalInstruments.VeriStand.SystemDefinitionAPI.CustomDevice
The custom device to add.
Return Value
true (True in Visual Basic) if the CustomDevice was added successfully.
Remarks
This method only adds the CustomDevice to a system definition. This method does not add sections or channels that belong to the custom device or set properties of the custom device. Even for pre-built custom devices included with NI VeriStand, such as the Embedded Data Logger, you must use members of the CustomDevice class to add a CustomDeviceChannel or a CustomDeviceSection and to set properties of the CustomDevice separately from adding the custom device to the system definition.