Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:software:qview:qview_6:qcl_library:vc10copy [2022/05/03 12:22] – [Example] qem214en:software:qview:qview_6:qcl_library:vc10copy [2022/05/04 11:45] (current) – [Note] qem214
Line 4: Line 4:
  
 **C = **//Calculation functions// **C = **//Calculation functions//
-The VC10Copy function copies the value from a variable to another. 
  
 +The VC10Copy function copies the content of one variable to another one based on a variable that sets its direction.
  
 ===== IMPLEMENTATION ===== ===== IMPLEMENTATION =====
  
-**VC10Copy (val01, val02)**+**VC10Copy (dir, val01, val02)**
  
 Parameters: Parameters:
  
-^ IN/OUT  ^ VARIABLE TYPE   ^ EXAMPLE NAME  ^ DIM                         || +^ IN/OUT   ^ VARIABLE TYPE   ^ EXAMPLE NAME  ^ DIM                                   || 
-|  IN     |  CONST/GLOBAL    dir          |  F/L  | Copy direction variable +|  IN      |  CONST/GLOBAL    dir          |  F/L        | Copy direction variable 
-|  IN     |  SYSTEM/GLOBAL  |  vala          F/B/W/L/   | First variable       +|  IN/OUT  |  SYSTEM/GLOBAL  |  vala          F/B/W/L/ | First variable           
-|  IN     |  SYSTEM/GLOBAL  |  valb          F/B/W/L/   | Second variable      |+|  IN/OUT  |  SYSTEM/GLOBAL  |  valb          F/B/W/L/ | Second variable          |
  
 +**Direction table**
  
 +|dir = 1| val**a** ->   val**b**| 
 +|dir = 0| val**b** ->   val**a**|
 === Example === === Example ===
  
Line 51: Line 54:
 === Note === === Note ===
  
-  * The function +  * This function is usually used, for example, to temporarily copy a value to a supporting variable and then compare it at the end of an operation.
  • Last modified: 2022/05/03 12:22