background image

Tutorial 5 — Using the Trajectory Step

Advanced T

ool 

Tu

to

ri

al

s

3

Getting Started with Visionscape GigE Cameras

3-51

FIGURE 3–40.

Trajectory Tutorial Results

Summary of Contents for Visionscape GigE

Page 1: ...Getting Started with Visionscape GigE Cameras 84 111015 02 Rev C v6 0 3 June 2013...

Page 2: ...e are using the names to the benefit of the trademark owner with no intention of infringement Disclaimer The information and specifications described in this manual are subject to change without notic...

Page 3: ...ge Contents 1 3 Components 1 3 PC Requirements 1 4 CHAPTER 2 Setting Up the GigE Camera 2 1 Install Visionscape Software 2 2 Plug In Your USB License Key 2 3 Configure Gigabit Ethernet Adapter s In Yo...

Page 4: ...uirements 2 17 CHAPTER 3 Advanced Tool Tutorials 3 1 Tutorial 1 Defect Detection with Flaw Tool 3 2 Tutorial 2 OCV Fontless Tool 3 13 Tutorial 3 Data Matrix Tool 3 22 Tutorial 4 Using Measurement Tool...

Page 5: ...ons on how to set up and connect Visionscape GigE Camera s to a network Instructions on how to install Visionscape software for use with your Visionscape GigE Camera in a Windows XP Vista 7 equipped P...

Page 6: ...Preface viii Getting Started with Visionscape GigE Cameras...

Page 7: ...can run with several types of devices Visionscape GigE Cameras These are imaging devices that connect to the PC via a Gigabit Ethernet connection All vision processing is performed on the PC Visionsc...

Page 8: ...check them against the System Configuration Sheet If any item is missing or damaged contact your Microscan distributor Important Keep the system configuration sheet You will need to refer to the part...

Page 9: ...eras 1 3 Components In addition to your Vision System you may need the following items which can be ordered directly from Microscan Lenses Lighting Components Strobe Trigger Power and Network Cables N...

Page 10: ...Operating Systems Microsoft Windows XP Professional 32 bit Microsoft Windows Vista 32 bit Microsoft Windows 7 32 bit and 64 bit Hardware Specs Minimum of 1GB memory for Windows XP Minimum of 2GB memo...

Page 11: ...Up the GigE Camera 2 CHAPTER 2 Setting Up the GigE Camera This chapter describes the process of connecting Visionscape GigE cameras to your PC After reading this chapter you will be able to acquire i...

Page 12: ...oftware will not function correctly if it is saved to a location other than N Vscape where N is the selected drive Install Visionscape software by inserting the Microscan Tools Drive into your Windows...

Page 13: ...pecific folder For example version 6 0 1 10 would be installed in the folder 601_10 The installation creates a Program Group named Microscan Visionscape in your Start Menu and icons for FrontRunner an...

Page 14: ...eliability of your GigE system we recommend that you set up a private network using Static IP addresses on the Gigabit Ethernet ports in your PC that will be connected to GigE cameras In this section...

Page 15: ...ionscape GigE Cameras 2 5 The following example shows what the Network Connections window might look like if you have a 4 port Gigabit Ethernet adapter installed in your PC FIGURE 2 3 Network Port Pro...

Page 16: ...he GigE Camera 2 6 Getting Started with Visionscape GigE Cameras Configure Network Properties In the properties window select Internet Protocol TCP IP and then click the Properties button FIGURE 2 4 N...

Page 17: ...he IP address as 192 168 XXX 2 where XXX can be from 1 to 254 192 168 XXX UUU is a local private Class B network The Subnet Mask is set for a Class C Network and the Default gateway is set to the same...

Page 18: ...amera s Connect the included power and Ethernet cables to the back of your Microscan GigE camera FIGURE 2 6 Microscan GigE Camera Connectors Note If you choose not to use the Ethernet cable supplied w...

Page 19: ...irectly to the ports of the Gigabit Ethernet adapter s in your PC If you choose this approach and you are using multiple cameras you will either need to install multiple Gigabit Ethernet adapters in y...

Page 20: ...pplication as well as to check your camera setup When you launch FrontRunner for the first time your GigE cameras will be automatically discovered and configured on the private network set up in the p...

