Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I Tell if the Set mode vi has been run by querying the motion card

I am running a PCI 7344 Motion card in a Labview 6.1 environment using motion 6.0. My problem occurs when I try to set the mode by calling the set_mode.vi if this vi has already been run once then I get error -70003 a velocity error . My question is can I query the card to see if the mode has already been set in order to dynamically run the set_mode.vi? Any help would be greatly appreciated
0 Kudos
Message 1 of 3
(3,117 Views)
Hello,

Here's some info from the help menu for that function. Are you calling this function to a coordinate space or a single axis? Position modes are applied to all axes in a coordinate (vector) space. Velocity mode is not available for coordinate spaces. If you later want to operate an axis independently in a different mode from the other axes, call Set Operation Mode again on that axis.
All axes in a coordinate (vector) space must have the same operation mode. If the operation modes are different on each Axis when a Start Motion or Blend Motion VI is executed, an error will be generated.
The operation mode must be set or changed before any other trajectory parameters are loaded for the next move. The operation mode affects how the target position and veloci
ty values are interpreted. Trajectory parameters loaded after a mode change will be interpreted in the newly selected mode. Trajectory parameters loaded any time before a mode change will not reflect the new mode.
Changing operation mode after the trajectory parameters are loaded can result in improper operation.
Hope this helps! Let me know if you need further assistance.

Best regards,

Yusuf C.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 3
(3,117 Views)
Thanks helped a lot. Good Holidays to you
0 Kudos
Message 3 of 3
(3,117 Views)