LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

vi on remote server

Hi
 
I am trying to run an executable from a web page. The executable resides on the server and I want to access data on the server also from the executable.
 
What in the source  code do I put for the path to access the data on the server?
 
Thank you and smile.Smiley Happy
0 Kudos
Message 1 of 2
(2,658 Views)
So just to be clear, the executable and the data it is accessing are on the same computer right? The only thing you need to be concerned about is generating a path to the data that works in either development or executable form. The problem that many people run into is that they try to locate the file relative to the VI's location - which logically changes in an executable.

The other thing to avoid is hard coding the path in the code - a far better approach if you have a path that can't be referenced to any known location on disk is to save that path in the application's ini file. Whether an executable or a development system, this file is always there and always in the same place logically. LV ships with VIs for reading and writing ini file keys in a structured way.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 2
(2,653 Views)