Page 21: ...Device Toolbar at the top of the main window that lists all of the available Visionscape devices A single GigE device named GigEVision1 is created to provide access to all of your GigE cameras Before...

Page 22: ...run on our GigE device Do this by clicking on the Create New Program icon on the toolbar FIGURE 2 11 Create New Job This will create a default job that contains a single Inspection that contains a si...

Page 23: ...irst Picture Setting Up the GigE Camera 2 Getting Started with Visionscape GigE Cameras 2 13 Take a Picture Now that we have a Job loaded FrontRunner should look like this FIGURE 2 12 FrontRunner with...

Page 24: ...gE Cameras You can now take a single picture with your first GigE camera by simply clicking on the Acquire icon on the Setup toolbar FIGURE 2 13 Acquire Or you can activate Live Video mode by clicking...

Page 25: ...t GigE camera If you are using more than one camera and want to check images from additional cameras you have two options 1 Add additional Snapshot Steps to your Job and configure each to connect to y...

Page 26: ...Acquire tab at the top of the properties pane as shown here FIGURE 2 16 Select a Step in the Job List If you look at the Camera Number parameter you will see that Camera1 is currently selected This co...

Page 27: ...and their associated components Ensure that the camera strobe and any other cables are long enough to reach your PC The Ethernet cable can be affected by interference from an electrical transformer or...

Page 28: ...The environment of your PC is important for maintaining a reliable system You should consider the humidity temperature foot traffic and fresh air flow before permanently mounting your system Refer to...

Page 29: ...ery powerful complex and infinitely configurable tool As a result of this flexibility it is not possible to explain and document every possible scenario of creating a Job without the aid of a factory...

Page 30: ...e a masking tool to mask out hide the mask in the foreground and apply the Flaw Tool algorithm on the background The tools we use to solve this inspection problem are a Flaw Tool a StaticMask Tool and...

Page 31: ...en Add to display the Open dialog box Browse for the file text02 tif from Windows It is located at C Vscape Tutorials Samples Tutorials GigE Systems Defect Detection with Flaw Tool Select text02 tif a...

Page 32: ...d 11 Right click Rect Warp select Insert Into and click the Analysis Tools tab Double click on Flaw Tool to insert it into the Rect Warp 12 Highlight Flaw Tool in the Step Tree left pane 13 Adjust the...

Page 33: ...n in Figure 3 2 FIGURE 3 2 Defect Detection Flaw Tool Job Tree allows you to step through your Job as you set up and train each tool A green check mark will appear next to each tool when you click thi...

Page 34: ...gE Cameras 21 To set up the ThreePt Locator you will move and size Find Pin 1 Find Pin 2 and Find Pin 3 Figure 3 3 The outer box is the Find Pin ROI The inner box is the Template Find Pin FIGURE 3 3 F...

Page 35: ...for the three Points Your setup for ThreePt Locator should appear as shown in Figure 3 4 FIGURE 3 4 Setting Up the Three Pt Locator The ThreePt Locator step and the Train button will display a red box...

Page 36: ...ape GigE Cameras A trained ThreePt Locator will appear as shown in Figure 3 5 FIGURE 3 5 Three Pt Locator Trained Observe that the ThreePt Locator has a green check mark in front of it indicating that...

Page 37: ...h Visionscape GigE Cameras 3 9 25 Move and size the Rect Warp ROI so that it encloses the area to be inspected as shown in Figure 3 6 FIGURE 3 6 Rect Warp ROI Positioned 26 Click Observe that Rect War...

Page 38: ...pane as shown in Figure 3 7 FIGURE 3 7 Flaw Tool ROI 28 The text02 tif image is reduced to the size of the of the Rect Warp ROI The Flaw Tool is not a trainable tool However it becomes trainable when...

Page 39: ...can also right click in the image and select Maximize ROI FIGURE 3 8 Flaw Tool ROI Sized 29 Click Notice that the foreground the text which is the mask pixels will be green then yellow as shown Figur...

Page 40: ...34 Adjust the following setting File List Click to the right of File List and then click Add This displays the Open window Browse for the files text03 tif and text06 tif from Windows They are located...

