| Data Acquisition Toolbox | ![]() |
Indicate the parent (device object) of a channel or line
Description
The parent of a channel (line) is defined as the device object that contains the channel (line).
You can create a copy of the device object containing a particular channel or line by returning the value of Parent. You can treat this copy like any other device object. For example, you can configure property values, add channels or lines to it, and so on.
Characteristics
| Usage |
AI, AO, Channel; DIO, Line |
| Access |
Read-only |
| Data type |
Device object |
| Read-only when running |
N/A |
Values
The value is defined when channels or lines are added to the device object.
Example
Create the analog input object ai for a National Instruments board and add three hardware channels to it.
To return the parent for channel 2:
parent is an exact copy of ai.
| OutputRange | Port | ![]() |