Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

Configuring Motion Card Programmatically

I use unique MAX settings for different applications on the same PC. I’d like to use LabVIEW to Programmatically configure a FlexMotion 6C PCI Card using the provided .flx VIs, I imaging all motion cards would required the same code.

Is anyone aware of NI instructions for this, or perhaps you have example code?
0 Kudos
Message 1 of 4
(3,569 Views)

I use unique MAX settings for different applications on the same PC. I’d like to use LabVIEW to Programmatically configure a FlexMotion 6C PCI Card using the provided .flx VIs.

I imagine all motion cards would require the same code.

Is anyone aware of NI instructions for this, or perhaps you have example code?

0 Kudos
Message 2 of 4
(3,524 Views)
I'm not 100% sure about your goal. Would you like to be independant from the MAX settings, setting all the properties of the axes in your program or would you like to be able switch between multiple settings that are saved in MAX. If the latter is the case you simply need to pass the name of the settings you want to use to the Initialize Controller.flx.

If you don't want to use the MAX settings at all you should use the vis from the Axis & Resource configuration palette and from the Motion I/O palette to configure the settings you need. You will also have to use Clear Power Up Status.flx from the Advanced palette in order to enable the controller to accept commands.

I hope this helps

Jochen Klier
National Instruments Germany
0 Kudos
Message 3 of 4
(3,520 Views)

Thanks for the reply.

I would like to initialise/configure the 6C independent from MAX. Without instructions, I have experimented with different VIs from the FlexMotion palette, but without success.

The amplifier has axis select lines that are connected to the 6C digital output. I have successfully developed the new application by initialising the 6C using the software delivered with the motion rig (exe code). Therefore the Axis Select VI has been proven.

I need to replicate the initialisation routine contained in the exe file. At present, after a reboot, I cannot get anything from the 6C when using my initialisation code (attached). Does my code contain any obvious errors?

Brian

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