DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use VBScript in LabView?

I'm a newer, and I don't know what is VBScript, why we use it, and How to use VBScript in LabView?
 
Thanks for any reply!
 
yangafreet
0 Kudos
Message 1 of 3
(4,046 Views)
Hi yangafreet,
VBS is short for Visual Basic Script. It is an easy to learn scripting language with somewhat limited functionality (it is a subset of the VBA you find as a macro language in Microsoft Office applications).
We are using VBS as a scripting language to automate and customize DIAdem. There is a Teachin Mode available to record scripts while working with DIadem, you can use the Microsoft VBS debugger to debug scripts and you can create a so called scriptable user dialog (sud) with the sud editor in DIAdem, that is a customized user dialog which can call scripts.

Ususally you would not need to include VBS code into LabVIEW, since LabVIEW is a programming langue itself, but of course there is an exception and sionce you posted that question in the DIAdem thread it may apply to you:

If you want to start a VB Script that is executed in the DIAdem environment there are two ways in whioch you can do that. Firstly, you can use the functions of the LabVIEW DIAdem Connectivity Toolset. That is a set uf VIs which allow you to call and control DIAdem from LabVIEW. You can transfere Data as well as call DIAdem commands and scripts. You can download the toolset for free.
Secondly, you can use the DIAdem report Express VI which installs automatically with LabVIEW. There is one example that shows you how this VI can be used to call a VBS, please refer to .\National Instruments\LabVIEW 8.5\examples\reports\DIAdem\DIAdem Report Express VI.llb\Using an AutoSequence.vi

Message Edited by IngoS on 08-27-2007 09:30 AM

Ingo Schumacher
Systems Engineering Manager CEERNational Instruments Germany
0 Kudos
Message 2 of 3
(4,036 Views)
Thanks!
0 Kudos
Message 3 of 3
(4,016 Views)