LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Use VBS in labview

Hi, I would like to know if it's possible to use a VBS with LabVIEW 8.
0 Kudos
Message 1 of 13
(11,316 Views)
There's way too many acronyms in this business. Could you explain what VBS stands for?
0 Kudos
Message 2 of 13
(11,278 Views)

VBS stands for VBScript.

Actually, I'm trying to call a VBScript from ISriptControl wich is an ActiveX controll.

0 Kudos
Message 3 of 13
(11,271 Views)
How about just using the Windows Scripting Host app, wscript.exe? You can just call this via the System Exec function that ships with LabVIEW. No ActiveX necessary.
0 Kudos
Message 4 of 13
(11,259 Views)
By the way, are you seeing this bug? If so, just do what the article says, and write a null string to the "Language" property and then set it to "VBScript". For example, the following little bit works:


Message Edited by smercurio_fc on 08-09-2006 12:49 PM

Message 5 of 13
(11,256 Views)

Yeah, thanks. I was actually wondering what to do with this bug

Thanks again

0 Kudos
Message 6 of 13
(11,249 Views)

Does this still work in 2013? I get this error:

 

"Error 97 occurred

Possible reason(s):

LabVIEW:  A null or previously deleted refnum was passed in as an input."

Example.png

 

Probing the refnum control provides "0" and the class selected is "MSScriptControl.IScriptControl"

 

Using: LabVIEW Version 11.0.1 (32-bit)

 

-labviewz

 

0 Kudos
Message 7 of 13
(10,322 Views)

Maybe it to late but there is a code I used to execute a VB script

 

04-07-2013 5-43-50 PM.png

LabVIEW ChampionArchitect
0 Kudos
Message 8 of 13
(10,255 Views)

Where do you get the MSscriptControl and IScriptControl?

0 Kudos
Message 9 of 13
(10,154 Views)

There is a couple of step to get the right automation Refnum:

04-09-2013 1-45-52 PM.png

 

Let me know if you need more explanation

 

LabVIEW ChampionArchitect
Message 10 of 13
(10,132 Views)