LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

can I store local settings in a built labview application?

I want to store local information about the PC (eg test station number) and save this as the a default value inside a built application. Is there anyway I can enter this value on installation of the application? I'm in Labview 7
0 Kudos
Message 1 of 2
(2,476 Views)
As far as I know if you want this to be part of the installer script, for the installer that comes with LabVIEW, the answer is no. However there are many other ways of achieving what you are asking for.

1. I am sure you can find an installer that supports this that you could use instead. More work on your part.
2. You can include a configuration file of your choice in the build. This would mean a custom build for every machine.
3. Same as bullet 2 but manual place a file with the test station number that the program querries.
4. The most automated approach, and the one I would personally recommend, is to in the OS name your machine based on the test station number. Your program can then simply querry the OS for the computer name (host name). There is an
Example Program in LabVIEW that is already written for you that does this. It's fairly straight forward its a simple dll function call to the Windows API (hostname.dll). To find this example follow these steps.
a) Select 'Help' in the menu bar
b) Select Example Finder
c) Select the Search Tab
d) Enter 'windows' in the 'Enter keyword(s) field.
e) You should find hostname.vi in the result table

Hope this helps

-Christer
0 Kudos
Message 2 of 2
(2,476 Views)