Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

Windows Media Player makes NI-Motion faster

Hello chvogt,

We are not able to reproduce the loop speed increase that you describe, and cannot find any other instance of this behavior. Again, this behavior sounds specific to your PC(s) and the loop iteration rates can be easily controlled by upgrading from your PC to a real-time operating system.
David G
Sales Engineer - SE Michigan & N Ohio
National Instruments
Message 11 of 16
(2,353 Views)

Hey chvogt,

 

Some of my colleagues are quite interested in the behavior you are experiencing, though we cannot reproduce it.

 

What happens when you replace your calls to NI-Motion with calls to NI-DAQmx? How about when you remove the calls to NI drivers altogether?

David G
Sales Engineer - SE Michigan & N Ohio
National Instruments
0 Kudos
Message 12 of 16
(2,315 Views)

I modified the test program to include a loop that makes a call to a NI-DAQmx function, DAQmxReadDigitalLines, and there is no speed change. Here are the results of the test.

 

The code for the 'Calculation Loop' is the same as the 'NI-Motion' loop code except it doesn't call the NI-Motion function. The speed of the calc loop is not affected. 

 

Please let me know if I can provide any more information.

0 Kudos
Message 13 of 16
(2,301 Views)

Hey chvogt,

 

Interesting results... we are still  trying to reproduce this phenomenon. Can you post your exe (the one you made with the 3 loops) to the forum?

 

Could you try running the program in Windows safe mode and post the results?

 

Thanks for your continued interest and help!

David G
Sales Engineer - SE Michigan & N Ohio
National Instruments
0 Kudos
Message 14 of 16
(2,287 Views)

Here is the newest test program.

 

I wasn't able to run the program in safe mode. I kept getting a 'FlexMotion32.dll not found' error. The file exists on the hard drive and I tried moving it and explicitly stating where it was located but still couldn't make it work.

0 Kudos
Message 15 of 16
(2,267 Views)

Hi chvogt,

 

I tried this program but am not seeing the results you are seeing. Can anyone else reproduce this?

--Michelle

National Instruments
0 Kudos
Message 16 of 16
(2,256 Views)