奥特曼 已写:
大家好!我现在编写一段程序,目的是提供一个程序编制的平台,就是提供给用户一些工步,用户可以自己定制程序,安排好工序后直接生成,意思我们提供的是一个比较灵活的平台。但是我现在不太明白labview该如何根据用户的意思自动添加一些程序,已达到他自己定制程序的目的,希望那位大侠能给点这方面的思路!
用户的意思必须明确(工步的操作和任务是基本明晰的,用来确定你的子程序)
用事件结构或状态机导引子程序,菜单加选项亦可以
你的意思应该是多个工步然后是由用户选取其中的全部或部分
看来比较复杂!
相当于若干个子VI的任意组合后执行!是吗?
不会是那么简单的!
难者不会,会者不难!
谢谢Zou,学习ing!
@奥特曼 wrote:
你好!是的,是任意组合后执行,而且个数也是用户自定义的,但是公步的话是定义好的,从中拿来组合!
You may try using Dynamic VI Calling method...
Please refer to attached. And, in this example, what you need is to have the String Array built according to user configuration.
For example, with Zou's suggestion, the ASCII file that consists of the (Steps) VI names may be read in with Read Text File as Spreadsheet String and convert into String Array... you decide how it is done...
You may also download it from below link until mid-august...
http://lvvilib.com/lvcodes-dynamic-vi-calling.html
(above link will not be removed after mid-august)