Difference between revisions of "For (LogiX node)/ja"

From Neos Wiki
Jump to navigation Jump to search
(Created page with "<code>LoopIteration</code>の出力は、インパルスを順次出力し、出力した総数が <code>Count</code> 入力と等しくなるまで続けます。<code>LoopIt...")
 
(13 intermediate revisions by 2 users not shown)
Line 16: Line 16:
 
== 使用方法 ==
 
== 使用方法 ==
 
<code>Count</code>入力は、<code>LoopIteration</code>出力から何回インパルスが出力されるかを決定するものです。この値は、<code>LoopStart</code>インパルス連鎖が完了した直後、<code>LoopIteration</code>からインパルスが出力される前に評価されることに注意してください。
 
<code>Count</code>入力は、<code>LoopIteration</code>出力から何回インパルスが出力されるかを決定するものです。この値は、<code>LoopStart</code>インパルス連鎖が完了した直後、<code>LoopIteration</code>からインパルスが出力される前に評価されることに注意してください。
 
  
 
<code>Reverse</code>入力は、<code>Iteration</code>出力値を<code>LoopIteration</code>ごとに増加させるか減少させるか制御します。デフォルトはFalseで、<code>Iteration</code>は動作するたびに増加します。
 
<code>Reverse</code>入力は、<code>Iteration</code>出力値を<code>LoopIteration</code>ごとに増加させるか減少させるか制御します。デフォルトはFalseで、<code>Iteration</code>は動作するたびに増加します。
  
 +
* <code>LoopStart</code>出力は、<code>Run</code>へインパルスを入力した後、1回インパルスを出力します。インパルス連鎖は、<code>LoopIteration</code>からインパルスが出力される前に完了します。
  
<code>LoopStart</code>出力は、<code>Run</code>へインパルスを入力した後、1回インパルスを出力します。インパルス連鎖は、<code>LoopIteration</code>からインパルスが出力される前に完了します。
+
* <code>LoopIteration</code>の出力は、インパルスを順次出力し、出力した総数が <code>Count</code> 入力と等しくなるまで続けます。<code>LoopIteration</code>から始まる各インパルス連鎖は、次のインパルスが出力される前に完了します。[[Logix:Impulse Splitting/ja|インパルスが分割]]されるノードは、分割されたチェーンの完了を待たずに以降の繰り返しを継続するようになります。
 
 
 
 
<code>LoopIteration</code>の出力は、インパルスを順次出力し、出力した総数が <code>Count</code> 入力と等しくなるまで続けます。<code>LoopIteration</code>から始まる各インパルス連鎖は、次のインパルスが出力される前に完了します。
 
 
 
 
 
The <code>LoopEnd</code> output fires an impulse once the final impulse chain started from <code>LoopIteration</code> has ended.
 
 
 
  
The <code>Iteration</code> output value is either incremented or decremented each time a new impulse is fired from <code>LoopIteration</code>, depending on the value of <code>Reverse</code>. If <code>Reverse</code> is False, <code>Iteration</code> is incremented each time an impulse is fired from <code>LoopIteration</code> starting with the value 0, during the first iteration, and ending with <code>Count</code> - 1 on the final iteration. If <code>Reverse</code> is True, the <code>Iteration</code> value is <code>Count</code> - 1 on the first iteration and decremented each time down to 0 on the final iteration.
+
* <code>LoopEnd</code>出力は、<code>LoopIteration</code>から始まった最終インパルス連鎖が終了すると、インパルスを出力します。
  
 +
* <code>Iteration</code>の出力値は、<code>Reverse</code>の値によって、<code>LoopIteration</code>から新しいインパルスが出力するたびに増加または減少します。<code>Reverse</code> が False の場合、<code>Iteration</code> は <code>LoopIteration</code> からインパルスが発射されるたびに増加し、最初は値0で始まり、最後は<code>Count</code>で終了します。<code>Reverse</code> が True の場合、<code>Iteration</code>の値は、最初は<code>Count</code>で減少し、最後は0になることになります。
  
