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
I was/am unable to set the source terminal start trigger for any interface session. This is useful for syncing between DAQmx and XNET. This is using a cDAQ-9189 with an NI-9862 XNET module.
Steps Involved:
Create any input or output session and try to set the intf.src_term_start_trigger. I received the following error:
nixnet.errors.XnetError: NI-XNET: (Hex 0xBFF630C0) A property value was out of range or incorrect. Solution: Specify a correct value.
I checked the output in NI IO Trace, and saw that when the value was read using nxGetProperty, the length was 1 more than the number of characters. For example:
"/cDAQ9189-xxxxxxx/Slot6/Convert" has 31 characters, but a length of 32. It seems XNET wants the length+1 for the string. This is not followed when setting the property. The command to set the property:
I was/am unable to set the source terminal start trigger for any interface session. This is useful for syncing between DAQmx and XNET. This is using a cDAQ-9189 with an NI-9862 XNET module.
Steps Involved:
Create any input or output session and try to set the intf.src_term_start_trigger. I received the following error:
I checked the output in NI IO Trace, and saw that when the value was read using nxGetProperty, the length was 1 more than the number of characters. For example:
"/cDAQ9189-xxxxxxx/Slot6/Convert" has 31 characters, but a length of 32. It seems XNET wants the length+1 for the string. This is not followed when setting the property. The command to set the property:
Has 33 characters for the trigger source, and a length of 33. This was returning the error above.
I modified _cprops.py, line 204 from:
value_size = len(value_bytes) * _ctypedefs.char.BYTES
to:
value_size = len(value_bytes) * _ctypedefs.char.BYTES + 1
And that solved the problem. I was able to set the start trigger.
Installed packages and version
The text was updated successfully, but these errors were encountered: