Spaces:
Sleeping

File size: 1,125 Bytes
3d893c2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
  "relatedBlocks": [
    "BITSET",
    "BITCLEAR",
    "DOLLAR",
    "REGISTER"
  ],
  "criticalRules": [
    "Type codes: 1=double, 2=int32, 3=uint32, 4=int16, 5=uint16, 6=int8, 7=uint8",
    "exprs[0]=input type, exprs[1]=output type",
    "exprs[2]=0: truncate, 1: round when converting to integer",
    "dataColumns=-2 enables auto-dimensioning for vector/matrix inputs",
    "Converts both data type and can round/truncate values"
  ],
  "description": "Data type converter - converts signal between different numeric types",
  "anomalies": [
    "dataColumns=-2 and dataLines=-1 (auto-dimensioning)",
    "Input dataType=REAL_MATRIX, Output dataType=INT32_MATRIX (type conversion)",
    "No realParameters - uses integerParameters for type code",
    "Special negative values for dimension handling"
  ],
  "name": "CONVERT",
  "commonUses": [
    "Converting between double and integer types",
    "Preparing data for BITSET/BITCLEAR operations",
    "Signal conditioning for hardware interfaces",
    "Type-safe signal routing"
  ],
  "sourceFile": "data/macros/IntegerOp/CONVERT.sci"
}