05-11-2009 11:10 AM
Norbert,
Just before reading your post I figured it out. The trick was, and I did not know this, you need to set the VI server properties in the project target, and not the LV IDE options.This causes the correct ini file settings to be included in the build.
Setting a port is not required if it is left as the default .
I still dont really understand what you mean by a reference to its own application, all you are doing is opening a reference to the VI server which is running on localhost. It does not have anything to do with which VI/exe started the server.
The main.ini file does not reallty need any entries
The watchdog.ini contains this:
[Watchdog]
server.tcp.enabled=True
server.vi.access="+*"
Any hey presto it works (as long as you start watchdog.exe first, which is what the code expects).
Attached is the working project + built apps.
Thanks for your continued help in guiding me to the correct answer
05-12-2009 02:11 AM
Neil,
it;s good that your solution works for you. But please note that your approach does only work if you closed the developement system of LV completly. Otherwise, you will open the reference to the developement system and will not be able to access your watchdog.
If that is ok for you, just leave it like it is. If not, you have to define a port other than 3363.
hope this helps,
Norbert
05-13-2009 03:22 AM
Yes, thanks Norbert. I was closing the IDE as then I did not have to change the port. Thanks again for your help.