hi i have called the labview as below:
Private Sub mnuNIForm_Click()
Dim lvapp As LabVIEW.Application
Dim viPath As Object
Dim vi As LabVIEW.VirtualInstrument
Dim paramNames(4), paramVals(4)
Set lvapp = CreateObject("LabVIEW.Application")
viPath = lvapp.ApplicationDirectory + "\New Folder\WaterLogPage.vi"
Set vi = lvapp.GetVIReference(viPath) 'Load the vi into memory
vi.FPWinOpen = True 'Open front panel
this 2 lines shows some error
viPath = lvapp.ApplicationDirectory + "\New Folder\WaterLogPage.vi"
Set vi = lvapp.GetVIReference(viPath) 'Load the vi into memory
the error is :
run-time error '91';
Object variable or with block variable not set
i dont know wat is the wrong thr i just use the example for the forum..plz help me to solve this..