.

Memory Out User Buffer

Overview

Overview

The Memory Out User Buffer block is used to output a MechaWare block’s output to a user buffer register. Any of the controller’s user buffer registers can be written to by the Memory Out User Buffer block. Currently there are 1024 user buffer registers (defined by MFWUserDataSize).

Example

In the following example, the output of the summation routine is written to a User Buffer, which can be read by an application. This provides communication from MechaWare to your software.


The configuration values for this block are as follows:

 
Memory Out User Buffer Number

Memory Out User Buffer Number.

Defines user buffer register that is written to by this block.

Data Type

Defines the data type of the data being written into the user buffer.

Float (32 bits)
Double (64 bits)
Short integer (16 bits)
Integer (32 bits)
Long integer (64 bits)

Evaluate Block This block allows you to specify whether the block executes Every Sample, Every Other Sample (Odd or Even), or Every Fourth Sample (and specify the First, Second, Third, or Fourth). This provides greater flexibility in controlling the execution of a model and to preserve performance for other areas of motion control.
User Defined Block Priority When selected, allows you to enter a Priority Code to modify Execution Ordering of this block. For more information, see Block Execution Order and User Defined Block Priority.
Priority For an explanation of how the Priority field is used by the MechaWare Model Downloader, see Block Execution Order and User Defined Block Priority.
User Data 0 Application-specific data. See User Data Storage.
User Data 1 Application-specific data. See User Data Storage.

Matlab/Simulink

Simulink Interface

memout

The Memory Out User Buffer Number defines the register location that will be written to by this block. Data Type defines the type data type of the internal variable being written to by the block.

0 = float (32 bits)
1 = double (64 bits)
2 = short integer (16 bits)
3 = integer (32 bits)
4 = long integer (64 bits)

The block has two user data fields (User Data 0, User Data 1) to store application-specific data for convenient storage and retrieval. See User Data Storage for details.

The block's update schedule is determined by the Evaluate Block. The following Parameter Dialog Box can be opened by double-clicking on the block in a Simulink Model:

output_sim2

 

C++ API

MEMOUT_USERBlock

Declaration

Public Method

 
class MEMOUT_USERBlock: public virtual Block
{
public:
	// User accessible coefficients
};   
 

Required Header: mechaware.h

Description

The Memory Out User Buffer block is used to direct output to the user buffer.

Methods

Block Methods

See Also

Memory
Torque Output
Noise Generator MemoryOut
Actual Position Memory Out User Buffer
Command Position Scope
Position Error Feedback
Memory User Buffer Reset Status
Command Acceleration Test In
Command Velocity Test Out

 

 

       Legal Notice  |  Tech Email  |  Feedback
      
Copyright ©
2001-2012 Motion Engineering