Has anyone successfully called scripts from an external program?
I'm following the example in the users guide, under Using SystemVue --> Scripts --> Example Running a Script from Microsoft Excel.
I added GENESYS as a reference under Tools --> References (within Visual Basic), and I believe the fact that GENESYS was listed there indicates that the COM server is registered properly.
However, when I try to run the example code:
I get the following error with the "CreateObject" call:
I tried to verify that the COM server was registered by running the commands
SystemVue.exe /unregserver
and
SystemVue.exe /regserver
However, in both cases, I get the following error:
My account has administrator access. Any ideas? I'm wondering if this is a SystemVue problem, or something specific to my installation.
Thank you.
I'm following the example in the users guide, under Using SystemVue --> Scripts --> Example Running a Script from Microsoft Excel.
I added GENESYS as a reference under Tools --> References (within Visual Basic), and I believe the fact that GENESYS was listed there indicates that the COM server is registered properly.
However, when I try to run the example code:
I get the following error with the "CreateObject" call:
I tried to verify that the COM server was registered by running the commands
SystemVue.exe /unregserver
and
SystemVue.exe /regserver
However, in both cases, I get the following error:
My account has administrator access. Any ideas? I'm wondering if this is a SystemVue problem, or something specific to my installation.
Thank you.
This is Mark from Agilent SystemVue factory support team. Thanks for submitting your question to the forum.
I wonder if even if you are the Administrator of your workstation, on OS like Win7 if you open default command prompt it does not have administrative priviledges attached to it.
Let's try starting from a known state, by doing the following to make sure you are excercising the VB script as intended:
1. From Task Manager, for any open instances of SystemVue.exe, hit "End Process" ... start from known state.
2. As per http://windows.microsoft.com/en-US/windows7/Command-Prompt-frequently-asked-questions, start your command prompt with administrator priviledges... (Start/ in search box type 'ommand prompt'/ right-click on Command Prompt in the list and choose "Run as administrator")..
3. As per http://edocs.soco.agilent.com/display/sv201110/Calling+Scripts+From+External+Programs#CallingScriptsFromExternalPrograms-RegistertheSystemVueCOMInterface first un-register the SystemVue.exe to be clear, then try to register it again from this known state...
4. Now, from your VB Script editor, run the snippet of code again... Note, I added the "comServer.Application.Visible = True" line to the script to make sure SystemVue comes up visible, other wise it will run in the background invisible and you will only know an instance of it started from this simple script of you look in Task manager:
Sub myScript()
Dim comServer As GENESYS.Application ' Declare variable that references our COM server
Set comServer = CreateObject("Genesys.Application") ' Open an instance of the application
comServer.Application.Visible = True
End Sub
This should work. If not, please feel free to contact your local Agilent EEsof support hotline and Agilent EEsof technical support team can help you more directly. If you don't know how to contact your local EEsof support, you can start from http://www.home.agilent.com/agilent/contactInformation.jspx?cc=US&lc=eng&nid=-34360.0.00&pageMode=SS.