Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I be directed to a SIMPLE example of one value being passed FROM Labview TO an Onboard program to be used as a "Var Vector" in a sub.vi in the onboard program?

I can find all kinds of examples of data FROM OnBoard Programs to the host but not the other way round. Specifically how do I get the variable into a memory location that the Board will read?
0 Kudos
Message 1 of 2
(3,083 Views)
Thank you for contacting National Instruments. There are a few LabVIEW examples that ship with NI-Motion that use the Load Constant to Variable VI to store data from your application to the onboard memory of the motion controller device. If you open NI Example Finder (click on Find Examples.. under the Help menu) and choose to browse by Directory Structure, then you can navigate to the Motion >> FlexMotion >> Onboard folder. The "Sequence of One-Axis Moves" and "Repeated Move in a FOR Loop" examples both store information in variables on the motion controller, whose data is later used in the onboard program. From your post, this is what it sounds like you are interested in doing.

Also, if you are new to onboard programming and want to look over some more informa
tion on developing those applications then I would recommend starting with Chapter 15 of the NI-Motion User Manual, where it discusses onboard programming. You can also reference the following website and the links on it:

On-board Programming in FlexMotion
http://zone.ni.com/devzone/conceptd.nsf/webmain/F03A6DE53C744C5886256857005ECDBE?opendocument

If this does not answer your question or if I miss understand your request then please let us know.

Regards,
Michael
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(3,083 Views)