02-23-2007 04:19 PM
02-27-2007 08:01 AM
03-13-2008 02:59 PM
Not sure if you're still out there, but I wanted to thank you for your help on this. I am finally able to take some time to look into this (a year later) and I have made it work for me. It takes an aweful long time to do though (using the modbus Slave step in VBAI that is). It is unfortunate that you guys do not include it as a feature in VBAI. That is: to just click on the features you wish to monitor and change on the fly without having the user write their own code. Keyence includes it with there software for a couple hundred bucks...all you do is click on the measurements you wish to monitor and update the tolerances as needed while Vision systems are running. Again, not your fault, so thanks for the method. Now I need to work on doing it quicker and making it more efficient. If I could only build a program to automatically do what Keyence does.
Also, is it the same process with 3.0.1? Or is there a better way? I should look at it first and see for myself, but thought I'd ask while I was here.
Also, I have installed 3.0.1 on one of the CVS, of course, now there is 3.5 available. The issues I had last time I replied have been taken care of, however, I wonder if there is anyway to get the inspection selection to occur prior to inspecting rather than after? I tried doing a simple read of ISO 0-4 and transitioning to different states based on that value, however, it overwhelms the processor when I put three of my exiting inspections into one to achieve the desired result. In other word, each inspection would now be a single state within a state diagram that would ideally handle all 10-20 inspections. Probably not being clear, but thought I'd check with you if you're still out there. Thanks again
03-14-2008 10:33 AM
> Not sure if you're still out there, but I wanted to thank you for your help on this. I am finally able to take some time to look into this (a year later) and I have made it work for me. It takes an aweful long time to do though (using the modbus Slave step in VBAI that is).
Reading and writing Modbus registers from VBAI is fast (it is basically writing to memory) and the step returns right away because the communication with the Modbus client (your application that sets the limits) is asynchronous. When using the Modbus slave, you would have to configure a Modbus server in VBAI, which is basically a task running in the background, that waits for Modbus messages from your client. Typically, Modbus is not used for fast communication, and we set the period of the Modbus Server in VBAI to 200ms. This means that the server will handle 5 Modbus queries per second. I am not sure how many queries your client is doing, but that might be the reason why it takes a while to set all the limits you have to set. You can set a key in the Vision Builder.ini file to specify a different period for the Modbus Server. If you're working with a CVS, you need to update the ini file in the C:\VBAI folder on the CVS as well.
In the [Modbus] section, specify a different value for the "LoopRate" key. Relaunch VBAI for the changes to take effect.
If the server is running on a PC, you can reduce the period to 30ms or so.
In your case, since you're using a CVS, we do not recommend you lower it more than 110ms or so. If you go lower, your host might not be able to connect to the CVS anymore or you're going to slow down your inspection significantly because VBAI will spend more time in the Modbus background task.
In VBAI 3.5, there is another way of doing that instead of using Modbus. We introduced a new feature that allows you to create your own inspection interface.
You define it with a LabVIEW VI, by placing controls and indicators (including image display controls) on the front panel of your VI. The controls can be used by all the steps that can use previous measurements, while the indicators on your UI are set by a specific VBAI step. When you switch to inspection mode, you have your custom UI instead of the VBAI predefined one. You can also use the web server feature and use a browser to control the custom UI, instead of VBAI.
Using this model, you would place numeric controls on the UI for the limits, and you would still need to use either the calculator step or Logic Calculator step to verify that results are within tolerances.
Feel free to download the eval version of VBAI 3.5 from our website and try out that feature. We have examples that illustrate that feature as well as some app notes on our web site.
We get numerous feedback about being able to modify the step limits at runtime, and will look into what we can do to make it more easy to do in the future.
> I wonder if there is anyway to get the inspection selection to occur prior to inspecting rather than after?
No. What you can do is specify an empty inspection for the startup one, instead of an inspection that inspects your first product.
Hope that helps.
Feel free to let us know if you have other questions.
Best regards,
Christophe
03-14-2008 11:26 AM
03-14-2008 12:33 PM
03-18-2008 01:04 PM - edited 03-18-2008 01:05 PM
03-18-2008 02:02 PM
03-18-2008 02:25 PM - edited 03-18-2008 02:29 PM
03-18-2008 02:52 PM