Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

Configure Inhibit Output

I am trying to use the following function:

    flex_config_inhibit_output(u8 boardID, u8 axis, u16 enable, u16 polarity, u16 driveMode)

What is the enable parameter?  The C Reference Help says:

    enable is the inhibit output to enable. An enabled inhibit monitors the motor off (killed) state of the axis.

This doesn't explain what value it needs.  Any help would be greatly appreciated.
0 Kudos
Message 1 of 4
(3,658 Views)
flex_config_inhibit_output() sets polarity and enables or disables the per-axis inhibit outputs.
To enable the inhibit output set enable = 1, to disable it set enable = 0.

I hope that helps,

Jochen Klier
National Instruments Germany
Message 2 of 4
(3,658 Views)
I guess it had to be something simple like that.  The value is a u16 - Are other values reserved/unused or is it implemented as ZERO for disable and NON-ZERO for enable?

Thanks!
0 Kudos
Message 3 of 4
(3,653 Views)
I'm pretty sure that it is like you have described but I'm not 100% sure as I can't look into the source code of the NI-Motion driver. There shouldn't be any other reserved values for this parameter. If you don't want to try it or if you need to be 100% sure that every value other than 1 enables the inhibit output please let me know. For this case I will contact our R&D team in Austin. Otherwise please use 0 and 1.

Thanks,

Jochen
0 Kudos
Message 4 of 4
(3,650 Views)