Documentation Home Page ◇ RT-LAB Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.
OpScramnet Read Block
Block
Mask
Description
The OpScramnet Write block is used in a Master or Slave subsystem along with the OpScramnet Ctrl block, to read the reflective memory buffer of a Curtiss-Wright SCRAMNet+ device. At each calculation step, it reads the reflective memory locations starting at the address specified by the sum of the Base Address parameter and the Offset input. The size of a memory unit is determined by the Memory access size parameter and each of these units is placed on the Data output. The width of that output determines the number of units to be read.
Parameters
Controller and Node ID | Specifies the controller ID of the OpScramnet Ctrl that the Read block will use. |
---|---|
Base Address | Specifies the starting address, in bytes, in the reflective memory at which reading is to be started. When the optional Offset input is used, the reading start address is the sum of the offset and the base address. |
Memory access size | Specifies the type (and size) of each memory access. The values returned on the Data output will be converted from the specified format. |
The following formats are supported:
byte | 8 bits unsigned integer data |
---|---|
word | 16 bits unsigned integer data |
long word | 32 bits unsigned integer data |
float | single precision, 32 bits float data |
double | double precision, 64 bits float data |
Note: The type of the Data output is always doubles.
Use external offset | Allows the user to specify an offset added to the Base Address. An offset input will be added to the block when selected. If this option is not selected, memory is always read starting at the base address. The address and the offset are always expressed in bytes. |
---|---|
Sample time | The sample period in second. Use 0 for continuous and -1 for inherited. This is the sample time parameter commonly encountered in the simulink block library. |
Inputs
Offset | This input is available if the Use external offset checkbox is checked. |
---|
Outputs
Data: Data in the shared memory will be reported using the address specified in the base address and the offset if applicable. Use a demux to specify the number of outputs to be used. For example, for a demux with a width of 3, the starting address is at 0xd4000, and the memory access size in word format with an offset of 0x00:
Demux output | Offset |
---|---|
1 | 0x00 |
2 | 0x02 |
3 | 0x04 |
Memory access size is in longword format:
Demux output | Offset |
---|---|
1 | 0x00 |
2 | 0x04 |
3 | 0x08 |
Characteristics and Limitations
This block has no special characteristics.
Direct Feedthrough | No |
---|---|
Discrete sample time | Yes |
XHP support | No |
Work offline | No |
OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323
Follow OPAL-RT: LinkedIn | Facebook | YouTube | X/Twitter