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

From Neos Wiki
Jump to navigation Jump to search
(Created page with "== Usage == ソース入力とHookedValue出力は未設定のダミー型で始まり、これらのいずれか、またはDriveTargetが設定されると、ノードは適...")
Line 1: Line 1:
 
<languages></languages>
 
<languages></languages>
'''Drive''' ノードは、StartDriveにインパルスを受信すると、入力ソース値で参照されたDriveTargetの値の上書きを開始します。StopDrivingにインパルスを受信すると、DriveTargetの値の上書きを停止します。
+
{{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
 +
}}
  
 +
<div class="mw-translate-fuzzy">
 
<!--[[File:|border|256px|right]]-->
 
<!--[[File:|border|256px|right]]-->
 +
</div>
  
 +
<div class="mw-translate-fuzzy">
 
== Inputs & Outputs ==
 
== Inputs & Outputs ==
 
{| class="wikitable"
 
{| class="wikitable"
Line 24: Line 39:
 
| [[:Category:Types:Dummy|(dummy)]]
 
| [[:Category:Types:Dummy|(dummy)]]
 
|}
 
|}
 +
</div>
  
 +
 +
The <code>OnStartDrive</code> output fires an impulse whenever an impulse arrives at the <code>StartDrive</code> input. This continues the impulse chain which arrived at <code>StartDrive</code>.
 +
 +
 +
The <code>OnStopDrive</code> output fires an impulse whenever an impulse arrives at the <code>StopDrive</code> input. This continues the impulse chain which arrived at <code>StopDrive</code>.
 +
 +
 +
The <code>OnHook</code> fires an impulse whenever the <code>DriveTarget</code> is driven with the <code>Source</code> value and another source (e.g. a [[Write (LogiX node)|Write]] node or [[ButtonValueSet (Component)|ButtonValueSet]] component) attempts (but is not able) to overwrite the value.
 +
 +
 +
The <code>IsDriving</code> output is True while the <code>DriveTarget</code> is driven with the <code>Source</code> value, otherwise False.
 +
 +
 +
The <code>HookedValue</code> output provides the value which another source attempted to set the <code>DriveTarget</code> to when an impulse is fired from <code>OnHook</code>. The value is only available for the duration of the impulse chain started from <code>OnHook</code>.
 +
 +
 +
Note that, when an impulse is received at <code>StartDrive</code> the drive target will become driven by the <code>Source</code> value regardless of whether it was already driven by some other source i.e. control of the target value is overridden.
 +
 +
<div class="mw-translate-fuzzy">
 
{| class="wikitable"
 
{| class="wikitable"
 
|+Outputs
 
|+Outputs
Line 56: Line 91:
 
| [[:Category:Types:Dummy|(dummy)]]
 
| [[:Category:Types:Dummy|(dummy)]]
 
|}
 
|}
 +
</div>
  
[[File:LogiX.Actions.Drive.jpg|300px|Drive node]]
+
<div class="mw-translate-fuzzy">
 
 
{{:LogiX:Driving{{#translation:}}|Driving}}
 
 
 
 
== Usage ==
 
== Usage ==
 
ソース入力とHookedValue出力は未設定のダミー型で始まり、これらのいずれか、またはDriveTargetが設定されると、ノードは適切な型に再設定されます。TargetValueによって参照される値が別のドライブノードを含む別のソースによって上書きされている場合、StartDriveでインパルスを受信すると、前の上書き設定は新しいドライブソースによって上書きの設定が上書きされます。ドライブノードがDriveTargetにアクティブな上書き先を設定し、その値への書き込みを試みると、OnHookからインパルスが発射され、HookedValue出力はターゲットに書き込まれたであろう値を提供します(OnHookからのインパルスチェーンの間は利用可能)。OnStartDriveとOnStopDriveは、それぞれStartDriveとStopDriveでのインパルスの結果として上書き動作が正常に起動または停止したときにインパルスを発生させます。
 
ソース入力とHookedValue出力は未設定のダミー型で始まり、これらのいずれか、またはDriveTargetが設定されると、ノードは適切な型に再設定されます。TargetValueによって参照される値が別のドライブノードを含む別のソースによって上書きされている場合、StartDriveでインパルスを受信すると、前の上書き設定は新しいドライブソースによって上書きの設定が上書きされます。ドライブノードがDriveTargetにアクティブな上書き先を設定し、その値への書き込みを試みると、OnHookからインパルスが発射され、HookedValue出力はターゲットに書き込まれたであろう値を提供します(OnHookからのインパルスチェーンの間は利用可能)。OnStartDriveとOnStopDriveは、それぞれStartDriveとStopDriveでのインパルスの結果として上書き動作が正常に起動または停止したときにインパルスを発生させます。
 
+
</div>
== Examples ==
 
[[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:Actions{{#translation:}}|Drive]]
{{:NodeMenu-Actions{{#translation:}}}}
+
{{NodeMenu-Actions{{#translation:}}}}

Revision as of 20:41, 6 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

Inputs & Outputs

Inputs
Color Label Type
StartDrive Impulse
StopDrive Impulse
Source (dummy)


The OnStartDrive output fires an impulse whenever an impulse arrives at the StartDrive input. This continues the impulse chain which arrived at StartDrive.


The OnStopDrive output fires an impulse whenever an impulse arrives at the StopDrive input. This continues the impulse chain which arrived at StopDrive.


The OnHook fires an impulse whenever the DriveTarget is driven with the Source value and another source (e.g. a Write node or ButtonValueSet component) attempts (but is not able) to overwrite the value.


The IsDriving output is True while the DriveTarget is driven with the Source value, otherwise False.


The HookedValue output provides the value which another source attempted to set the DriveTarget to when an impulse is fired from OnHook. The value is only available for the duration of the impulse chain started from OnHook.


Note that, when an impulse is received at StartDrive the drive target will become driven by the Source value regardless of whether it was already driven by some other source i.e. control of the target value is overridden.

Outputs
Color Label Type
DriveTarget IField<T>
OnStartDrive Impulse
OnStopDrive Impulse
OnHook Impulse
IsDriving Boolean
HookedValue (dummy)

Usage

ソース入力とHookedValue出力は未設定のダミー型で始まり、これらのいずれか、またはDriveTargetが設定されると、ノードは適切な型に再設定されます。TargetValueによって参照される値が別のドライブノードを含む別のソースによって上書きされている場合、StartDriveでインパルスを受信すると、前の上書き設定は新しいドライブソースによって上書きの設定が上書きされます。ドライブノードがDriveTargetにアクティブな上書き先を設定し、その値への書き込みを試みると、OnHookからインパルスが発射され、HookedValue出力はターゲットに書き込まれたであろう値を提供します(OnHookからのインパルスチェーンの間は利用可能)。OnStartDriveとOnStopDriveは、それぞれStartDriveとStopDriveでのインパルスの結果として上書き動作が正常に起動または停止したときにインパルスを発生させます。

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