WOLFRAM SYSTEM MODELER
ReadA block for reading data from an item on an OPC server at intervals determined by parameter samplePeriod |
SystemModel["OPCClassic.Blocks.SamplerBoolean.Read"]
This block reads data of type Boolean 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 item the data should be read.
At every sampling instant, external function readExternalBoolean 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 item that data should be written to or read from |
y_start |
Value: false Type: Boolean Description: initial value of output signal |
sampleTrigger |
Type: Boolean Description: True, if sample time instant |
---|---|
firstTrigger |
Type: Boolean Description: Rising edge signals first sample instant |
serverID |
Type: BlockConnector Description: The unique ID of the server the block is connected to |
|
---|---|---|
y |
Type: BooleanOutput Description: The data read from the item on the OPC server |
OPCClassic.Examples Basic example that demonstrates how to write to and read from items on an OPC server |
OPCClassic.Blocks.SamplerBoolean A block for reading data from multiple items on an OPC server at intervals determined by parameter samplePeriod |