Page 41: ...as you create it Note Maximize or minimize the Editor as needed to accomplish the steps in this procedure 5 Highlight Acquire in the Step Tree left pane FrontRunner displays the Acquire properties pag...

Page 42: ...napshot in the Step Tree left pane and select Insert Into to display the Insert Step window Click the Analysis Tools tab Double click OCVFontless Tool to insert it into the Snapshot Before the OCV Fon...

Page 43: ...o boxes The outer box is the AutoFind The inner box is the OCV Fontless Tool 11 Move and size the OCV Fontless Tool inner box around the characters to be inspected L2A0693 Note If preferred zoom the i...

Page 44: ...orials 3 16 Getting Started with Visionscape GigE Cameras both boxes are adjusted the OCV Fontless Tool will look similar to the graphic shown in Figure 3 11 FIGURE 3 11 OCV Fontless Tool 12 To train...

Page 45: ...The symbol boxes are placed around the characters based on the space between the characters If any characters are touching the characters will be grouped in one symbol box The trained tool will be di...

Page 46: ...13 OCV Fontless Tool Inspection Graphics The two large green boxes represent the AutoFind search area Once the AutoFind has located the code the character verification boxes are placed over each of th...

Page 47: ...ess tool has debug capabilities that can be used in the Edit window After the OCV Fontless tool has been run you can view the inspection graphics When you move the mouse over an inspected character in...

Page 48: ...15 OCV Fontless Tool Inspection Results This Inspection Results Window displays the current values for the character and the tolerances set for the character With this information the tolerances can...

Page 49: ...pply Automatic Min Contrast When enabled verifies that the inspected characters have the proper contrast When disabled the OCVFontless Tool will still pass even if the characters are very dark By defa...

Page 50: ...Start Visionscape Visionscape FrontRunner FrontRunner displays its main window 2 Select a Visionscape Device on the FrontRunner Device toolbar 3 Start creating a new Job by clicking 4 To display the...

Page 51: ...dow 8 Adjust the following settings Picture Mode Set to Load Images from File File List Click empty and then Add This displays the Open window Browse for the file dm01 tif from Windows It is located a...

Page 52: ...s 3 24 Getting Started with Visionscape GigE Cameras 9 To display dm01 tif click FIGURE 3 17 Data Matrix Displayed 10 Highlight Rect Warp left pane 11 Size the Rect Warp ROI to enclose the entire Data...

Page 53: ...arp ROI 12 In the Properties right pane set the following scaling parameters for the Rect Warp X ScaleFactor 60 Y ScaleFactor 60 13 To highlight the DataMatrix Tool and green check mark the Rect Warp...

Page 54: ...e red square placed next to the tool display the DataMatrix Tool properties page b Enable check Assisted Learn This displays a green ROI box c Click on this ROI box and size it as close to the DataMat...

Page 55: ...ications are usually triggered by real world inputs Most applications are strobed The important properties on the DataMatrix Tool properties page to consider are described below General Cell Size For...

Page 56: ...out affecting robustness Optimization for Robustness Finetune Method Selecting Intensity Enhance will increase robustness for matrices of very low 40 gray scales between foreground and background cont...

Page 57: ...of the part 1 Start FrontRunner by selecting Start Visionscape Visionscape FrontRunner FrontRunner displays its main window 2 Select a Visionscape Device on the FrontRunner Device toolbar 3 Start cre...

Page 58: ...9 Right click Edge Tool and select Insert Into Click the Measurements tab Double click LeastSquaresCircle Fit to add it to the Job 10 Right click LeastSquaresCircle Fit and select Insert Into Double...

Page 59: ...o Center Distance tolerance 15 Right click TwoPt Locator and select Insert Into Click the Measurement tab Double click Dist2Pts Meas to add it to the Job Rename Dist2Pts Meas to Right to Center This w...

Page 60: ...rk next to Snapshot 21 Highlight TwoPt Locator and click 22 To set up the TwoPt Locator enlarge the search areas Find Pin 1 left boxes and Find Pin 2 right boxes so that the tips of the prongs will al...

