Get u32

NI-Motion VI

Get u32

Gets the general software settings.

Details

Device Compatibility

DeviceCompatibility
7330
Y
7340
Y
7344
Y
7350
Y
7390
Y
NI SoftMotion Controller for CANopen—Accelnet
N
NI SoftMotion Controller for CANopen—Xenus
N
Board ID is a unique number assigned by Measurement & Automation Explorer (MAX) used to send and receive commands and data to or from a specific NI motion controller.
Resource is the Axis, Vector Space, ADC, or Encoder you wired into the VI. Use Resource Output to pass the resource to another VI and/or to display information about the device.
error in (no error) describes error conditions that occur before this VI runs. The default input of this cluster is no error. If an error already occurred, this VI returns the value of error in in error out. The VI runs normally only if no incoming error exists. Otherwise, the VI passes the error in value to error out. The error in cluster contains the following parameters:
status is TRUE if an error occurred before this VI was called, or FALSE if not. If status is TRUE, code is a nonzero error code. If status is FALSE, code is zero or a warning code.
code is a number identifying an error or warning. If status is TRUE, code is a nonzero error code. If status is FALSE, code is zero or a warning code. Use the error handler VIs to look up the meaning of this code and display the corresponding error message.
source is a string that indicates the origin of the error, if any. Typically, source is the name of the VI in which the error occurred.
Attribute is the selector for the type of information you want to retrieve.
Bd ID Out is provided for flow control. You can string together NI-Motion VIs by wiring the Bd ID Out terminal of one VI to the Board ID terminal of the next VI.
Resource Output is the Axis, Vector Space, ADC, or Encoder you wired into the VI. Use Resource Output to pass the resource to another VI and/or to display information about the device.
error out contains error information. If error in indicates an error, error out contains the same error information. Otherwise, it describes the error status that this VI produces.
status is TRUE if an error occurred, or FALSE if not. If status is TRUE, code is a nonzero error code. If status is FALSE, code is zero or a warning code.
code is a number identifying an error or warning. If status is TRUE, code is a nonzero error code. If status is FALSE, code is zero or a warning code. Use the error handler VIs to look up the meaning of this code and display the corresponding error message.
source is a string that indicates the origin of the error, if any. Typically, source is the name of the VI in which the error occurred.
Value is the returned data of the type you selected.

Using This VI

The Get u32 VI returns selected data about software settings. This VI can retrieve values stored in integer format.

Attribute  Resource  Description  Possible Values
Breakpoint Window  Axis or encoder  After the axis encounters a breakpoint, the axis must move outside the breakpoint window before it can rearm for another breakpoint. This is used to prevent oscillation from sending multiple breakpoint outputs from the same breakpoint position. The default is 0. 0 to 255
Program Auto Start  N/A  Use this attribute to return the onboard program that is enabled for auto start.
Gearing Enable Status Axis control or axis Use this attribute to read the gearing enable status on an individual axis or on axes one through eight using the axis control resource. Reading the status on axes one through eight returns a bitmap where bit 0 is the status for axis 1 and so on. Reading the status on an individual axis returns a bitmap that is masked for that axis. For each bit in the bitmap:
1 = gearing enabled
0 = gearing disabled

Using Unlisted Resources

Complete the following steps to use this VI on resources that are not in the drop-down list:

  1. Open the VI in LabVIEW.
  2. View the block diagram.
  3. Right-click the Resource terminal and select Create»Constant.
  4. Click the drop-down arrow on the Resource constant and select Other.
  5. Type the appropriate resource number, in decimal, for the resource you want to configure. Refer to Axes, Vector Spaces, ADC Channels, and Encoders for resource numbers.
  6. Right-click the Attribute terminal, select Create»Constant, and select the appropriate attribute from the drop-down list.