Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

What can make flex_enable_axis cause a wrong mode error, i.e. NIMC_wrongModeError?

Hi,

I am currently getting a wrong mode error caused by enabling my axis. I realize the error is caused when flex_enabled is used at an illegal time, but what can make it run at an illegal time?

I am currently trying to set my axis with certain configurations. I use the flex functions in this order:

flex_initialize_controller(boardID, 0);

flex_clear_pu_status(boardID);

flex_enable_axis("disable all axis");

flex_enable_adcs("enabled ADC channel 1");

flex_config_axis("configure axis 1: primary feedback:ADC channel 1 and primary output: DAC channel 1);

flex_enable_axis("enable axis 1"); //This is where error occurs.

How is enabling axis 1 here an illegal time?

If anyone can explain to me, it would be greatly appreciated. Thanks!!
0 Kudos
Message 1 of 4
(3,682 Views)
Hello,

Thank you for using our discussion forums. Would it be possible for you to post your application that is giving this error. I just tried the same procedure in LabVIEW and the sequence ran in this order without a problem. Also, let us know what programming environment you are using.

Regards,
Nipun M
Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(3,674 Views)
Hi Nipun,

I am using Labview 7.0 in junction with measurement studio for VC++. I resetted the board and now it works ok. But this kind of situation kind of scares me since I never realized why the error message popped up. Anyways, thanks for your efforts!
0 Kudos
Message 3 of 4
(3,669 Views)

It might be also a good idea to upgrade to NI-Motion 7.0 if you haven't done, yet. This is especially important if you are using an NI-Motion version older than 6.1.x

Best regards,

Jochen Klier
National Instruments Germany

0 Kudos
Message 4 of 4
(3,665 Views)