You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nidaqmx.errors.DaqError: Property cannot be set seperately for each line.
When setting this property, specify a virtual channel as the active channel.
Property: DAQmx_DO_NumLines
Channel Name: Input
Physical Channel Name: Dev1/PFI25
Task Name: _unnamedTask<0>
Status Code: -200641
Unassigning channel._name (so that channel.name is resolved to channel._all_channels_name) or directly setting it to "Input" fixes this issues and the proper value (4) is returned.
The text was updated successfully, but these errors were encountered:
To work around this issue without using private implementation details, you should be able to index the channel collection to create a new channel object with the right name. The channel object is a proxy for the task and channel name, so it's ok to create a new channel object. (Note: I haven't tested this code snippet.)
FYI, when getting/setting per-line DIO properties, you should be able to index the channel collection with the physical channel name (again, untested code snippet):
Properties on
DI/DOChannel
s with multiple lines andGrouping.CHAN_FOR_ALL_LINES
cannot be accessed, becausechannel.name
contains the wrong name.On an (emulated and real) PCIe-6612 the following code snippet
results in
Unassigning
channel._name
(so thatchannel.name
is resolved tochannel._all_channels_name
) or directly setting it to"Input"
fixes this issues and the proper value (4
) is returned.The text was updated successfully, but these errors were encountered: