10-31-2006 09:15 AM
11-01-2006 05:46 AM
Hi,
My guess is that for the u8 axis argument it is the same for all the other
flex_ functions that requires an axis specified. You can use the macros NIMC_AXIS1,
NIMC_AXIS2, NIMC_AXIS3 and NIMC_AXIS4. You can find those macros defined in the
header file MotnCnst.h in folder “C:\Program Files\National
Instruments\NI-Motion\FlexMotion\Include”.
To disable the axis in your program just call:
flex_stop_motion(boardID, axis, NIMC_KILL_STOP, 0xFF);
flex_enable_axis(boardID, NIMC_AXIS_CTRL, NIMC_PID_RATE_250, 0);
To enable the axis call:
flex_enable_axis(boardID, NIMC_AXIS_CTRL, NIMC_PID_RATE_250, axis_map);
flex_stop_motion(boardID, axis, NIMC_HALT_STOP, 0xFF) );
Regards,
11-02-2006 03:05 AM - edited 11-02-2006 03:05 AM
Message Edited by Jochen on 11-02-2006 10:09 AM