12-04-2008 03:58 AM
I use the PCI-7390 motion control board and control the 4 motors using it.
I was succeed in the initialization of 2 motors.
But the error message was detected in initialization program when motor was added.
-70126 NIMC_axisConfigurationError
An axis cannot change feedback while moving or change output while enabled. Stop and/or disable the axis and then configure it.
How can i solve this problem?
12-04-2008 04:56 AM
To make this error disappear, you should disable all axes before assigning resources to them. In your initialization routine you have explicitely enabled your axes with "Enable Axes.flx". Use this function to disable the axes and enable them again at the end of your initialization routine.
On the other hand I'm a bit confused by what you are trying to accomplish with your code. You use "Initialize Controller.flx", which loads all initialization parameters from your MAX settings and then you change some of these settings in your vi. This results in a mixture of MAX settings and programmatic settings, which doesn't seem to make too much sense to me.
If you want to do the complete configuration in your vi, you shouldn't use "Initialize Controller.flx", but "Clear Power Up Status.flx" at the beginning of your initialization routine. Otherwise you better should use MAX to do the complete configuration of your motion control board and use only "Initialize Controller.flx" in your vi.
Kind regards,
Jochen Klier
National Instruments