What are some LabVIEW motion programming tips and tricks?
The following tips may help you when programming with NI SoftMotion function blocks in LabVIEW. • Function blocks must be executed in a VI that is part of a LabVIEW project. • Function blocks must always be run in a loop. Depending on your application requirements, you can use either a While loop timed using a Wait Until Next ms Multiple Function, or you can use a Timed Loop synchronized to the NI Scan Engine if your application requires that the function blocks execute at the scan period. • Use the function block status outputs to determine the order of function block execution, and not standard LabVIEW programming methods. For example, do not place function blocks inside a case structure. • You must initialize all array outputs outside the application loop so that the function block does not allocate memory. This reduces drift and jitter in the system.