Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

How to update the settings in MAX Motion through code

Hi,

I am working with the NI Motion driver to access the PCI 7334 Stepper Motion Controller.
Is it possible to update the settings in Measurement  & Studio Explorer  when I change a setting in the stepper controller?

For example, after I run flex_load_scurve_time for an axis, the new value of the s curve time to be set in Measurements Studio as well.

In other words, is there an API which allows me to alter card descriptions in Measurement Studio ? I am interested to programatically change values or properties of the cards but not from the user interface of Measurement Studio, so, after I run my application and reopen the MAX to see the card properties were updated according to my program.

Thank you,
Iulia
0 Kudos
Message 1 of 3
(3,639 Views)
Sorry but the answer is "no". There is no API to update the values in MAX programmatically. If you want to use MAX to set your parameters you will have to do all permanent settings in MAX. If you want to be able to do permanent settings in your application you shouldn't use MAX at all but set all parameters in your program. You should store the parameters in a file so you won't have to hard code them.

Best regards,

Jochen Klier
National Instruments Germany
0 Kudos
Message 2 of 3
(3,636 Views)
Here is an application note and some example code for managing system configuration parameters programmatically.
 
 
It uses an INI style file format (human readable).
 
Doug S
Message 3 of 3
(3,632 Views)