音视频技术
直播中

zhoujian_

9年用户 17经验值
擅长:测量仪表 制造/封装 光电显示
私信 关注
[讨论]

如何编写SoundCheck的Custom VIS

经常遇到人家问我,可不可以教我写SoundCheck 的Custom VIs,其实安装位置里面有完整的说明。但是看了教程,编写了还是报错,或者无法添加。我先列一下几点原因,都是经验之谈,甚至我自己编写的时候也有遇到会失败的。
1、labview 版本问题,Labview版本一定要和Soundcheck的开发版本相对应,(注意:开发用的Labview 版本,不是SC 版本),如果不知道看安装位置下文件Readme.txt,里面第一句话就告诉了开发版本与更新内容。同时,labview软件与SC的位数也要对应,32位对应32位,64位对应64位。
2、我们在开发电脑上测试添加sequence的Step 是成功的,但是无labview开发环境的测试电脑上就会失败,因为SC 只是安装了Labview基础引擎或部分模块,复杂的模块没有,所以需要大家就用最简单的模块实现功能,属性节点啥的少用。
3、SC 不同版本之间的CustomVI 不能混用。
4、使用相同控件、函数的VI ,在不同SC版本间(用对应的Labview编辑过的),一个可以,另一个不可以,SC 不同版本的安装模块不一样,会遇到这个状况。
5、实际开发中遇到的问题,可以留言一起讨论。
---------------以下附上说明(不同版本略有差异)-------------------
SoundCheck from Listen, Inc.
Custom VI Instructions, rev. 01-March-2006


INSTRUCTIONS ON MAKING CUSTOM VIS THAT RUN AS STEPS IN SOUNDCHECK SEQUENCES




(If you are viewing this file in Notepad, turn on Word Wrap.)


1. Creating a Custom VI


Make sure the SoundCheck application is closed.  Open your LabVIEW development system.  To develop your own custom vi for SoundCheck 6.1, LabView 7.1 is required (LabView 8.0 can be used if using the "Save for Previous Version" option).


Open the LabVIEW VI template "SoundCheckSystemCustom VIsyour step name here.vi". First of all "Save As" your VI with your custom VI name into the "Custom VIs" folder.  Make sure it has the ".vi" extension (lower case).  And note your VI name, because the step name you create for it must be the same as the VI name (minus the ".vi"), and it's CASE SPECIFIC. For example save it as: 'Sigma extraction.vi'.


Also open the LabVIEW VI template "SoundCheckSystemCustom VIsyour step name here Editor.vi". "Save As" with the same name as your custom vi. Make sure it contains ' Editor.vi' after the custom name. For example, save it as 'Sigma extraction Editor.vi'


Note: These two vis work together within SoundCheck and must be located in the SystemCustom VIs folder. In our example, the 'Sigma extraction Editor.vi' is used to create your custom step, and 'Sigma extraction.vi' is called when your custom step is run in the sequence to execute your custom code.


Follow the instructions highlighted in yellow on the VI diagram, and wire in all your custom code. CAUTION: The curves listed in the 'Curves Generated' array in your custom editor must have exactly the same name as those created by your custom vi (and it's CASE SPECIFIC). This ensures that the placeholder for the curve in the Memory List is filled with the correct data when the sequence is run.


If your VI has any subVIs, make a "...Custom VIssubVIs" folder and put them in there.




2. Using your Custom VIs in a Sequence


Run SoundCheck, and go into the Sequence Editor.  Notice the new Step Category at the bottom of the list:  "Custom".  By default, this list contains only the example step 'Sigma extraction'.  Select "New..." from the Steps menu and enter the step name.  IMPORTANT: The step name should be exactly the custom VI name  minus the ".vi" (e.g., Sigma extraction).


Important note:  if you make your custom VI wait for user interaction, such as clicking a Done button, you must set up that sequence step to be displayed when the sequence runs.  Otherwise, SoundCheck may get stuck inside your VI in an infinite loop.


------------------end----------------------

回帖(2)

刘刚

2022-4-18 10:07:44
看看
举报

溪水难跨

2022-10-19 13:37:08
大佬,方便指导一下码,我写的可以运行,但达不到想要的效果,我QQ1154457298
1 举报
  • zhoujian_: 加你了 ,我的QQ 57947296,请备注:customVI 交流

更多回帖

发帖
×
20
完善资料,
赚取积分