Skip to content

Commit 5f31753

Browse files
committed
### 5.2 Cluster 1D Array to CSM API String.vi
1 parent 9655f96 commit 5f31753

File tree

5 files changed

+47
-0
lines changed

5 files changed

+47
-0
lines changed
-37.2 KB
Binary file not shown.

Example/Supported Datatype Examples/5.2 1D-Cluster to CSM API String.vi renamed to Example/Supported Datatype Examples/5.2 Cluster 1D Array to CSM API String.vi

64.2 KB
Binary file not shown.

Example/Supported Datatype Examples/5.3 2D-Cluster to CSM API String.vi renamed to Example/Supported Datatype Examples/5.3 Cluster 2D Array to CSM API String.vi

65.5 KB
Binary file not shown.
130 KB
Binary file not shown.

help/NEVSTOP/Communicable State Machine(CSM)/Examples/Addons - API String Arguments Support(CN).md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,53 @@ API String Enum 定义为 [索引编号(index)][分隔符(separator)][枚举字
204204
字符串 "9 - CCCC" 将转换为 Enum(9 - CCCC),数字值为 2
205205
```
206206

207+
## Array 数据类型的支持
208+
209+
### 5.1 CSM API String to Array.vi
210+
211+
#### Overview
212+
213+
本范例用于演示 API String 对于数组类型的支持。
214+
215+
#### Introduction
216+
217+
API String中对于Array 的定义,逗号(,) 用于元素分隔,分号(;) 用于行分隔。方括号([]) 用作边界符号。对于非复杂的混合数据类型,方括号可以省略。
218+
219+
示例:
220+
221+
- `a,b,c,d,e` `[a,b,c,d,e]``[a;b;c;d;e]` 都表示一个包含5个元素的数组:
222+
- `a1, b1, c1, d1, e1; a2, b2, c2, d2, e2``[a1, b1, c1, d1, e1; a2, b2, c2, d2, e2]` 表示一个 2×5 的二维数组
223+
224+
特殊情况说明:
225+
226+
- 空字符串将转换为原型(Prototype)的输入值。
227+
228+
#### Steps
229+
230+
- step1: 空字符串转换为原型(Prototype)的输入值
231+
- step2: 一维数组转换
232+
- step3: 二维数组转换
233+
234+
### 5.2 Cluster 1D Array to CSM API String.vi
235+
236+
#### Overview
237+
238+
本范例用于演示 Cluster 1D Array 的 CSM API String表达。
239+
240+
#### Introduction
241+
242+
Array 是一种复合数据类型,可能包含不同的数据类型。其中以 Cluster 最为复杂,本范例将展示1D Cluster Array 的 CSM API String 表达字符串。
243+
244+
### 5.3 Cluster 2D Array to CSM API String.vi
245+
246+
#### Overview
247+
248+
本范例用于演示 Cluster 2D Array 的 CSM API String表达。
249+
250+
#### Introduction
251+
252+
Array 是一种复合数据类型,可能包含不同的数据类型。其中以 Cluster 最为复杂,本范例将展示2D Cluster Array 的 CSM API String 表达字符串。
253+
207254

208255

209256

0 commit comments

Comments
 (0)