07-06-2005 08:51 AM
07-06-2005 09:23 AM
I don't know whether the issues are related but I had some problems with some example DIAdem-LABview vis recently. The issue was traced to my version of DIAdem. You might need to download Service Pack 2 for DIAdem. This is really a full install but did solve my problem.
Jim West
Summitek Instruments
07-06-2005 09:30 AM
07-06-2005 10:05 AM
07-27-2005 04:49 AM
Hello Roger,
Do you still experience problems with this issue? If so have you tried to download the latest SP for DIAdem? It seems like you have already installed SP2 but in June we also released a SP2b version that requires that you have SP2 installed. This SP release might solve the issues you are experiencing.
Regards,
Jimmie A.
Applications Engineer, National Instruments
08-01-2005 04:13 AM
08-01-2005 08:57 AM
08-01-2005 09:40 AM - edited 08-01-2005 09:40 AM
Message Edited by Roger Isaksson on 08-01-2005 09:41 AM
08-02-2005 08:38 AM
Hi Roger,
I meant to run only the part of the VBScript that actually instantiates and uses the LabVIEW and VI objects, not the other parts that are DIAdem-specific (such as menus). DIAdem-specific commands and variables will not run in a Windows Scripting host. I still maintain that this is a LabVIEW question, and I remember once hearing the answer but unfortunately don't remember what it was. It is a little tricky to build an ActiveX executable and call it through ActiveX from another application.
The below code is what I had in mind. You need to edit the path to the executable, and you need to change the names of the control [paramName(0)] and the indicator [paramName(1)]. If your VI has more than one control / indicator which you want to address, you will have to make the paramName and paramVal arrays bigger.
Dim lvapp, vi, viPath, paramName(1), paramVal(1)
Set lvapp = CreateObject("LabVIEW.Application")
viPath = "Insert directory path here\BuiltExecutable.exe"
Set vi = lvapp.GetVIReference(viPath)
vi.FPWinOpen = True
paramName(0) = "Parameter0 Name"
paramVal(0) = "Parameter0 Value"
paramName(1) = "Parameter1 Name"
Call vi.Call(paramName, paramVal)
Call lvapp.Quit()
MsgBox "Parameter1 Value = " & paramVal(1)
Let me know what happens with this code, modified, and run in Windows Explorer,
Brad Turpin
DIAdem Product Support Engineer
National Instruments
09-09-2005 10:05 AM - edited 09-09-2005 10:05 AM
Message Edited by Roger Isaksson on 09-09-2005 10:22 AM
Message Edited by Roger Isaksson on 09-09-2005 10:22 AM