Page 61: ...s around the untrained tool will remain dotted lines until trained 23 Train the Two Pt Locator by clicking A trained Two Pt Locator will appear as shown in Figure 3 23 FIGURE 3 23 Two Pt Locator Train...

Page 62: ...rojection Width property Graphics Level Show Details 26 Minimize the Step Tree Editor 27 Size and place the Edge Tool ROI to enclose the curved edges as shown in Figure 3 24 FIGURE 3 24 Edge Tool Setu...

Page 63: ...sCircleFit Radius With Tolerance 5 Nominal 33 Minimize the Step Tree Editor 34 Click On the properties page observe that the Nominal Distance is set to be the radius value calculated by the LeastSquar...

Page 64: ...tree view Select PointofBestMatch PointofBestMatch and click OK Figure 3 26 41 To select the reference for Point2 click in the area to the right of the blue arrow Figure 3 25 and click on the three d...

Page 65: ...Datum Pin to Pin Distance Pt Pt Distance With Tolerance 5 Nominal 47 Minimize the Step Tree Editor 48 Click On the properties page observe that the Nominal Distance is set to the output value of the...

Page 66: ...e check mark to the left of FindPin 1 FindP1 to expand the tree view Select PointofBestMatch PointofBestMatch and click OK Figure 3 28 54 To select the reference for Point2 click in the area to the ri...

Page 67: ...ce parameters Input Datum Left to Center Pt Pt Distance With Tolerance 5 Nominal 60 Minimize the Step Tree Editor 61 Click On the properties page observe that the Nominal Distance is set to the output...

Page 68: ...o the right of the blue arrow Figure 3 29 and click on the three dots which displays the Select Reference window as shown in Figure 3 30 67 Click on the check mark to the left of LeastSquaresCircle Fi...

Page 69: ...Distance tolerance parameters Input Datum Right to Center Pt Pt Distance With Tolerance 5 Nominal 72 Minimize the Step Tree Editor 73 Click On that properties page observe that the Nominal Distance i...

Page 70: ...ool that fails a red X is displayed next to it You can also click to run on each image one at a time to view their results 80 Select results to be uploaded at runtime a Click to display the Inspection...

Page 71: ...d Step Tree Editor click This allows you to view your Job as you create it Note Maximize or minimize the Editor as needed to accomplish the steps in this procedure 5 Highlight Acquire in the Step Tree...

Page 72: ...ta Array With If and One Point Locator steps into the Trajectory Step 8 Right click Trajectory Step and select Insert Into FrontRunner displays the Insert Step window Click the Analysis Tools tab Doub...

Page 73: ...the right of Result Selector as shown in Figure 3 33 FIGURE 3 33 Result Selector Add 12 Click Add The Select Datums for Report dialog box is displayed as shown in Figure 3 34 13 In the left pane navi...

Page 74: ...the Trajectory Grid Setup properties page The Trajectory Grid Setup step tells the system the locations of the devices in the field of view Specify the following In Number of Rows type 3 In Number of...

Page 75: ...dvanced Tool Tutorials 3 Getting Started with Visionscape GigE Cameras 3 47 16 Highlight Blob Tool in the Step Tree left pane FrontRunner displays the Blob Tool properties page as shown in Figure 3 35...

Page 76: ...should fail In Max Number of Blobs type 100 This instructs the Blob Tool to find 100 blobs no more and no less or else it should fail In Advanced Datums set Process Every nth pixel to 2 the default is...

Page 77: ...k to train the Trajectory Step The trajectory ROI changes to a zig zag pattern across all the devices with nodes at each device location as shown in Figure 3 37 This represents the order in which the...

Page 78: ...m and that the parts that fail have red boxes as shown in Figure 3 38 FIGURE 3 38 Start Test and Test Results 24 To run your Job click 25 To display the Report information that you specified previousl...

Page 79: ...Tutorial 5 Using the Trajectory Step Advanced Tool Tutorials 3 Getting Started with Visionscape GigE Cameras 3 51 FIGURE 3 40 Trajectory Tutorial Results...

Page 80: ...Chapter 3 Advanced Tool Tutorials 3 52 Getting Started with Visionscape GigE Cameras...

