09-09-2005 10:25 AM
09-12-2005 10:09 PM
09-13-2005 02:20 AM
09-13-2005 08:38 AM
Hi Roger,
Wow, that's frustrating. I typed in a long answer, and it showed up in the preview and everything, but now it's gone! Use the below code with the original Test.vi instead of the built executable. Once we get that to work, we can bug the LV guys to see how to call a LV executable with VI Server. Te "123" is the integer value you want to pass to the VI input.
Dim lvapp, vi, viPath, paramName(1), paramVal(1)
Set lvapp = CreateObject("LabVIEW.Application")
viPath = "C:\TEMP\Test.vi"
Set vi = lvapp.GetVIReference(viPath)
vi.FPWinOpen = True
paramName(0) = "In"
paramVal(0) = 123
paramName(1) = "Ut"
Call vi.Call(paramName, paramVal)
Call lvapp.Quit()
MsgBox "Parameter1 Value = " & paramVal(1)
09-13-2005 10:31 AM
09-15-2005 12:16 AM
Hi Roger,
With that much data and your individual file size < 2GB, I'm going to suggest that you use the DAT file format. DIAdem has splendid data reduction and time slice windowing functionality, but only for data sets that have a DAT header. I'd recommend you stream the binary SGLs to disk with LabVIEW file I/O functions and use the DAT header VIs in the LabVIEW-DIAdem Connectivity VIs to create a DAT header to match the 0.7 GB binary data file. Note that the DAT header file can have implicit channels for data measured at constant time intervals-- this will also save space.
I'm glad to hear that the VBScript is now working. Do we still need to figure out the ActiveX calling of a VI in a built executable?
Brad Turpin
DIAdem Product Support Engineer
National Instruments
10-10-2005 07:58 AM
10-11-2005 01:35 PM
Hi Vishal.,
I do NOT recommend embedding AxtiveX calls to the VI Server inside a VBScript DataPlugin. If this is a project that must be solved with DIAdem 9.x, then I recommend running a VBScript from a menu and using a file dialog to run the LabVIEW code. If you can wait for DIAdem 10.x (DIAdem 10 went Beta last week), then you can start prototyping a G-code DataPlugin, which will have roughly the same quasi-feature status in DIAdem 10 that GOOP had in LabVIEW 7.x.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
10-12-2005 06:02 AM
10-12-2005 08:53 AM