‎04-30-2009 12:22 PM
‎04-30-2009 12:28 PM
‎04-30-2009 12:34 PM
‎04-30-2009 12:47 PM
‎04-30-2009 03:17 PM
Here is the response that I got from Cognex when I asked them about how to do this. Do you understand what they are talking about?
In order to do something like this you will probably want to look into the Display Control/SDK for In-Sight. The Display Control gets installed along with In-Sight Explorer and includes a control that can be used in an environment like Labview to communicate with In-Sight sensors while the SDK is an enhanced version of the Display Control that gives you more control and functionality. I am not very familiar with the Labview environment so I will give some code snippets in VB.Net and hopefully you can adjust them as necessary. Specifically I see 3 possible avenues to do this:
1) Using the Display Control you have access to many of the dialog boxes that are used in In-Sight Explorer including the Load Job dialog box. You can spawn this dialog box through a line of code similar to cvsInSightDisplay1.Edit.OpenJob.Execute(). I am not certain if the Labview environment will be able to spawn and display this dialog though.
2) With the addition of the SDK (additional purchase) you can directly access sensor properties including the job. There is a method called LoadJobFile to load jobs from on the sensor and LoadJobFileLocally to load jobs from the host machine. A typical line of code might be cvsInSightDisplay1.InSight.File.LoadJobFile("myjob1.job").3)
If Labview cannot handle the dialogs and the SDK is not an option for you then you may still be able to do this using Native Mode commands. Native Mode commands are sent through a socket on the telnet port (typically port 23). Keep in mind that you will need to handle the username/password prompt and response when you first open the socket before issuing any Native Mode commands. The command to load a job file from the sensor would be the Load File command which would be a string similar to "LF myjob1.job". The Native Mode commands are documented in the In-Sight Explorer help file.
‎04-30-2009
03:46 PM
- last edited on
‎04-07-2025
10:41 AM
by
Content Cleaner
I'm not quite sure if they are using .NET or ActiveX but you can use either in LabVIEW. There are example VIs for both. Telnet is also supported in LabVIEW with the Internet Toolkit.
‎04-30-2009 09:15 PM
If you have the internet toolkit for labview, option 3 is quite simple, and to answer your question, I understand it. 🙂
The real question is do you understand it? 😉
If you have the internet toolkit installed, I can probably walk you through setting up a connection to that socket, though I have a feeling several other people will also jump on it.
‎05-07-2009 09:20 AM