Page 81: ...Getting Started with Visionscape GigE Cameras A 1 A GigE Network Configuration A APPENDIX A GigE Network Configuration This section contains information about Visionscape GigE network configuration...

Page 82: ...TCP IP Some systems split internet protocol into two separate entries TCP IP Rev 4 and Rev 6 All Microscan cameras use TCP IP Rev 4 There may also be anti virus filters such as McAfee NDIS Intermediat...

Page 83: ...cturer s control software make sure that you disable it in the Properties dialog below It will almost certainly conflict with the JAI software that Visionscape uses to receive images from the cameras...

Page 84: ...with the subnet mask set to 255 255 255 0 The mask means that all devices connected to the NIC should have addresses that start with 192 168 254 x It is recommended that you steer clear of using any...

Page 85: ...so on Optimizing the Network Adapter for Use with GigE Cameras To reduce the load on the PC to a minimum you need to optimize the NIC Visionscape does not perform this optimization because every insta...

Page 86: ...isionscape GigE Cameras Next click on the Advanced tab and you should see a list of parameters that can be tuned by the user Look for Jumbo Frames sometimes called Jumbo Packets Set this to the maximu...

Page 87: ...Visionscape GigE Network Configuration A Getting Started with Visionscape GigE Cameras A 7 Then select Receive Descriptors if available This is sometimes grouped within Performance Options Click on th...

Page 88: ...essential when using a CMG50 camera Attaching and Configuring the Camera s Once you have done all this you can connect your camera directly or plug in a switch and then connect cameras to that switch...

Page 89: ...tool you will see a dialog similar to this The camera here is set to use DHCP and the address is 192 168 254 3 However a persistent IP address is preferable Check the Use persistent IP box and unchec...

Page 90: ...e NIC is set correctly and you need to adjust the way the software sends the data from the camera to the PC The NIC allows the use of jumbo packets now but it does not enforce their use You have to te...

Page 91: ...tories Depending on how many cameras you have connected you may have Camera_0 Camera_1 Camera_2 and Camera_3 directories these all have the same things inside You ll need to repeat the procedure for C...

Page 92: ...rames per second if your particular application only runs at 30 frames per second It makes a lot more sense and puts a lot less stress on the PC to slow the camera down to the point where it is still...

Page 93: ...d then immediately sends the next actually there is a minimum delay of approximately 96 nanoseconds This process repeats until all the packets that make up an image have been transmitted Increasing th...

Page 94: ...MG03c a VGA camera that can output data at slightly more than 90 fps The display on the PC can probably only manage 60 fps FrontRunner works as follows The camera is put into a continuous acquisition...

Page 95: ...rate using packet size and inter packet delay to the rate at which you absolutely must run and you get Dropped Packets messages when running in live video then your PC is not capable of running the a...

Page 96: ...8899 servicePort serviceBase http localhost serviceBase path DM path enableLogging true enableLogging engineExePath C dev EngineSolution EngineProcess bin Debug Vision scape EngineProcess exe engineEx...

Page 97: ...41 37 QuerySWRights GigE license rights detected features Visionscape GigE x8 YES IntelliFind YES Third Party GigE Cameras 0 allowed 10 41 39 CreateSystemsFromConfigFile found 2 devices in dm config...

Page 98: ...elName VISIONSCAPE CMG20 ModelName gige Resource Resource uid 189b1b90 624b 4eec b282 839558dc0f6c type GigE_Camera MACAddress 00 06 BE 00 09 4B gige CameraID TL gt GevTL INT gt FD MAC gt 00 1B 21 0A...

Page 99: ...ftSys1 If you look at the FrontRunner device bar you will see that there is still only one GigE device listed Create a new job and bring up the editor Click on the vision system step on the left and y...

Page 100: ...282 839558dc0f6c Assignments Device Device name SoftSys1 devClass Software Devices Copy everything for the first device and paste it immediately above the SoftSys1 device as follows Devices Device nam...

Page 101: ...nd you should see the following in the device bar Two GigE systems are available each with one camera The Backplane debug window also shows the change 14 01 47 QuerySWRights GigE license rights detect...

Page 102: ...amaged device Will Visionscape automatically detect this change for you The answer is no not in the current version of Visionscape What will happen is that the new camera will be added to the end of t...

