node-red-contrib-neuralnetwork
Version:
SmartNode node package, provided by MakerCollider
39 lines (34 loc) • 2.33 kB
HTML
<!--
Copyright 2015 Maker Collider
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<script type="text/x-red" data-help-name="dataCollect">
<h3 id="数据采集节点"><a name="数据采集节点" href="#数据采集节点"></a>数据采集节点</h3>
<p>本节点用于采集多个节点的输入数据,并将数据整理为{input:{data},output:{data}} Json格式输出</p>
<h4 id="配置参数"><a name="配置参数" href="#配置参数"></a>配置参数</h4>
<ol>
<li>名称:节点名称</li>
<li>输入参数:作为input的数据内容,要求该参数名称必须与所连接的前一个节点msg.*参数名一致</li>
<li>输出参数:作为output的数据内容,要求该参数名称必须与所连接的前一个节点msg.*参数名一致</li>
<li>保留参数:input与output内容的数据参数个数
<h4><a>例如*</a>:输入设置为3,输出设置为2,最终输出结果为 {'input':{'r':255,'g':255,'b':0},'output':{'yellow':1,'blue':1}}</h4>
</li>
<li>发送指令:该节点前面需要连接一个数据输入节点,该节点的指令名称必须与前节点的msg.*参数名一致,方可将节点所采集的完整数据输出。
</ol>
<h4 id="使用方法"><a name="使用方法" href="#使用方法"></a>使用方法</h4>
<ol>
<li>在<strong>输入参数</strong>中增加并设置要采集的输入数据,需要在前一个连接节点中设定,并保持两参数名一致。</li>
<li>在<strong>输出参数</strong>中增加并设置要采集的输出数据,需要在前一个连接节点中设定,并保持两参数名一致。</li>
<li>在<strong>保留参数</strong>中设定输入输出数据的保留个数。</li>
<li>设置发送指令参数,名称与前一个连接节点的输入参数名一致,最终将采集的完整数据输出。</li>
<li><strong>部署</strong></li>
</ol>
</script>