Closed Omnistic closed 2 months ago
Hi Omni, My apologies for the confusion. This is actually intentional, UseFileSettings and UseConfiguredSettings are based of the defaultSetting.xml that's loaded in when those options are selected. Since the xml doesn't house the trigger settings it'll just ignore anything you try to set. I hope this helps.
This is partly my fault for combining multiple examples from the repository, but I wanted to make sure what I observed is the intended behavior.
To change the trigger configuration to
TrigOUT_AtPositionFwd
on I/O 1, one has to do:This works for me for any
DeviceSettingsUseOptionType
(UseDeviceSettings
,UseFileSettings
, orUseConfiguredSettings
) when calling:However, when I want to change the parameters of the
TrigOUT_AtPositionFwd
, such as the pulse width or the trigger count, with such a piece of code:This only works with
DeviceSettingsUseOptionType
asUseDeviceSettings
. Those parameters are ignored ifDeviceSettingsUseOptionType
isUseFileSettings
orUseConfiguredSettings
. No error is thrown, but I noticed with an oscilloscope.It was quite confusing to me because I had
DeviceSettingsUseOptionType
asUseFileSettings
and I was able to change the trigger configuration to haveTrigOUT_InMotion
. Therefore I assumed I could also change it toTrigOUT_AtPositionFwd
, which maybe works (?), but what is for sure is that the parameters are never taken into account (at least for me). So, changing the number of trigger counts didn't have an effect until I changed back toUseDeviceSettings
.Please let me know if that is indeed the intended behavior or whether I am not understanding something from the API (very likely). Thank you and take care,
Omni