Note that all impulse chains started from this node effectively continue the one which arrived at <code>Run</code>, meaning that any temporary values from previous nodes are still available. All iterations from <code>LoopIteration</code> complete within a single frame update and therefore this can produce framerate hitches if an excessively demanding computation is performed. There is a failsafe which will put this node into an error state (node visual turns red) if a frame is delayed excessively - this helps prevent complete freezes.
+
* インパルス連鎖は、<code>Run</code>に到達したものを効果的に継続することに注意してください。<code>LoopIteration</code>からのすべてのループは、1つのフレームの更新の中で完了します。フレームが過度に遅延した場合、このノードをエラー状態 (ノードのビジュアルが赤くなる) にするフェイルセーフがあります - これは完全なフリーズを防ぐのに役立ちます。
  
== Examples ==
+
== ==
  
== Node Menu ==
+
== ノードメニュー ==
  
 
[[Category:LogiX{{#translation:}}|For]]
 
[[Category:LogiX{{#translation:}}|For]]
 
[[Category:LogiX:Flow{{#translation:}}|For]]
 
[[Category:LogiX:Flow{{#translation:}}|For]]
{{:NodeMenu-Flow{{#translation:}}}}
+
{{:NodeMenu-Flow}}

Latest revision as of 09:55, 8 November 2022

Other languages:
English • ‎日本語
For
'For' LogiX node
Inputs
  Impulse Run
  Int Count
  Bool Reverse
Outputs
  Impulse LoopStart
  Impulse LoopIteration
  Impulse LoopEnd
  Int Iteration

Forノードは、Runへインパルスを入力したときに、LoopIteration出力から特定の回数だけインパルスを出力するために使用されるノードです。

使用方法

Count入力は、LoopIteration出力から何回インパルスが出力されるかを決定するものです。この値は、LoopStartインパルス連鎖が完了した直後、LoopIterationからインパルスが出力される前に評価されることに注意してください。

Reverse入力は、Iteration出力値をLoopIterationごとに増加させるか減少させるか制御します。デフォルトはFalseで、Iterationは動作するたびに増加します。

  • LoopStart出力は、Runへインパルスを入力した後、1回インパルスを出力します。インパルス連鎖は、LoopIterationからインパルスが出力される前に完了します。
  • LoopIterationの出力は、インパルスを順次出力し、出力した総数が Count 入力と等しくなるまで続けます。LoopIterationから始まる各インパルス連鎖は、次のインパルスが出力される前に完了します。インパルスが分割されるノードは、分割されたチェーンの完了を待たずに以降の繰り返しを継続するようになります。
  • LoopEnd出力は、LoopIterationから始まった最終インパルス連鎖が終了すると、インパルスを出力します。
  • Iterationの出力値は、Reverseの値によって、LoopIterationから新しいインパルスが出力するたびに増加または減少します。Reverse が False の場合、IterationLoopIteration からインパルスが発射されるたびに増加し、最初は値0で始まり、最後はCountで終了します。Reverse が True の場合、Iterationの値は、最初はCountで減少し、最後は0になることになります。
  • インパルス連鎖は、Runに到達したものを効果的に継続することに注意してください。LoopIterationからのすべてのループは、1つのフレームの更新の中で完了します。フレームが過度に遅延した場合、このノードをエラー状態 (ノードのビジュアルが赤くなる) にするフェイルセーフがあります - これは完全なフリーズを防ぐのに役立ちます。

ノードメニュー

Flow
Back Events Boolean Latch Delay Delay With Value Dynamic Impulse Receiver Dynamic Impulse Receiver With Value`1
Dynamic Impulse Trigger Dynamic Impulse Trigger With Value`1 Fire On Change Fire On False Fire On True Fire While True For
If Impulse Demultiplexer Impulse Multiplexer Local Fire On Change`1 Local Fire On False Local Fire On True Local Impulse Timeout
Local Leaky Impulse Bucket One Per Frame Pulse Random Sequence Timer Update Updates Delay
Updates Delay With Value While