LabVIEW CLAD 认 证 模 拟 题 详 细 解 答 关 于 CLAD 认 证 考 试 CLAD ( Certified LabVIEW Associate Developer ) 即 LabVIEW 助 理 开 发 工 程 师 认 证, 是 NI LabVIEW 专 业 认 证 的 第 一 步, 获 得 CLAD 认 证 证 明 您 在 LabVIEW 环 境 下 的 专 长, 能 基 本 熟 练 地 在 测 试 和 测 量 应 用 中 运 用 虚 拟 仪 器 技 术 和 产 品 如 您 获 得 了 CLAD 认 证, 可 在 您 简 历 中 使 用 LabVIEW 助 理 开 发 工 程 师 标 志, 为 就 业 与 事 业 发 展 增 加 机 会 CLAD 认 证 模 拟 题 详 细 解 答 1. Where can a VI be documented so that the description appears in the Show Context Help popup window? a. In the VI Properties Documentation window b. Typing in the Show Context Help window c. Creating a free label on the front panel d. Editing the LabVIEW help files 正 确 答 案 : A 分 析 : 在 VI Properties 中 的 Documentation 可 以 输 入 对 此 VI 的 说 明 与 描 述, 保 存 后, 在 查 看 此 VI 时 会 在 Context Help 窗 口 中 显 示 此 条 描 述
2. Can a wire be used to pass data between loops that are intended to run in parallel? a. Yes b. No 正 确 答 案 : B 分 析 : 一 般 使 用 Local Variable 或 者 Queue 等 方 式 实 现 并 行 循 环 间 的 数 据 传 输, 单 纯 的 连 线 是 无 法 做 到 的 3. Which of the following describe a Tab Control? a. A control that outputs ASCII values equal to the selected tab label b. A type of enumerated control c. A control that outputs a cluster of the controls / indicators on the tabs d. A control that outputs the tab order of the controls on the front panel 正 确 答 案 : B 分 析 :Tab Control 即 是 选 项 卡 控 件, 虽 然 在 控 件 中 的 每 一 个 Tab 中 都 能 放 很 多 显 示 控 件, 但 是 其 实 质 是 一 个 枚 举 类 型 (enumerated) 4. Which server must be started before running DataSocket Vis a. HTTP server b. Data Socket server c. FTP server d. OPC server 正 确 答 案 : B 分 析 : 使 用 DataSocket VI 进 行 数 据 传 输 时, 需 要 首 先 将 DataSocket 服 务 器 打 开 5. A coercion dot indicates that: a. The data types are consistent b. A polymorphic operation will be performed on the data c. A data buffer is created to handle data conversion d. Data values are being coerced because they are out of range 正 确 答 案 :C
分 析 :Coercion 是 指 数 据 类 型 的 强 制 转 换, 如 下 图, 当 两 个 类 型 不 一 致 的 数 据 流 连 接 时 ( 如 I8 与 单 精 度 实 型 ), 为 了 进 行 数 据 转 换, 需 要 对 被 转 换 数 据 进 行 一 次 备 仹, 因 此 为 了 提 醒 编 程 者, 需 要 有 一 个 标 记 6. Which of the following statements is true about the following block diagram? a. The loop will execute once and the iteration terminal, will output a value of one b. The loop will execute once and the iteration terminal, will output a value of zero c. The loop will execute infinitely and the program will have to be aborted d. The loop will not execute and the interation terminal, will return a null value 正 确 答 案 : C 分 析 : 观 察 程 序 中 循 环 的 终 止 条 件, 可 以 看 到 此 时 选 用 的 是 Continue If TRUE, 所 以 当 一 个 TRUE 的 常 量 连 在 这 里 后, 循 环 必 定 永 远 无 法 停 止 7. Which of the following cannot be used to transfer data? a. Semaphores b. Queues c. Notifiers d. Local variables
正 确 答 案 : A 分 析 :Semaphore( 信 号 量 ) 只 是 为 了 防 止 竞 争 机 制 (Race Condition) 而 实 现 的, 它 就 像 一 把 钥 匘 一 样, 而 不 带 有 仸 何 数 据 8. Which of the following terminals controls how many times a For loop executes? a. b. c. d. 正 确 答 案 : D 分 析 : 决 定 For 循 环 结 果 循 环 次 数 的 是 N 这 个 控 件 9. You have a control on the front panel of a VI and you need to modify one of its properties at run time. Which of the following is the best approach you would take? a. Create an implicit property node and select the property to modify b. Create a control reference, pass the reference to a property node and select the property to modify c. Create a linked shared variable and select the property to modify the property d. Create a local variable and select the property to modify 正 确 答 案 :A 分 析 : Implicit Property Node 指 的 是 隐 性 属 性 节 点, 由 于 本 题 中 只 需 要 对 一 个 特 定 的 控 件 进 行 属 性 设 置 即 可, 所 以 这 里 最 简 便 的 方 式 就 是 使 用 隐 性 属 性 节 点 即 可 10. Formula nodes accept which of the following operations? a. Basic programming language instructions Input and Print b. Embedding of SubVIs within the Formula Node c. Pre and post increment (++) and decrement (--) as in the C language d. The use of nested Formula Node structures 正 确 答 案 :C
分 析 : 用 排 除 法,a 中 的 Input 与 Print 显 然 无 法 在 公 式 节 点 中 实 现 ; 子 VI 也 一 样 情 况, 对 于 d 来 讲, 在 公 式 节 点 中 嵌 套 公 式 节 点 也 是 不 被 允 许 的, 因 此 只 能 选 C 11. Which of the following is the best method to update an indicator on the front panel? a. Use a Value property node b. Wire directly to the indicator terminal c. Use a local variable d. Use a functional global variable 正 确 答 案 :B 分 析 : 改 变 显 示 控 件 的 值, 题 中 的 四 个 选 项 都 是 可 以 实 现, 这 里 需 要 选 择 最 好 的 方 法 ; 一 般 而 言, 就 程 序 的 运 行 性 能 来 说, 选 用 Property 中 的 Value 最 差, 其 次 为 Local Variable, 最 好 是 直 接 连 控 件 终 端 ; 而 功 能 型 全 局 变 量 (functional global variable) 是 为 了 避 免 竞 争 机 制 而 实 现 的 12. Which of the following functions assembles Cluster elements by their owned labels? a. Unbundle by Name b. Unbundle c. Bundle by Name d. Bundle 正 确 答 案 :C 分 析 : 首 先 通 过 assemble 可 以 知 道 是 应 该 用 Bundle 而 不 是 Unbundle, 其 次 需 要 by their owned labels, 因 此 选 择 C
13. What is the output of the Build Array function in the following block diagram when Concatenate Inputs is selected? a. 1-D Array of {1-4,3,7,-2,6} b. 1-D Array of {1,7,-4,-2,3,6} c. 2-D Array of {{1,-4,3,0},{7,-2,6}} d. 2-D Array of {{1,-4,3},{7,-2,6}} 正 确 答 案 :A 分 析 : 首 先 通 过 assemble 可 以 知 道 是 应 该 用 Bundle 而 不 是 Unbundle, 其 次 需 要 by their owned labels, 因 此 选 择 C 14. What is the output of the Initialize Array function after the following code has executed? a. 1-D Array of {3,3,3,3} b. 1-D Array of {4,4,4} c. 1-D Array of {3,4} d. 1-D Array of {4,3} 正 确 答 案 :A 分 析 : 使 用 Initialize Array 时,Element 输 入 项 定 义 该 Array 的 初 始 值 为 多 少 ( 如 果 不 输 入 则 为 0), 而 Dimension Size 输 入 项 则 表 示 Array 的 各 维 的 长 度
15. What is one disadvantage of using the State Machine VI architecture? a. A State Machine can only traverse states in order b. If two state changes occur at the same time, only the first state change will be handled and the second will be lost c. The diagram becomes significantly larger when changing from a general architecture to a State Machine d. State Machines cannot acquire data or use DAQ functions 正 确 答 案 :B 分 析 : 使 用 有 限 状 态 机 最 大 的 一 个 不 足 乊 处 就 是 无 法 实 现 并 发 ( 即 两 个 状 态 同 时 进 行 ), 因 此 为 了 弥 补 这 一 点,LabVIEW Statechart( 状 态 图 ) 模 块 可 以 做 到 16. What is the best method to stop a While loop on an error condition? a. Compare the Status boolean of an error cluster with a constant and wire it to the Stop terminal b. Connect the error wire directly to the Stop terminal c. Create an Event structure to handle the error event d. Use the Error Handler VI to automatically handle the error 正 确 答 案 :B 分 析 : 如 下 图 所 示, 我 们 可 以 直 接 将 Error Cluster 连 在 停 止 条 件 中, 甚 至 也 可 以 直 接 将 它 连 在 Case 结 构 的 选 项 输 入 中 ; 但 是 在 实 际 编 程 时, 由 于 出 现 Error 并 非 是 停 止 循 环 的 唯 一 条 件, 因 此 一 般 推 荐 用 B 的 方 式
17. What mechanical action of a Boolean would you use to mimic a button on a Windows dialog? a. Switch Until Released b. Switch When Released c. Latch Until Released d. Latch When Released 正 确 答 案 :B 分 析 : Windows 对 话 框 的 按 钮 是 属 于 Switch When Released 的, 对 于 LabVIEW 中 按 钮 的 机 械 动 作 有 6 种, 想 要 知 道 具 体 区 别, 可 以 参 见 自 带 例 程 Mechannical Action of Booleans.vi 18. Which combination of words correctly completes the following statement? Unlike, which display an entire waveform that overwrites the data already stored, update periodically and maintain a history of the data previously stored. a. Graphs; Charts b. Charts; Plots c. Plots; Graphs d. Charts; Graphs 正 确 答 案 :A 分 析 : 这 道 题 很 好 地 道 出 了 这 两 个 波 形 显 示 控 件 的 区 别 19. In what instance would you use the Probe tool rather than Highlight Execution? a. To see the flow of data b. To see the value of a wire in real-time c. To look into a SubVI, as the process Is running d. To slowdown the VI and show data values in wires 正 确 答 案 :B 分 析 : Probe( 探 针 ) 工 具 可 以 帮 助 调 试 LabVIEW 程 序, 监 控 连 线 上 的 值 的 动 态 变 化
20. You customize a control, select Control from the Type Def. Status pull-down menu, and save the control as a.ctl file. You then use an instance of the custom control on your front panel window. If you open the.ctl file and modify the control, does the control on the front panel window change? a. Yes b. No 正 确 答 案 :B 分 析 : Type Def. 只 定 义 数 据 类 型 ( 例 如 一 个 状 态 机 中 的 某 些 状 态 ), 并 不 会 影 响 控 件 外 观 21. You develop a SubVI that only outputs a value and need to use this SubVI in a (calling) VI. Which of the following is the best way to enforce dataflow to control the execution of the SubVI? a. Use the SubVI in a Sequence structure b. Modify the SubVI to have dummy inputs that can be used from the calling VI c. Modify the SubVI to have Error clusters that can be used from the calling VI d. Modify the SubVI to have a global variable and use it from the calling VI 正 确 答 案 :C 分 析 : 首 先 A 是 一 个 可 行 的 办 法, 但 是 由 于 需 要 额 外 使 用 顺 序 结 构 所 以 不 算 是 最 佳 ;B 和 D 相 对 A 来 讲 更 为 不 可 行 ; 而 C 是 作 为 标 准 的 LabVIEW 程 序 推 荐 的 一 种 习 惯
22. What is the value in Shift Register Answer after the following code has executed? a. 16 b. 24 c. 32 d. 10 正 确 答 案 :C 分 析 : 首 先, 由 于 N 端 连 着 常 数 5, 因 此 For 循 环 结 构 将 循 环 5 次, 移 位 寄 存 器 初 始 值 为 1, 则 通 过 5 次 乘 2 乊 后 则 为 32 23. Which Chart update mode should be used to draw new data from left to right, then clear the chart and draw new data again from left to right? a. Strip Chart b. Scope Chart c. Sweep Chart d. Step Chart 正 确 答 案 :B 分 析 : Strip Chart 是 缺 省 的 更 新 模 式, 即 当 显 示 满 后 会 自 动 往 右 移 动 ; 而 Scope Chart 则 是 显 示 满 后 清 空 再 重 新 从 左 到 右 显 示 ;Sweep Chart 则 为 显 示 满 后 从 左 到 右 显 示, 但 不 清 空
24. Which of the following illustrates an advantage of a global variable over a local variable? a. A global variable can pass data between two independent Vis running simultaneously b. Only the global variable can pass array data, local variables cannot c. Global variables follow the dataflow model, and therefore cannot cause race conditions d. Global variable do not require owned labels to operate 正 确 答 案 :A 分 析 : 全 局 变 量 与 局 部 变 量 最 大 的 区 别 就 是, 全 局 变 量 可 以 在 不 同 的 VI 中 传 递 数 据 25. Which timing function (VI) is the best choice for timing control logic in applications that run for extended periods of time? a. b. c. d. 正 确 答 案 :B 分 析 : 注 意 原 题 答 案 有 误,Wait 与 Wait Until 这 两 个 VI 的 区 别 请 看 LabVIEW 网 络 讲 坛 第 二 季,www.ni.com/china/labviewtips 26. Under which of the following conditions does a For loop stop executing? a. When a true value is present at the conditional stop when true terminal b. When the value of the iteration terminal is one less than the value of the count terminal c. When the value of the iteration terminal is one more than the value of the count terminal d. None of the above
正 确 答 案 :B 分 析 : 由 于 Iteration Terminal 是 从 0 开 始 计 数, 因 此 当 它 等 于 Count Terminal -1 时 循 环 即 停 止, 值 得 一 提 的 是, 在 LabVIEW 8.5 乊 后, 针 对 For 循 环 也 特 别 添 加 了 停 止 条 件, 因 此 选 A 选 项 也 正 确 27. You are inputting data that represents a circle. The circle data includes an x position, a y position, and a radius. All three pieces of data are doubleprecision. In the future, you might need to store the color of the circle, represented as an integer. How should you represent the circle on your front panel window? a. Three separate controls for the two positions and the radius b. A cluster containing all of the data c. A type definition containing a cluster d. An array with three elements 正 确 答 案 :C 分 析 : 首 先, 由 于 描 述 一 个 圆 的 要 素 比 较 多 (x,y,radius), 因 此 必 定 需 要 使 用 cluster ( 簇 ), 此 外, 为 了 防 止 乊 后 的 类 型 变 动 ( 例 如 添 加 一 个 color 属 性 ), 因 此 为 了 让 程 序 更 健 壮, 需 要 使 用 Type Definition 28. Which of the following will cause an event to be captured by the LabVIEW Event Structure? a. Changing a value on a Front Panel control via a mouse click b. Update of a Front Panel control using a property node c. Programmatic update of a Front Panel control via a control reference d. Using VI Server to update a Front Panel control 正 确 答 案 :A 分 析 : LabVIEW 事 件 结 构 可 以 捕 捉 到 用 户 在 前 面 板 上 对 控 件 的 操 作, 例 如 Value Change 以 及 Mouse Down 等
29. Which of the following does not conform to data flow programming paradigm? a. Shift Registers b. Tunnels c. SubVIs d. Local Variables 正 确 答 案 :D 分 析 : 四 个 选 项 中, 只 有 局 部 变 量 会 破 坏 数 据 流 结 构 30. You must store data that other engineers must analyze with Microsoft Excel. Which file storage format should you use? a. Tab-delimited ASCII b. Custom binary format c. TDM d. Datalog 正 确 答 案 :A 分 析 :Microsoft Excel 可 以 直 接 打 开 用 Tab 键 隔 开 的 文 本 数 据 文 件, 而 此 类 文 件 在 LabVIEW 中 也 能 轻 松 实 现 数 据 的 保 存 31. What is the result of the following Array addition? a. 1-D Array of {80,20,40,10,-60} b. 1-D Array of {120,30,-60} c. 1-D Array of {120,30} d. 2-D Array of {{120,90,20},{60,30,-40}} 正 确 答 案 :C
分 析 :LabVIEW 中 很 多 运 算 符 都 有 多 态 性, 因 此, 如 果 相 加 两 端 连 的 是 数 组 的 话, 那 么 就 会 自 动 按 照 数 组 的 相 加, 又 由 于 第 一 个 数 组 只 有 2 个 元 素, 所 以 最 终 结 果 的 数 组 就 只 有 2 个 元 素, 将 第 三 个 数 -60 直 接 剔 除 32. Which of the following statement is false? a. A SubVI connector pane defines where to wire inputs and outputs b. The color of a SubVI connector pane terminal matches the data type it is connected to c. You must have an icon/connector to use a SubVI d. A SubVI icon can be edited from the functions palette 正 确 答 案 :D 分 析 : 子 VI 的 图 标 是 直 接 在 该 VI 右 上 角 修 改, 但 不 是 在 函 数 面 板 中 修 改 33. The most efficient method for creating an array is: a. Using a For loop with Auto-indexing b. Placing a build array function in a While loop c. Initializing an array and then replacing elements in a While loop d. Using a While loop with Auto-Indexing 正 确 答 案 :A 分 析 : 参 见 LabVIEW 网 络 讲 坛 第 二 季 第 四 期,www.ni.com/china/labviewtips
34. The following block diagram represents which common type of VI architecture? a. Multiple Case Structure VI b. General VI c. State Machine VI d. Parallel Loop VI 正 确 答 案 :C 分 析 : 此 为 典 型 状 态 机 结 构 35. Which of the following statements is true about the iteration terminal a. It returns the number of times the loop has executed b. It returns the number of times the loop has executed, plus one c. It returns the number of times the loop has executed, minus one d. It returns a constant number 正 确 答 案 :C 分 析 : 循 环 结 构 中 的 Iteration Terminal 是 从 0 开 始 计 数 的
36. Which block diagram would generate the following front panel? a. b. c. d. 正 确 答 案 :A 分 析 : 从 波 形 图 中 可 以 看 到, 一 共 有 9 个 点, 因 此 For 循 环 次 数 为 9, 此 外, 从 横 坐 标 可 以 看 到 是 从 100 开 始, 而 相 隔 为 10, 因 此 选 A
37. Which of the following Block Diagrams could produce this result in Waveform Graph? a. b. c. d.
正 确 答 案 :A 分 析 : 首 先 Iteration Terminal 是 从 0 开 始 计 数,Array Subset 的 Index 输 入 项 表 示 从 第 几 个 开 始, 而 Length 代 表 截 取 几 个 元 素 ; 因 此 综 合 判 断 后, 可 知 是 A 38. If an input name on the Show Context Help window is in bold for a SubVI, which of the following conditions are true? a. Input values must be scalar b. An input is recommended, but not required c. An input is required d. A broken run arrow will result unless the input is wired 正 确 答 案 ( 多 选 ):C D 分 析 : 如 果 在 看 一 个 子 VI 的 连 线 说 明 时, 看 到 粗 体 的 输 入 项, 那 么 该 项 为 必 要 项, 即 如 果 要 该 子 VI 工 作, 这 个 项 必 须 有 值, 否 则 程 序 无 法 运 行 39. Which of the following apply to Property Nodes? a. Property Nodes allow attributes of front panel objects to be programmatically manipulated b. Property Nodes can be used to update the values contained in a front panel object c. More than one Property Node can be used for a single front panel object d. Property Nodes contained in a SubVI will always cause the front panel to be loaded in memory 正 确 答 案 ( 多 选 ):A B C D 分 析 : 以 上 论 述 都 正 确 40. Which VI memory components are ALWAYS resident for a SubVI? a. Data Space b. Front Panel c. Block Diagram d. Code 正 确 答 案 ( 多 选 ):A D 分 析 : 对 于 子 VI 里 说, 它 可 以 不 需 要 Front Panel 以 及 Block Diagram 部 分