WOLFRAM SYSTEM MODELER
MultipleReadA block for reading data from multiple items on an OPC server at intervals determined by parameter samplePeriod |
SystemModel["OPCClassic.Blocks.SamplerReal.MultipleRead"]
This block reads data from multiple items of type Real from the OPC server it is connected to. It inherits the properties of the partial model Sampler, which contains parameters such as samplePeriod and itemName that determine how often and from which OPC items the data should be read.
At every sampling instant, external function readExternalReal is called from within the block.
samplePeriod |
Value: Type: Time (s) Description: Sample period of component |
---|---|
startTime |
Value: 0 Type: Time (s) Description: First sample time instant |
itemName |
Value: {""} Type: String[:] Description: The OPC items that data should be written to or read from |
y_start |
Value: fill(0, size(itemName, 1)) Type: Real[size(itemName, 1)] Description: initial value of output signal |
serverID |
Type: BlockConnector Description: The unique ID of the server the block is connected to |
|
---|---|---|
y |
Type: RealOutput[size(itemName, 1)] Description: The data read from the item on the OPC server |
readItem |
Type: Read[size(itemName, 1)] Description: A block for reading data from items on an OPC server at intervals determined by parameter samplePeriod |
---|
OPCClassic.Examples Example that demonstrates how multiple items can be read using the same component |