software:qview:qview_6:qcl_library:vi10checkbufferready

Differenze

Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.

Link a questa pagina di confronto

Entrambe le parti precedenti la revisione Revisione precedente
Prossima revisione
Revisione precedente
software:qview:qview_6:qcl_library:vi10checkbufferready [2025/01/15 10:57] – [IMPLEMENTAZIONE] qem214software:qview:qview_6:qcl_library:vi10checkbufferready [2025/04/02 11:29] (versione attuale) qem214
Linea 1: Linea 1:
 ====== VI10CheckBufferReady ====== ====== VI10CheckBufferReady ======
- 
-PRELIMINARE- 
  
 Sostituisce [[software:qview:qview_6:qcl_library:vi10waitbufferreadyusingend|VI10WaitBufferReadyUsingEND]] Sostituisce [[software:qview:qview_6:qcl_library:vi10waitbufferreadyusingend|VI10WaitBufferReadyUsingEND]]
Linea 16: Linea 14:
  
 ===== IMPLEMENTAZIONE ===== ===== IMPLEMENTAZIONE =====
- 
-FIXME 
  
 **VI10CheckBufferReady (awBuffer, gfState)** **VI10CheckBufferReady (awBuffer, gfState)**
Linea 31: Linea 27:
 //T_TIME00// //T_TIME00//
 <code qcl> <code qcl>
 +;dichiarazione costanti
 +CONST
 +
 +BUFFPLOT_SIZE 500                        ;dimensione del buffer
 +
 ;dichiarazione variabili ;dichiarazione variabili
 GLOBAL  GLOBAL 
  
-gfState    F    ;stato del buffer +gfState    F                               ;stato del buffer 
-phase      B    ;numero dello stato (macchina a stati)+phase      B                               ;numero dello stato (macchina a stati) 
 + 
 +;dichiarazione array 
 +ARRGBL 
 + 
 +agwBuffPlotDemo11    W    BUFFPLOT_SIZE    ;buffer per VectorImage 
  
 SUB DRAW SUB DRAW
Linea 42: Linea 48:
  NOP   NOP
  CASE 1  CASE 1
- VI10InitBuffer(agwBuffPlotDemo11)+ VI10CheckBufferReady(agwBuffPlotDemo11, gfState)
  VI10SetLayer (agwBuffPlotDemo11, 0)   VI10SetLayer (agwBuffPlotDemo11, 0)
  VI10SetBackground (agwBuffPlotDemo11, COLOR.BLUE)  VI10SetBackground (agwBuffPlotDemo11, COLOR.BLUE)
Linea 59: Linea 65:
  phase = 2   phase = 2
  CASE 2   CASE 2
- VI10CheckBufferReady(agwBuffPlotDemo11) + VI10CheckBufferReady(agwBuffPlotDemo11, gfState
  IF NOT gfState  IF NOT gfState
  VI10SetLayer(agwBuffPlotDemo11, 1) ;- LAYER 1 (one)   VI10SetLayer(agwBuffPlotDemo11, 1) ;- LAYER 1 (one) 
Linea 74: Linea 80:
  ENDIF   ENDIF
  CASE 3  CASE 3
-            VI10CheckBufferReady(agwBuffPlotDemo11) +        VI10CheckBufferReady(agwBuffPlotDemo11, gfState
- IF result+     IF NOT gfState
      phase = 4      phase = 4
      ENDIF       ENDIF
  CASE 4  CASE 4
- phase = 0+     phase = 0
  ENDSWITCH  ENDSWITCH
 ENDSUB ENDSUB
 </code> </code>
- 
-=== Note === 
- 
-  * La funzione può interrompere l'esecuzione del task e, nel ciclo successivo, farlo ripartire dalla prima istruzione. 
  
  • Ultima modifica: 2025/01/15 10:57