Page 103: ...ResolutionX ResolutionY 618 ResolutionY ModelName VISIONSCAPE CMG20 ModelName gige Resource Resources DMConfiguration The vision system step shows this one camera as being available for use Everything...

Page 104: ...00 1B 21 0A 0C 72 National Instruments GigE Vision Adapter Packet Scheduler Miniport DEV gt MAC gt 00 06 BE 00 09 4A Baumer Optronic VISIONSCAPE CMG20 CameraID IPAddress 192 168 254 2 IPAddress MACAdd...

Page 105: ...camera 1 before they will still try to use camera 1 even though it is not there We opened a job that had been saved for the first camera and tried to take a picture It failed and output the red error...

Page 106: ...n the file but it is cleaner to delete it make sure you delete the correct one use the uid from the original camera from the line you just deleted Before Resources Resource uid 2ca5cfd1 14c2 45dd b692...

Page 107: ...Microscan VendorName ResolutionX 0 ResolutionX ResolutionY 0 ResolutionY ModelName VISIONSCAPE CMG20 ModelName gige Resource Resources We should now be able to bring up FrontRunner again and only see...

Page 108: ...e new Visionscape GigE cameras support partial scan mode This is easy to use if you don t mind getting your hands dirty modifying the camera definition file Here s how to do it Imagine you re using a...

Page 109: ...IO Inputs 0 GPIO Outputs 0 Setting the Y Offset to 197 because 494 100 394 394 2 197 197 lines to ignore take 100 lines and ignore the rest Save this file making sure that you do not save it as a text...

Page 110: ...rs On some drivers these may be buried inside Performance Options Jumbo Frames Make sure this is set to the maximum available typically 8192 bytes but only 5k on some NICs Receive Descriptors Set this...

Page 111: ...reated If this wasn t the first time you have run FrontRunner then quit FrontRunner and the Backplane and delete dm config before going back to step 1 4 Close the Backplane you can do this by right cl...

Page 112: ...ra_1 Camera_2 and Camera_3 directories these all have the same things inside You ll need to repeat the procedure for Camera_0 on all 4 cameras The two parameters InterPacketDelay and PacketSize are bo...

Page 113: ...or all four cameras We ve told Visionscape to use jumbo packets but the four cameras are still going to be sending data at the same rate 128MB per second overall What this means is that one camera wil...

Page 114: ...ticks is 240 microseconds 2MB image is approximately 222 9k packets 222 240 microseconds 53 milliseconds The camera could run at 16 fps which is 62 milliseconds per frame We have just increased the o...

Page 115: ...There may also be anti virus filters such as McAfee NDIS Intermediate Filter GigE cameras should be on their own dedicated network This has nothing to do with Microsoft or with sharing Visionscape in...

Page 116: ...tarted with Visionscape GigE Cameras In the example below note the two check boxes at the bottom of the dialog box If you have these checked then you will see a small icon for each NIC in the task bar...

Page 117: ...subnet mask set to 255 255 255 0 The mask means that all devices connected to the NIC should have addresses that start with 192 168 254 x It is recommended that you steer clear of using any address t...

Page 118: ...I Navigate to that folder and double click on JAI SDK 1 4 0 exe or JAI SDK x64 Version 1 4 0 exe depending on whether you re running a 32 bit or 64 bit system to install the JAI GigE Vision Persistent...

Page 119: ...wer to the camera and you are ready The config tool will now show the following Now every time the camera is rebooted it will automatically set this IP address so it will not have to search the networ...

Page 120: ...gate to the directory shown above You can do this by whatever means you prefer but a step by step way would be to type a cd b cd c cd Vscape d cd 610_10 e cd dll 3 Type aregsvr 4 This will register al...

Page 121: ...ch as the CMG20 or CMG50 are employed in applications with high trigger rates Microscan recommends that each camera is connected directly to its own PC network port If a switch must be used then the a...

Page 122: ...e to 3 Select InterPacketDelay 4 Select Decimal and enter desired values Recommended Values for InterPacketDelay IPD and Maximum Frames per Second FPS 2 Cameras on a Single Port 3 Cameras on a Single...

Reviews: