09-28-2017 06:11 AM
Hello every NI maniacs 🙂
I've just written my first project in VBAI, which has only one function (based on built-in TCP/IP server) and sending one simple string to client (based on same PC machine).
I' ve migrated Inspection to Labview and everything was fine (proper comunication) until that moment. When i tried to compile it and make it as a standalone program there is no app.exe server visible to other client.
Working with LV2017, VAQ, VDM...
What Have I Forgotten? Any ideas?
09-28-2017 07:40 AM
Is the exe allowed through the firewall?
Try starting it as administrator might help too, although it shouldn't.
09-28-2017 09:35 AM
Often when you build an exe, the paths may be different. Try putting error checking around where the TCP Server is started to see if any errors occur. Also if VIs are called dynamically, they may not be pulled into your exe unless you explicitly declare them, so make sure any dynamically called VIs are part of your exe. Another option is to use the VBAI API to launch a local VBAI engine, load an inspection, and run it, get images, and results, etc. This will definitely work when built into an exe since it doesn't have the same kind of dynamic calls and static files that may change location when built into an exe.
Hope this helps,
Brad
09-28-2017 10:21 AM
Well, there is another strange thing. I've added to my vbai project one more function - sending from VBAI (over tcp/ip) string to another app (Windows terminal "Hercules")which is acting as server. That solution works after compilation but not completely. So, in that case: vbai is acting properly as a client and doesn't work properly as server.