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

From Neos Wiki
Jump to navigation Jump to search
(Created page with "Drive (LogiX node)")
 
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<languages></languages>
 
<languages></languages>
The '''Drive''' value node will start driving the referenced DriveTarget value with the input Source value when an impulse is received at StartDrive. It will stop driving the DriveTarget if an impulse is received at StopDriving.
+
{{Infobox Logix Node
 +
| Name = Drive
 +
| Image =[[File: DriveValueNode`1Node.png | noframe | 128px | 'Drive' LogiX node ]]
 +
| Input0Type = Impulse | Input0Name = StartDrive
 +
| Input1Type = Impulse | Input1Name = StopDrive
 +
| Input2Type = dummy | Input2Name = Source
 +
| Output0Type = IField`1 | Output0Name = DriveTarget
 +
| Output1Type = Impulse | Output1Name = OnStartDrive
 +
| Output2Type = Impulse | Output2Name = OnStopDrive
 +
| Output3Type = Impulse | Output3Name = OnHook
 +
| Output4Type = Bool | Output4Name = IsDriving
 +
| Output5Type = dummy | Output5Name = HookedValue
 +
}}
  
<!--[[File:|border|256px|right]]-->
+
'''Drive'''ノードは <code>StartDrive</code> でインパルスを受け取ると、入力 <code>Source</code> 値で参照されている <code>DriveTarget</code> を[[Drive/ja|ドライブ]]し始めます。ドライブは<code>StopDrive</code>でインパルスを受信すると停止します。
  
== Inputs & Outputs ==
+
== 使用方法 ==
{| class="wikitable"
+
ノードブラウザからノードが生成されたとき、<code>Source</code>入力は'dummy'のデータ型を持っています。しかし、適切なワイヤが接続されると、ノードは正しい値型に上書きされます。
|+Inputs
 
|-
 
| Color
 
| Label
 
| Type
 
|-
 
| style="background-color:{{Impulse-color}}" |
 
| StartDrive
 
| [[:LogiX:Impulses|Impulse]]
 
|-
 
| style="background-color:{{Impulse-color}}" |
 
| StopDrive
 
| [[:LogiX:Impulses|Impulse]]
 
|-
 
| style="background-color:{{Dummy-color}}" |
 
| Source
 
| [[:Category:Types:Dummy|(dummy)]]
 
|}
 
  
{| class="wikitable"
 
|+Outputs
 
|-
 
| Color
 
| Label
 
| Type
 
|-
 
| style="background-color:{{IField-color}}" |
 
| DriveTarget
 
| [[:Category:Types:IField`1|IField<nowiki><T></nowiki>]]
 
|-
 
| style="background-color:{{Impulse-color}}" |
 
| OnStartDrive
 
| [[:LogiX:Impulses|Impulse]]
 
|-
 
| style="background-color:{{Impulse-color}}" |
 
| OnStopDrive
 
| [[:LogiX:Impulses|Impulse]]
 
|-
 
| style="background-color:{{Impulse-color}}" |
 
| OnHook
 
| [[:LogiX:Impulses|Impulse]]
 
|-
 
| style="background-color:{{Boolean-color}}" |
 
| IsDriving
 
| [[:Category:Types:Bool|Boolean]]
 
|-
 
| style="background-color:{{Dummy-color}}" |
 
| HookedValue
 
| [[:Category:Types:Dummy|(dummy)]]
 
|}
 
  
[[File:LogiX.Actions.Drive.jpg|300px|Drive node]]
+
<code>StartDrive</code>入力にインパルスが到着するたびに<code>OnStartDrive</code>からインパルスを出力します。これは<code>StartDrive</code>に到着したインパルスの連鎖を継続させます。
  
{{:LogiX:Driving{{#translation:}}|Driving}}
 
  
== Usage ==
+
<code>StopDrive</code>入力にインパルスが到達するたびに<code>OnStopDrive</code>からインパルスを出力します。これは、<code>StopDrive</code>に到着したインパルスの連鎖を継続させます。
The Source input and HookedValue outputs start with an unset dummy type, the node will recast to the appropriate type when either of these, or the DriveTarget, is set. If the value referenced by TargetValue is being driven by another source, including another Drive node, when an impulse is received at StartDrive the previous drive will be overridden by the new drive Source. Driven values cannot be written to, however, if a Drive node has set up an active drive on the DriveTarget and an attempt is made to write to that value, an impulse is fired from OnHook and the HookedValue output provides the value which would have been written to the target (available for the duration of the impulse chain from OnHook). OnStartDrive and OnStopDrive fire impulses when a drive is successfully started or stopped as a result of impulses at StartDrive or StopDrive respectively.
 
  
== Examples ==
+
 
 +
<code>OnHook</code> は、<code>DriveTarget</code> が <code>Source</code> 値でドライブされている時に、他のソース(例えば[[Write (LogiX node)/ja|Write]]ノードや [[ButtonValueSet (Component)|ButtonValueSet]]コンポーネント)が値を上書きしようとする(しかしできない)とインパルスを出力します。
 +
 
 +
 
 +
<code>IsDriving</code>出力は、<code>DriveTarget</code>を<code>Source</code>の値でドライブしている間はTrue、それ以外はFalseです。
 +
 
 +
 
 +
<code>HookedValue</code> は、<code>OnHook</code> からインパルスが出力されたときに、他のソースが <code>DriveTarget</code> に設定しようとした値を出力します。この値は、<code>OnHook</code>からインパルスが出力された瞬間のみ有効です。
 +
 
 +
 
 +
<code>StartDrive</code>にインパルスを入力すると、ターゲットが既に他のソースによって駆動されているかどうかに関わらず、<code>Source</code>値によってドライブされるようになることに注意してください、つまりターゲット値のドライブが上書きされます。
 +
 
 +
== ==
 
[[File:LogiX.Actions.Drive.Sample.jpg|900px|Drive example]]
 
[[File:LogiX.Actions.Drive.Sample.jpg|900px|Drive example]]
  
== Node Menu ==
+
== ノードメニュー ==
  
 
[[Category:LogiX{{#translation:}}|Drive]]
 
[[Category:LogiX{{#translation:}}|Drive]]
[[Category:LogiX: Actions{{#translation:}}|Drive]]
+
[[Category:LogiX{{#translation:}}:Actions{{#translation:}}|Drive]]
{{:NodeMenu-Actions{{#translation:}}}}
+
{{NodeMenu-Actions}}

Latest revision as of 11:38, 20 February 2022

Other languages:
English • ‎日本語 • ‎한국어
Drive
'Drive' LogiX node
Inputs
  Impulse StartDrive
  Impulse StopDrive
  dummy Source
Outputs
  IField`1 DriveTarget
  Impulse OnStartDrive
  Impulse OnStopDrive
  Impulse OnHook
  Bool IsDriving
  dummy HookedValue

Driveノードは StartDrive でインパルスを受け取ると、入力 Source 値で参照されている DriveTargetドライブし始めます。ドライブはStopDriveでインパルスを受信すると停止します。

使用方法

ノードブラウザからノードが生成されたとき、Source入力は'dummy'のデータ型を持っています。しかし、適切なワイヤが接続されると、ノードは正しい値型に上書きされます。


StartDrive入力にインパルスが到着するたびにOnStartDriveからインパルスを出力します。これはStartDriveに到着したインパルスの連鎖を継続させます。


StopDrive入力にインパルスが到達するたびにOnStopDriveからインパルスを出力します。これは、StopDriveに到着したインパルスの連鎖を継続させます。


OnHook は、DriveTargetSource 値でドライブされている時に、他のソース(例えばWriteノードや ButtonValueSetコンポーネント)が値を上書きしようとする(しかしできない)とインパルスを出力します。


IsDriving出力は、DriveTargetSourceの値でドライブしている間はTrue、それ以外はFalseです。


HookedValue は、OnHook からインパルスが出力されたときに、他のソースが DriveTarget に設定しようとした値を出力します。この値は、OnHookからインパルスが出力された瞬間のみ有効です。


StartDriveにインパルスを入力すると、ターゲットが既に他のソースによって駆動されているかどうかに関わらず、Source値によってドライブされるようになることに注意してください、つまりターゲット値のドライブが上書きされます。

Drive example

ノードメニュー

Actions
Back -- ++ Drive Drive Playback Tween Write
Write Latch Write Ref Write Ref Latch