09-29-2009 02:47 AM
Hello, I would configure my system for an automatic startup.
I have a SmartCamera 1744SC.
I had set the correct inspection on the "Target Option" -> Startup....
But when I launch Vision Builder 3.6, the software automatically start with the execution target : Smart Camera Emulator. In my case, I need to start with the execution Targer : 192.168.1.3-NI-1744SC.
I don't know how I can select this target.... into the VisionBuilder.ini ?????
Hope somebody could help me.
Thanks...
mf
Solved! Go to Solution.
09-29-2009 03:19 PM
Setting the application as the start-up app means that when the smart camera powers up, it will start that inspection. That has nothing to do with what happens when you open Vision Builder AI on the development PC.
This is great for many industrial applications that will run headless. You just supply power to the NI Smart Camera and it boots into a working inspection.
Regarding how to make the Vision Builder AI application load and immediately connect to that network target, I'm not sure there is a way. Once you have connected to the Smart Camera once, it should appear in the "Select Network Target" dropdown box on the Vision Builder AI splash screen. It's really just 1 more click than the standard startup at that point.
Regards,
-Matt at Cyth Systems
09-30-2009 04:38 AM
Hi,
please see the KB below.
http://digital.ni.com/public.nsf/allkb/33364C17A30E3268862570890079DBD6?OpenDocument
I think this section is interesting for you.
4. Tell VBAI to run the dummy inspection when started. First, save your dummy inspection. Now choose "Options" from the Tools menu. Browse to the Inspection tab and check the "Start Inspection when Launched" box. Choose your dummy inspection and click OK.
Regards
Rüdiger
09-30-2009 08:34 AM
The post from Rüdiger is for a startup application on Windows. You correctly setup the startup app on the smart camera, but there is not currently a way to have Vision Builder AI on your PC automatically connect to the target when you launch it (in the future we may support command line arguments to the exe to allow you to pass the IP address you want to connect to when launching). As mentioned before, when you launch Vision Builder AI on your PC, you will have the Smart Camera in the list of available remote targets and when you select it, if the inspection is already running on the target, you will go directly to inspection mode and see the inspection.
You could also have a custom inspection interface used by the inspection on the smart camera with web access granted to other machines so when you launch Internet Explorer, you could make the IP address of your smart camera the default page (i.e. http://<IP Address of smart camera> is all you need) so the inspection UI comes up by default when launching Internet Explorer.
Hope this helps,
Brad
09-30-2009 08:56 AM
Ok, my wish is to be able to start automatically my inspection when the PC is starting up....
I have set up the good inspection in the Target Option -> Startup....
I have put the shortcut of VBAI.exe into the windows XP startup folder.....
So, when I start my computer, VBAI is starting up, but stoping on the following screen (VBAI - WELCOM -> Execution Target).
It is possible to start automatically with the Smart Camera NI-1744SC without manual operation.....
Another point.... if the SmartCamera is running and VBAI is NOT started.... the Inspection is running too ??????
Thanks...
Frederic
09-30-2009 11:30 AM
1) As Brad mentioned, there is no way to have Vision Builder AI connect directly to the smart camera on startup.
2) I would highly recommend (again, as Brad mentioned) that you make a custom user interface for that inspection. Then in the options set up your webserver and set your inspection to be public. Instead of putting Vision Builder AI in your Windows Startup folder, you could put Internet Explorer (or Mozilla, or Chrome, which ever browser you choose) in your startup folder and set the home page to be the IP address of your smart camera and the name of the inspection(i.e. http://<IP Address of smart camera>). This will bring up the inspection and give you control over it just like you want (I think!)
"Another point.... if the SmartCamera is running and VBAI is NOT started.... the Inspection is running too ??????"
-Yes, if you have an application set as a startup application on the smart camera, this code is deployed to the smart camera and will start when the camera gets power (regardless of its connection to your PC). This will also start the web server if you have that option checked in the target options.
Hope this helps!!
-Matt from Cyth
10-02-2009 05:38 AM
Ok, Thanks....
I have create a web server and a custom application interface and I have access with a html page.
Good.
10-02-2009 09:43 AM
Great to hear your application was a success!!
Cheers,
-Matt