Dim F5 as FolderItem
Try
F5 = SpecialFolder.Applications.Child(“gnuplot”).Child(“bin”).Child(“wgnuplot.exe”)
F5.Launch(“Gp.txt”)
Catch e As NilObjectException
MsgBox(“The 32 bit version of Gnu plot must be installed on this system in order to plot top the top speed performance.”)
Return
End Try
End
‘Gp.txt’ is a file next to the executable, in the project folder using a relative path. The code works perfectly after building, but does not work on IDE ‘Run’. I believe the debugger is getting the wrong paths.
I would much prefer to run it in the IDE. It is kind of a pain to rebuild each time I make a project code change.
// assuming that gp.txt has been written to a folderitem obtained via gettemporaryfolderitem
// and that temporary is called gpTemporaryFolderItem
Dim F5 as FolderItem
Try
F5 = SpecialFolder.Applications.Child("gnuplot").Child("bin").Child("wgnuplot.exe")
F5.Launch(gpTemporaryFolderItem.NativePath)
Catch e As NilObjectException
MsgBox("The 32 bit version of Gnu plot must be installed on this system in order to plot top the top speed performance.")
Return
End Try
End