Using Onboard Memory and Data
Note This section applies only to NI 73xx motion controllers. |
NI motion controllers allow you to access the onboard RAM and FLASH to create data buffers and use some general-purpose onboard variables for data manipulation. You can use this memory to update data that is loaded by functions that are executing in an onboard program. You also can synchronize execution or data between the host computer and the motion controller. For example, you may want to update the velocity of an axis based on the analog voltage read from an ADC channel. This memory is statically allocated.
Updating Velocity Based on ADC Channel Algorithm
The following figure shows the basic algorithm for updating velocity based on an ADC channel using an onboard program applicable to both C/C++ and LabVIEW code.
Before you execute this program, set the operation mode of the axis to velocity mode.