TypeResolver
The TypeResolver block is a polymorphic VI and supports the following operation modes to convert data types:
- To TC (for writing from LabVIEW™ to TwinCAT)
- From TC (for reading from TwinCAT to LabVIEW™)
To TC
The To TC block initializes the TypeResolver, compares the LabVIEW™ data type with the TC3 data type and converts the LabVIEW™ data into ADS raw data. The block then releases the TypeResolver from the memory.
For more information see: Type Resolving.
Input/output | Meaning |
---|---|
[0] Handle | Handle to the ADS client |
[5] SymbolName | ADS symbol consisting of AMSNetId and symbol name |
[9] WData | Raw data for ADS-Write |
[4] Handle | Handle to the ADS client |
[6] bHasMatched | Flag (TRUE if TC3 and LabVIEW™ data type are identical, otherwise FALSE) |
[10] ADSWData | Type-resolved ADS write value |
From TC
The From TC block initializes the TypeResolver, parses and converts the ADS data read from TwinCAT with ADS Read into the LabVIEW™ data type Variant. The block Type Release releases the TypeResolver from memory.
For more information see: Type Resolving.
Input/output | Meaning |
---|---|
[0] Handle | Handle to the ADS client |
[5] SymbolName | ADS symbol consisting of AMSNetId and symbol name |
[9] ADSRData | Raw data from ADS-Read |
[4] Handle | Handle to the ADS client |
[8] RDataArray | Type-resolved ADS read array for the LabVIEW™ data type |
[10] RData | Type-resolved ADS read value for the LabVIEW™ data type |