Active Time Variable Vision Builder AI

Hi,
I want to confirm a question about the system variables. I am wanting to program an algorithm that will count how many faults occur within a set time and if the amount of faults reaches a specified number within this time limit send an alarm. Is the Active Time in system variables the amount of time the inspection state has been running or the whole time since the run inspection was triggered. Thanks

Hi T.P Titherington,
The Active Time shows the time the inspection states have been running. Thus, this time will 'pause' when you stop the Inspection and resume when starting again (minus the idle time). To reset this you can use Inspection>>Reset Inspection Statistics.
DylanC

Similar Messages

  • CPU clock timer in vision builder

    Hi
    I need send to Ethernet port PC clock time as an inspection result in vision builder where can I find clock timer in vision builder tools? Like the tick counter in Labview.
    I have used some items like active timer in system variable but I have not succeeded.
    Would you please help me?
    Thank you
    Refa

    The Active Time reports how long the inspection has been running. Why does this not work for you? It sounds like this is what you want since you're looking for something like LabVIEW's Timer. The main difference is that LV's timer starts at a random offset, and VBAI's Active Time always starts at 0 from when the inspection starts. If you want the system time, there is a System Variable called Current Time that reports the time of the system. It only reports the time to the second, so if you need more accuracy, you can use a Run LabVIEW VI to get the current time with more accuracy.
    Hope this helps,
    Brad

  • Pc real time et vision builder AI incompatibles?

    Bonjour,
    Voila mon problème, j'ai un PC cible temps réel avec 2 caméra branchées en firewire dessus, MAX sur le Pc de déploiement voit bien ces 2 caméras,
    par contre j'aimerais utiliser Vision Builder AI pour utiliser ces 2 caméras, mais lorsque que je déclare mon PC cible RT dans Vision builder AI par l'adresse IP,
    VBAI me donne un message d'erreur d'incompatibilité entre VBAI et Le PC RT.
    Pourquoi ai je ce problème? est ce un problème de drivers? faut-il obligatoirement acheter un système CVS?
    merci pour votre aide.
    cordialement

    Bonjour,
    Il me semble que VBAI n'est compatible en RT qu'avec quelques materiels specifiques comme les EVS et CVS.
    Pour plus d'informations : http://digital.ni.com/public.nsf/allkb/1179AB5950603C4786256FAD0004DB8A?OpenDocument
    Cordialement,
    Da Helmut

  • Vision Builder 2010 Active time not working when calling Vision inspection from testand 2010

    I have an issue where I am timing a flashing light using the active time variable, when I run the inspection from the inspection view everything works, however when I run it from the configuration view or by calling it through teststand 2010 with the Vision Vi's the Active Time never changes from 0.00000.
    I do not need precides timings so I am NOT worried about the +/- 20ms from the windows system clock.

    Hi Ryan,
    Can you read any of the other variables using the Get Inspection statistics VI?  Is it only the Active Timer that doesn't change?
    Cole R.
    National Instruments
    Applications Engineer

  • Run time error running Vision Builder AI inspection from TestStand

    Hello,
    I have TestStand 3.1 and Vision Builder for AI v2.6.1.
    I would like to run from TestStand a Vision Builder Program or steps. For to achieve that, I have followed the instructions on Application Note 215, Running a Vision Builder AI Inspection from TestStand.
    After installation, the option in TestStand InsertStep>NI Vision Builder AI>Inspection works properly.
    But when try to execute a step with that inspection, and whatever operation of that one, the result is the following error:
    Run-Time Error
       Details: Error executing substep 'Post'.
    An error occurred calling 'ExecuteStep' in '_NIVBAITestStandSteps' of 'NIVBAITestStandAPI'.
       Error Code: -2147417851; User defined code. Possible System Error: The server sent an exception.
      At this point really I don´t know what to do, and I don't find any extra help apart of application note.
      I will appreciate some suggestion.
    Gonzalo.

    Hello,
    I've found some more information that may help.  Since these TestStand steps are simply call a DLL with an exported ActiveX API, path issues may exist.  In fact, the overwhelming number of times this error appears, paths seems to be the case. I am not sure why the error is an indication of a path issue, but that seems to be the case.  I would recommend that you would reregister the DLL, this time in the same directory as the example sequence.  To do this:
    - Unregister the current DLL by going to Start Menu>>Run, and typing: regsvr32 /u NIVBAITestStandAPI.dll
    - Move the DLL from the system32 folder to the folder in which the example sequence is saved.
    - Reregister the DLL from the run command (regsvr32 <folder path>\NIVBAITestStandAPI.dll)
    - Restart TestStand if it is open
    I apologize for not having any concrete answers, but this one is proving tough without me being able to replicate the issue.
    crisR

  • Send variable from vision builder to NXT Brick

    Hello,
    I have a color sorting machine controlled by an NXT Mindstorms brick. I believe that Labview has a module to communicate with the Lego brick, but I was wondering if the Vision Builder (which we are currently using for another application) could also communicate with the brick (we don't have Labview). Ultimately, after insecting the object with Vision Builder, I would like to send a variable (based on the inspection) to the NXT mailbox, preferably via usb, otherwise BT, that would serve as a motor command for the servo. If there is no such communication module, is there a code that I could insert into the Vision Builder program that would allow for such a communication?
    Solved!
    Go to Solution.

    Hi there,
    As far as I know, Vision Builder will not be able to "target" the Lego Mindstorms brick.  
    The LabVIEW add-on for Lego Mindstorms can be found here:  http://zone.ni.com/devzone/cda/tut/p/id/4435
    I'm assuming you're planning on connecting your camera to a PC? 
    Although I just found a camera that can connect directly to the Lego brick here:  http://www.mindsensors.com/index.php?module=pagemaster&PAGE_user_op=view_page&PAGE_id=78
    If your LabVIEW code is running on your PC, you should be able to use either vision builder or vision assistant and then have your brick "do something" based on the results.  You'll have to choose your PC as the "target" for your code and you will need LabVIEW and the Mindstorms add-on to make this work.
    Patrick Allen

  • Run-time License for Vision builder

    HI
    I have created a VBAI file for my inspection in, but now I want to transfer the inspection LabVIEW and build an exe to run the application.
    Now for running that application do I require a NI Vision Builder for Automated Inspection Run-Time License or a NI Vision Development Module Run-Time License.
    Thanks,
    Ninad Regundwar
    Junior Engineer | ARAV Technologies | www.aravtech.com

    Instead of migrating to LabVIEW, you might want to consider automating Vision Builder from LabVIEW and running your inspection by using the VBAI API.
    Check out the examples located here: C:\Program Files (x86)\National Instruments\Vision Builder AI 2013\API Examples\LabVIEW Examples.
    The VBAI API allows to start a VBAI engine, open and run an inspection and retrieve images and results for each step.
    When using this method, if you're running the LabVIEW program on the same machine VBAI is installed, you do not need to purchase the VBAI runtime, neither the Vision Development Module Runtime (unless you wish to process further the image returned by VBAI.
    If you need to deploy that LabVIEW application on a different machine, then you'll need to purchase a VBAI Runtime license.
    If you choose instead to migrate the inspection to LabVIEW, then you will need to purchase a full license of Vision Development module for your development machine (the code generated uses Vision Development Module VIs).
    If you choose to build the resulting code into a LabVIEW application and deploy it on a different machine, you will need a Vision Development Module Runtime License for the deployment machine (but not a VBAI license).
    Migrating the code to LabVIEW is recommended only in cases where you need to modify the code generated by VBAI. The code generated is indeed a lot more complex than using the VBAI API that I described in the first option.
    Hope this helps.
    Best regards,
    Christophe

  • Vision builder AI shared variable sudenly damaged

    Dear Ni users.
    Description of aplication.
    We use NI vision builder AI together with siemens WINCC software. We use shared variables acros NI shared variable engine, so read and write some parameters over WiNCC.
    The  aplication witch was working for more then 1 year, and sudenly we have noticed that we cannot se NOT acces shared varables in WINCC.
    After examine what can be wrong we faund that we cannot so no tags from NI shared variable engine, so we think that somehow something crashed?
    Do you have any similar cases in future. We cannot acces into any shared variables accros NI distributed system manager?
    SEE THE ATACHMENT
    Under localhost the Vision Builder  is mising, like in this white paper from Ni.
    https://decibel.ni.com/content/docs/DOC-18647
    Thank you for help
    Attachments:
    Zajeta slika.JPG ‏34 KB

    Hi Bostjan_1234,
    What is the hardware involved in this setup? Do you use smart cameras?
    Have you tried the standard steps: restarting the system, defining a new tag/variable to see if you can see it in Distributed System Manager?
    I am looking forward wih great interests in your reply.
    Best regards,
    IR

  • Labview 7.0 is compatable with Labview Imaq6.1 , vision builder 6.0 and Imaq run time engine 6.0.

    Sir,
    My system is PXI 8174 and i an using NI 1411 card for my application. I want to know the compatability of the softwares. Whether Labview 7 is compatable with Labview Imaq 6.1 , vision builder 6.0 and Imaq run time engine 6.0.

    Hi,
    Assuming you meant IMAQ Vision 6.1 instead of IMAC 6.1, this software was intended to run on LabVIEW 5.1, 6.0, and 6.1.  I have heard of it being used with LabVIEW 7 on occasion, so it may be possible to make it work, but this has not been tested and is not officially supported.  Vision Builder 6.0 should run; however, it was developed long before LabVIEW 7.x and will not generated code for LabVIEW 7.0 and later.  The Vision RTE version should correspond to the version of Vision you are using.  For instance, if the program was developed with Vision 6.1, the computer should have the Vision 6.1 RTE installed.  With this being said, if you plan to use LabVIEW 7, I recommend updating your other software.
    Regards,
    Ryan M.
    Applications Engineer

  • Configuring Vision Builder demo software with real time EVS 1464

    whe i tried to configure the Vision Builder to real time EVS 1464 it didnt se the MAC address of the EVS 
    Solved!
    Go to Solution.

    Hi Frank Noe,
    Have you connected the device and set it up as specified in the manuals? A good place to look to ensure you have taken the proper setup steps is the 1464 RT's getting started guide. Pay particular attention to the steps listed on pages 8-12. If you have everything connected and setup properly, and are still encountering this issue, take a look in the 1464's user manual in appendix D. On pages D-4 and D-5, the manual lists troubleshooting steps for the device not being listed as a target in VBAI. Hope this helps.
    Matt J.

  • NI-1744 Smart Cameras go offline using Vision Builder AI and LV2010?

    I've run into a perplexing and frustrating problem.
    I have a set of 6 NI-1744 smart cameras used to monitor sample motion in an automated system
    A central robot moves samples between 6 satellite chambers; there is a camera mounted above the entrance to each of the satellites; the sample carriers are drilled with up to 10 holes encoding their numbers in binary (0-1023). There is also an L-shaped registration mark drilled near the region for the number encoding. Matters are complicated somewhat in that the second generation of carriers has a slightly more complicated registration mark (which includes the simple L of the first generation).
    What I would like to accomplish is this:
    Most of the time, I just want to be able to see what's under each camera, illuminating from above using a ring light attached to the camera. Call that Inspection A.
    I may need to capture an image without the ring light. Call that Inspection B
    When a sample transfer is occurring, I need to run a more complicated inspection (Inspection C):
    A light is turned on underneath the end of the sample transfer arm (the "fork"), backlighting the region where the hole pattern would be if a carrier is in fact present.
    Acquire an image of the fork with the backlight on.
    Check to see if the image shows the fork to be empty. If so, return that information and the inspection is complete.
    If not, look for the (backlit) registration mark and establish a coordinate system for the holes. Look to see which holes are present, calculate the sample number, return the data and the inspection is complete
    If not, look for the 2nd gen registration mark. If it is found, establish the coordinates as in step 4, calculate the number, return the data and complete.
    If none of the registration patterns are found, turn on the ring light, capture an image and return it so the operator can intervene and enter the appropriate data.
    I have successfully built the inspection, and it appears to work in the Vision Builder configuration interface, or if run from the Vision Builder inspection interface. If I attempt to *use* the inspection, accessing it via the VBAI interface in Labview, one or more of the cameras will hang after one or more inspections and stops responding to LabVIEW. It will take multiple reboots to get it back on line and visible to either VB or Labview.
    Originally, I had thought to configure the camera to run inspections continously and select inspection A, B, or C based on a variable I could access using the Labview Shared Variable Engine.  Every time I tried that the camera in question would hang. My current sort-of-successful software uses the VBAI functions in LabVIEW to open Inspection A, B, or C on the camera, run that inspection a single time and return the results and inspection image. That still ends up with one or more cameras hanging, especially if I've added the case to handle the more complicated registration mark.
    I think I may be running out of memory in the camera. I have occasionally received an out of memory error message when running the inspection in debug (step) mode in the VB configuration interface, at which point the camera will disconnect from the VB interface. When I look at the system monitor tab for a camera in MAX, I can see that it is showing me 11.5M free/124M total memory, and 72.3Mfree/118M total disk space. If I understand those numbers, that means that less than 10% of the memory is free when the inspection starts!
    I'm only communicating with the cameras via the ethernet interface. Are there any software components I don't need to have installed on the 1744 (MAX lists about 12 different things installed!) in that case?
    Alternatively, it appears there are VBAI functions available that might let me acquire an image and then process it via a local copy of Vision Builder running on the host PC, rather than in the camera. Is that so, and if so, would it be faster than running the inspection in the camera?
    I've attached a zipfile with the inspection that appears to stall the camera, and samples of typical images captured of the empty fork and a sample holder.
    Kevin Roche
    Advisory Engineer/Scientist
    Spintronics and Magnetoelectronics group
    IBM Research Almaden
    Attachments:
    Carrier Read Problem.zip ‏657 KB

    The good news: thanks to some offline assistance from Brad, my cameras are no longer crashing.
    The bad news: my labview VI using VBAI functions still fails for one or more cameras after a while (typically >12 hours of monitoring). 
    It's very odd: the cameras are still visible online.
    I can ping them.
    I can connect to them via VBAI, run inspections that way (either in configuration mode or inspection mode), and disconnect successfully.
    My calling VI, however insists that it can't connect (usually with a -354700 error from VBAI Connect.vi, occasionally with a -354705).
    I am using shift registers in the monitor loop of the main VI so that I can pass the VBAI session reference for each camera back to the subvis that actually load and run the desired inspection once a connection has been made. After an indeterminate time, one or more of those appears to go bad, but if I attempt to reset and connect to the camera again (I did include a control to let me close and reconnect if necessary from the monitor loop), I still get the above errors.
    The only way to get them back online within LabVIEW this morning proved to be to stop the main VI and reset all the controls to default, reboot the cameras, and then restart the VI. At that point it was able to connect to all 6 again and has been running happily for over 8 hours.
    I set up the persistent sessions using the shift registers because I have observed in the past continually opening and closing resources like that can lead to memory problems. It also dramatically reduced my cycle time when all I want to do is get the latest images from the cameras to under 2 seconds.
    Any ideas? Is there some subtlety to disconnecting/reconnecting to the VB in the cameras via Labview that I'm missing?
    I am working on a slightly smarter version of the inspection that can be allowed to run continously in a camera and simply return the appropriate result when asked, rather than having to start and stop different inspections as I do now, but that is not ready for deployment yet. It's the symptom of running just fine for X hours and then losing one or more cameras that is baffling me right now.
    Kevin Roche
    Advisory Engineer/Scientist
    Spintronics and Magnetoelectronics group
    IBM Research Almaden

  • RH10 variable and build tag source file names

    I'm using RH10 and outputting to WebHelp. My company requires that I archive project source files to our CVS via Eclipse. I am not using RoboSource_Control and must use the company's development resources for archiving.
    Since archiving the initial project, I have been uploading only source files with modified dates.
    However, I have discovered that the files I thought were storing user variables and build tags are not the correct files to archive. Since I am uploading all files with a newer date and that's not working, I need to know the user variable source file name and the build tag source file name that stores the currently defined variables and build tags.
    I have already tried the WebHelp forum and was directed to this forum to pose the question because I'm looking for source file information instead of output file information.
    Thanks for your help!
    karen

    Yes, Eclipse does work that way. However, we do not use our development directory as the local Eclipse repository. I need to move changed files to the local repository (stores all source files in the project) so that Eclipse can upload changes to the server. Yes, this is planned redundancy.
    That said, it is not acceptable to spend the time copying all files in the large projects from the work folder to the local repository. I simply need to know which individual files to copy that include the currently defined variables and build tags. Note, we do not copy the SSL folder output files to our local source file repository, or other associated reference files that are not actually project source files.
    Can you find someone who knows which files I need?
    Thanks,
    karen

  • Registration of several reference images in a test image using vision builder

    I have downloaded the trial version of vision builder, and I am attempting a test to determine if it's worth buying:
    I would like to determine the position and orientation of two reference parts within a set of test images.  I am able to load the reference images, obtain the grayscale, perform appropriate filters, determine their global orientation based on some straight lines, and select the desired ROI's that I would like to match up.  I am also able to load in a test image, take the grayscale, and filter it.  My state diagram has three heads with the three loading steps that converge. This all seems to be great, but how do I find the position and orientation of the reference ROI's within the test image? 
    I would like to use something like the geometric matching tool, but it only seems to work on using a part of a first image on subsequent images in the same folder.  I suppose I could use my reference as the first image in the folder, then loop through the remaining ones, but...
    Once I find the position and orientation of the first reference in the test image, I would then like to find the position and orientation of the second reference in the same test image, then report values like relative distances and angles between these found references.
    Does this mean I need two folders, with their own reference image and the same set of test images?  Would I combine the geometric matching results using some variables or math functions?
    What is the best way to perform this image registration in vision builder?

    RSFree101,
    Thank you for your interest in Vision Builder AI.  If I understand what you are trying to do, you are looking to compare the position locations of two separate parts in an image.  We have a tool that does this very well.  If you use the pattern matching to find both instances of the part, you should be able to determine the distance and angle between them relatively easily.  To do this, you will need to find an edge in between the two so that you can justify the angle between them, and then simply use a few Geometry functions to actually find the angle.  To record this information, you can simply use a Data Logging step to write your findings to file.  
    If you are looking for a more complete analysis on how you might be able to do this, you will need the Vision Assistant on your computer (if you do not have it already, you can get it by downloading a free trial of our Vision Development Module).  In the Vision Assistant splash screen, click on the Solution Wizard.  This pulls up a menu.  From there, go to Tutorial » Bracket Inspection.  Click Load Solution.  If you step through that example, this displays how to do what you are looking to do with the Vision Assistant, but it should be no different at all in Vision Builder AI.  Hopefully this helps.
    Regards,
    Keith M.
    Applications Engineer

  • I can not create an Installer, After install the Vision Builder Demo and then uninstall it. I can not create a Labview installer anymore, it asks me for a Vision Builder Installer, even if My Labview program does not have nothing to do with it...

    I can not create an Installer on LabView, After install the Vision Builder Demo and then uninstall it. I can not create a Labview installer anymore, it asks me for a Vision Builder Installer, even if My Labview program does not have nothing to do with it...
    Solved!
    Go to Solution.

     Hi Shada this can happen if you are including additional installers to your installer for example DAQmx. When you are doing this the installer has to include other files like MAX (Measuremente and Automation Explorer). Probably when you installed Vision Builder it updated MAX, so when your installer is trying to Include MAX, its asking for the source where it was installed in your computer in this case Vision Builder.
     Here you can cache the information so its not asked again, or you can download a newer version fo DAQmx, so it will update MAX and change de dependecy.
     You can find more details about this issue in this KB:
    KnowledgeBase 3S88PJMY: Why Do I Get A "Missing Distribution" Error When Trying to Build an Installe...
    And for keeping a copy here is more info:
     How Do I Stop the Missing Distribution Notification Each Time I Build An Installer?
    Best Regards
    Benjamin C
    Senior Systems Engineer // CLA // CLED // CTD

  • Hi 9 POINT CALIBRATION NOT WORKING IN VISION BUILDER

    I try to do 9 point calibration by using run labview method in Vision builder .
    here i tried teo labview files here Reference 1-1.vi working (it gives in mm) (here i am not assigning 9 points )
    Reference 1-11.vi file i did invidual points to so that i can enter directly 9 point and real world ..
    but its not working .
    Is there anyway to 9 point calibraiton in vision builder .
    if i have to use run labview step means .. please give me vi file to to enter 9 points (from set variable )
    Attachments:
    Reference_Points1-1.vi ‏12 KB
    Reference_Points1-11.vi ‏23 KB

    I'm using Flash Builder 4.7 for a pure flash project (ie, no mxml) & all my graphics objects are in a swc that was exported from an FLA. 
    I've made some progress with that issue. If I explicitly assign the scale9Grid dimensions in the code, it seems to work:
      obj.scale9Grid = new Rectangle(x,y,w,h)
    ...but having to do that is a real productivity killer.  Would be nice to use the 9-slice guide setting in the FLA

Maybe you are looking for

  • Quarter of the Year

    Can anybody tell me how to get quarter of the year based on a given date. Thanx null

  • PCA Values are Zero in KEAT

    Dear Experts,       I am using New GL Profit Centers. In KEAT activity all values are comparing properly I mean COPA to SD to FI. But PCA values are showing Zero values... I had checked in FI level all values are flowing to PCA properly through Docum

  • Process and java classes

    Hi... My Bpel process accesses some java objects..To keep classes and projects separate I am keepin these classes in a war/ear and deploying it on oc4j...do u think the process can access the java classes in .war file.. I know i can have the java cla

  • Esata port multiplier explaination please

    I am looking for some advice about an esata enclosure setup. I would like to move into a multiple drive array for FCP and would like to know how the port multiplier works. I already have figured out that hardware RAID is superior to software RAID. My

  • Drill down report display of text for z fields

    Hi All, I am workig on Drildown Reports. The report is working perfectly and it is dispaing the output correctly. I am able to see my Report output in Grid dispay. The probem is I have some Z fields in my report. Whn i am dispaying with Charactersic