Integrate Vision Builder 2009 (VBAI), into Test Stand 4.2.1?

Does anyone know of an easy way to integrate Vision Builder 2009 (VBAI), into Test Stand 4.2.1?
earlier versions of Vision Builder seem to accomidate this very easily.  But i have not found the same ease to make this work in the newest version.  any ideas?
Thanks

Hi,
Thanks a lot for your support.
Well...yes I followed the instructions in the ReadMe.html file.
I have loaded the sequence "Vision Builder AI TestStand Examples.seq" into TestStand.
TestStand crashes after some delay  when trying to select the first test step "Run Inspection once".
TestStand obviously has problems loading the Vision Builder API functions and the engine (whatever is necessary).
As I could not succeed testing VBAI 2010 from TestStand, I then tried the LabVIEW example which is also located
in the \examples folder.
I had no problems loading the "LabVIEW API Examples (Local).vi" into LabVIEW 2010 and execute it.
This example works without any problems with a simple USB Webcam.
I can test different "Inspections" and studied the API functions in this VI.
So the problem is only related to TestStand.
I am wondering whether TestStand has problems with the evaluation version of VBAI 2010.
When executing the LabVIEW example the VBAI engine asks me first if I want to evaluate the software (as it is not activated yet).
I never reach this point from TestStand. It crashes before.
Another point is that I am asking myself why the test step "Run Inspection Once" is the first test step the TestStand sequence.
Comparing the sequence of steps with the LabVIEW VI, you can see that there is a differnce in the initialisation sequence.
The LabVIEW VI launches "VBAI Interface - Launch VBAI Engine.vi" first before all other API VIs.
I could try to change the TestStand sequence and introduce additional initialisation steps before "Run Inspection Once".
I simply fear that TestStand crahses again before I have been able to change the sequence.
Ok...another thought...on your system it is working fine using the example TestStand sequence?
This means that the initialisation of the VBAI engine is automatically executed.
Which process is responsible to initialise the VBAI engine in TestStand?
Perhaps I have to configure something ...somewhere in TestStand.
Ok... that's it for now... i will try out a couple of things....
Thanks again for your support
Best regards,
Carsten

Similar Messages

  • Problems in syncronyzing two threads into Test Stand using a Global Variable (TestStand 4.1.1)

    I have one thread that is doing TCPIP Aquisition into a Global variable defined in Teststand. And I have another thread that it supose to read it. All are in the same sequence and execution. The problem is that the aquisition thread got a lot of bytes, while the processing thread is reading always only a few. Do you know what the problem could be?
    I will attach also some pictures just to be maybe more clear...
    Attachments:
    Implementation_pictures.zip ‏368 KB

    I wasn't looking at your Sequence, I was looking at Receive_HDL_Block.JPG. What is that VI doing (the one with number 3 on the icon and Size_in_bytes as an input) ?
    Where in teststand are you doing any checking?
    I don't really understand your sequence.
    You have a sequence (running in a new thread) (why), following by another called Receiver Handler (also running in a new thread) then two more sequences which seem to do some with transmitting something (also running as new threads). You are only waiting on one of these threads (the Receiver Handler). There does seem to be any loops in TestStand, you dont seem to be bothered about the other threads that you have running. What happens when this test sequence finally does stop, what is stopping the Threads that you have running.
    Your pictures dont really seem to fit in with your Test Sequence, such as where does Test_005.vi fit into everything
    The whole thing is a bit of a nightmare.
    Maybe your best bet would be to scrap the lot and start again. Only this time have a better understanding of what you what to achieve, what would be best to put into Teststand and what to put into labview. Whether you really need all those new threads running.
    Sorry to be so blunt.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Can I Integrate Keynote Build Slides Into iMovie?

    It's me the Mac/iMovie newbie with another question...
    Is there a way I can integrate a 'building' Keynote slide into an iMovie project?
    Your help and/or direction is very much appreciated!

    Thanks again AppleMan, will try this tonight!
    Once I export to QuickTime, where do I find the QuickTime file, and how do I pull it into my project?
    Apologies if this is a dumb question once again!
    Cheers!

  • Is there a max number of parameters that can be passed to a C function in test stand v. 1.0.1

    I have had an issue with test stand version 1.0.1 (yes, I know; it's quite old) and calling a C function thru an action step. when I call this function with 18 parameters, it seems to hang. I have called a function with 16 and it seems to work. Is this a limit of the software? I am calling the function from a windows DLL that we've created. When I try to pull the function from the dll into test stand I also get a { error...but I get that in the other function's call and it seems to work fine. Any ideas?

    ok, upon re-reading what I posted I can clearly see your confusion. haha. I think there are two separate issues.
    1) Are there a maximum number of parameters one can use when calling a C function from a DLL? Yes, i'm trying to call a C function from test stand.
    2) when I select the "module" tab, and select which DLL contains my function, the prototype has no information associated with it (by clicking the reload prototype button). I'm not sure why, as I'm using a declspec to send the function information out of the dll, but that's another topic. So I click on the source file tab and point the window to the .cpp of my function (within the DLL's project workspace) and when it begins to parse the file, I get an error about mis-matched curly brackets and if I wish to continue, and skip the rest of the parsing.
    I click "OK" and when I go back to the module tab, I am able to see all my functions, along with the parameters in the drop down menu below. I fill in all the parameters and everything looks ok; no syntax errors, or anything else seemingly suspicious. I then run my test stand code and when I get to the step which calls this function, the system hangs and cannot proceed.
    Any thoughts as to what might cause these issues? 

  • Type List Order Numbers (typelisto​rdernum) change when opening a sequence file in Test Stand

    Could you please shed light on the reasons a sequence file changes upon opening in the Test Stand development environment?  
    Comparing the file before and after, I see that the typelistordernum changed on a few custom types that we defined for the program. . 
    To clarify the environment, I am using two work stations running the same version of Test Stand. The workstations are kept in sync using Sugar Sync. One would expect that a file saved on one workstation could be loaded on the other work station with no change.
    This also happens on files that we pull from version control (GIT). Once opened, they change, which presents a serious problem in avoiding version conflicts and keeping track of real changes. 
    Test Stand Version: 4.5.1

    ATE Coder wrote:
    In fact it turns out that conflict resolution is fairly hard to resolve.
    For instance, changing a type (add a comment) changes its time stamp. As a result, all sequence files referring to this type are now in conflict.
    On testing, Test Stand does not seem to flag these. So, they could be pushed into the repositories as is.
    Opening the sequence files on another machine (after pulling to code from repositories), Test Stand detects a conflict that in fact is no conflict at all. Now all these files need to be checked in and pushed up and then pulled down.  This increases the chances of code conflicts many folds and seems to be totally superfluous.
    Turning off automatic conflict resolution does not seem to resolve this issue.
    It would seem that for some reason (inertia?), NI pulled into Test Stand the same tight versioning it uses in LabVIEW. While in LabVIEW, where, in fact, one is editing compiled code, thins might add some value, Test Stand sequences are actually XML file -- source code, which call for a much more relaxed code versioning or none at all as making sure the code works as part of the debugging process and cannot be handled properly by 'versioning'. 
    I think you might not be using automatic conflict resolution the way it is intended.
    Are you using type palette files? If not, I highly recommend you do so. If you put the highest version of your types in a type palette file, use the default automatic conflict resolution settings, and distribute or deploy the type palette file to everywhere where the type is being used, you do not have to resave all of your sequence files everytime the type changes. Sequence files with older versions of the type will be automatically updated when they are loaded on machines that have the latest version in a type palette. This is what automatic conflict resolution does, it automatically/silently updates the types in the sequence files when they are loaded. No need to resave everything before hand. If you have trouble getting this working, let me know exactly what you are doing and what problems you are having and I will hopefully be able to suggest an alternative way of managing types that will not have those problems.
    Hope this helps,
    -Doug

  • 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

  • How to integrate NI Vision Builder and Lab view 8.0

    Hi to all.,
        I want to integrate NI vision builder and Labview.... Please give me the idea and procedures to be followed........

    Hello Tec-sol,
    Are you using the Vision Builder for Automated Inspection? If you are, then you can create LabVIEW code. In the configuration interface go to Tools>>Migrate Inspection to LabVIEW. To do this you will need to have the Vision Development module installed.
    Or are you using the Vision Builder? Depending on the version of the vision builder you are using you can also generate LabVIEW code.
    If you want your code to run in LabVIEW I would suggest that you create your code with the Vision Assistant (this has replaced the Vision Builder, and ships with the Vision Development Module). The Vision Builder for Automated Inspection is intended to be a standalone application.
    Regards,
    Jasper S

  • IS Test stand support Code written in VC++ ?..IF SO How to integrate with Test Stand

    IS Test stand support Code written in VC++ ?..IF SO How to integrate with Test Stand

    If you have LabWIndows-CVI, you may also look at these threads: (may be useful for TestStand)
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=5065000000080000003C1F0000&UCATEGORY_0=_318_&UCATEGORY_S=0

  • How integrate a CVI code in Test Stand

    Hi,
    I'm learning my self to use both Labwindows and Test Stand and i have some problems.
    I want to generate 5V from my NI PCI 6509 in order to drive relays so i think to use the C code from Finder Examples in Labwindows(WriteDigChan.prj).
    I tried to call this CVI code from Test Stand but I couldn't.I need to insert the WriteDigChan.dll in "Module".I don't find the .dll so i tried to create it but it dosen't work at all.
    Is that .dll necessary?
    Any suggestion please!
    Best Regards,

    It always shows me this error
    Attachments:
    erreur.jpg ‏144 KB

  • NI Vision Builder test affichage LED

    Bonjour,
    Je dois réaliser un banc d'essai pour vérifier les LEDs d'une carte électronique. 
    Le logiciel Vision Builder fonctionne parfaitement bien pour faire cet essai.
    Mon problème est plus sur le matériel.
    Si j'utilise Vision Builder, me faut-il un autre logiciel supplémentaire ? besoin de labview ? J'utilise actuellement la version d'essai.
    Faut-il une caméra spécial compatible ou n'importe quelle caméra peut convenir ? (USB ou Ethernet)
    Merci d'avance.

    Bonjour,
    Merci d'avoir posté votre question sur le forum de National Instruments.
    Je pense que vous pourrez trouver les renseignements nécessaires sur les liens ci-dessous.
    http://sine.ni.com/nips/cds/view/p/lang/fr/nid/11700
    http://digital.ni.com/demo.nsf/websearch/5b1e3d2913f0e670862574d40055a578?opendocument
    http://www.ni.com/pdf/manuals/371424h.pdf
    Brice S.
    National Instruments France

  • NI Vision Builder vs. LabVIEW RT + NI Vision Assistant

    Hello
    I’m designing a vision application which should be able to run stand-alone (EVS-1463RT). The app will have up to 30 inspection states (read gauge value, checking for the presence specific objects, etc.) approximately. The second requirements are the communication ability with other devices not NI via TCP/IP and logging pictures in FTP.
    Now I’m thinking about the two possible solutions.
           Create an AI with NI Vision Builder
           Create LabVIEW RT app and with using NI Vision Assistant build inspection states
    A have to say that the first solution is not my favorite because I tried to implement the TCP/IP communication in NI Vision Builder and it was function but the using of the server is limited. In the other hand the building the inspection is “easy”.
    The second solution has following advantages for me: better control of the app, maybe better possibility to optimize the code, implementation my own TCP/IP server. My biggest concern is the using NI Vision Assistant to generate the inspection states.
    In conclusion I have to say that I’m not experience in the vision app but the LV RT is no problem for me.
    Thanks for any opinions
    Jan

    Hi Jan,
    > A have to say that the first solution is not my favorite because I tried to implement the TCP/IP communication in NI Vision Builder and it was function but the using of the server is limited.
    Could you give more feedback on this point? What do you mean by "using of the server is limited". More precise feedback and suggestions would help us improve the functionality.
    What I would recommend you look into is the use of the VBAI API. You can find examples in <Program Files>\National Instruments\<Vision Builder AI>\API Examples\LabVIEW Examples
    This features allows you to run VBAI inspection within your LabVIEW application, an retrieve results that you can send using a TCP implementation of your own in LabVIEW, without having to use the VBAI TCP functionality.
    You retain the configuration feature of the Vision part of the application, and can add extra code in LabVIEW.
    The API functions allow to basically open an VBAI inspection file, run it synchronously or asynchonously, and retrieve images and results.
    As you mentioned, the other solution is to implement your state diagram in LabVIEW and use the Vision Assistant Express VI in different states. What VBAI give you that Vision Assistant doesn't is the pass/fail limits for each step (and the state diagram).
    Best regards,
    Christophe

  • Compatibility of developed Vision library with NI Vision Builder AI

    We developed a specific Vision library using NI LabVIEW and Vision Toolkit.
    My requirement is to identify the compatiblity of this library with NI Vision Builder AI.Can we use the existing VI's with Vision builder?
    Please provide me your comments asap.
    Regards:
    Vaibhav Kanchan
    Sr. Engineer
    NI Certified LabVIEW Developer(CLD)
    NI Certified TestStand Developer(CTD}

    There are multiple ways to add functionality to Vision Builder AI using a set of VIs you wrote:
    1) Vision Builder AI can run a VI you write that use your VIs using the Run LabVIEW VI step.
    2) You can also develop a custom step (that include the configuration page) for a better user experience, using the VBAI SDK, and use your VIs inside.
    With these 2 solutions, you will need to use a specific version of LabVIEW to integrate your library, as Vision Builder AI is a LabVIEW application, and VBAI will execute the code from the Run LabVIEW step, or custom step using the LabVIEW runtine engine that it was built with. The version of LabVIEW depends on the version of VBAI. For example, for VBAI 2011SP1, you need to use LabVIEW 2010.
    3) You can automate/drive Vision Builder AI from LabVIEW on Windows. (Open an inspection, run once, run continuously, etc, and get the resulting results and image that you can further process using your library. You can use the API on Windows with any version of LabVIEW.
    For example, the VBAI 2011 API supports LabVIEW 8.5 through 2011.
    You will run your developped application on Windows only, but it will be able to control Vision Builder AI running on remote targets.
    If you're running Vision Builder AI on Windows, I see no compatibility issues with any of the above solution, except for using the correct version of LabVIEW in the first 2 solutions I mentioned. Using 1) and 2), you will also be able to develop code that can run on targets that Vision Builder AI supports, like smart cameras, and embedded vision systems.
    If you plan to support remote targets, like smart cameras or Embedded Vision Systems, there are things to consider for your library to be compatible:
    These targets run different operating systems: some run Pharlap, some run VxWorks, all run LabVIEW real-time on these OSes. If you used LabVIEW and Vision Development module to build you library based on VDM, the only thing to consider is to make sure to use the same version of LabVIEW and Vision Development Module installed on the target. Let me explain:
    When you configure one of these remote targets from Vision Builder AI running on the Windows host machine, we install an image that contains a specific version of LabVIEW Real-time and Vision Development Module (For example, in the case of VBAI 2011 SP1, the remote target image has LabVIEW Real-Time 2010 and Vision Development Module 2011). Those should be the versions you need to use to create your VI to run with the Run LabVIEW step or custom step). We ran into some compatibility issues when customers update their Windows machine with a newer version of Vision Development Module, and write a VI or custom step they want to run in VBAI, that uses a new function that is not supported with the DLLs installed on the target.
    If your Vision Library uses some other DLLs (code you may have written in text based language or third party DLL), you will have to recompile the DLL for the operating system of the target (Pharlap or VXWorks, depending on the target) for the code to work on the remote target.
    Hope this helps and is not too confusing.
    Best regards,
    -Christophe

  • Vision Builder Crashes Labview

    I have an application where I need to acquire and inspect many high resolution images 3Mp at high throughput. 
    I'm using:
    LabVIEW 8.5.1
    NI-Imaq 4.1
    Imaqdx 3.2
    Vision Builder AI 3.6
    ISG 3Mp Camera through Startech 1394a PCI card
    In order to meet the cycle rate, I'm trying to multi-thread the application by having one thread that acquires images and enqueues them into another thread that saves them to the hard drive then runs the VBAI inspection.  The VBAI inspection then uses the "simulate acquisition" step inorder to load the image from the hard drive and make the appropriate measurements.  I've run the application and monitored the processor usage, and the processor seems to stay within 0-80%.  However, my application will crash intermittantly. 
    I've been able to repeat the behavior pretty reliably if I activate/toggle a ring control on my front panel while the cycle is running, and I can't do so if the VBAI thread is not running.
    I understand that this is could be a difficult problem to help debug remotely.  I'm wondering if there is anyone with similar experience, or some better way for me to creat a high throughput machine vision app with VBAI.
    Thanks,
    Ryan 

    Dear Ryan,
    You are right, this is difficult to debug remotely, but I can make a suggestion or two. Perhaps you've taken care of these, perhaps not...
    One potential downfall with this setup is running into a race condition. If you don't establish data dependency, and make sure that you save and close a particular image before trying to open back up again with VBAI, you could cause the behavior described. Race conditions would be even more of a concern if you were using a certain number of files as an image buffer, and then recycling through them. 
    What in this ring control? What does the ring control do?
    Have you tried generating LabVIEW code from your VBAI inspection, and then encapsulating the VBAI code in a subVI, and just passing your images into that instead of saving them to disk? I would suggest doing this to see if you still experienced the crashes when you are only working in LabVIEW, and without saving and opening images from disk.
    Let me know how things go; I hope the above suggestions provide some help. 
    Best Regards,
    ~Nate 

  • Vision builder ai

    Hello,
    I have a problem by LED function inspection test. This is on Vision Builder AI program. There is a camera, it captures an image. The images have a little different gain, brightness, contrast values, so the later inspections have different measure values. I would like to make a picture comparison between a captured image, and a reference image. After then, I would like to set the gain, brightness, contrast values automatically, like the reference image. 
    How can I make this? Whitch program? LabWIEV or Vision Builder AI?
    Thank, for your help!

    Dear koma1989!
    Is your problem still open?
    If yes, I suggest you to try with VBAI first, and if the results are not good enough, you can change to LV to create a more traceable application.
    In VBAI, (I'm using 2011 SP1) please choose the "Other.." option from "Run Inspection" section. Examples will open, and you can try out some, so you can get started easily in VBAI.
    I don't think there will be an already working solution for this application, but in my opinion you could put it together from example applications.
    If an example appears in Inspector interface (In title you can find "...-Inspector-..."), you can switch to edit mode via Inspection >> Switch to Configuration Interface
    From the examples I recommend you the followings:
    - Tutorial 4 - Tow cameras inspection
    - Classify Colours Example
    - Inspect Contours Example
    - Segment Color Image Example
    - And examples related to State diagram, since you have to check for differences, and than correct the image, so some processing regarding to the differences.
    I hope browsing examples will help to get some ideas, if you have any other questions, please don't hesitate to post them.
    BR,
    Balazs Nagy

  • Extract red image with Vision Builder Automated Inspection

    Hello
    I have 2 camera connected to a CVS and I want to process the images to have only the red part of the images.
    for that I tried to use VBAI but I din't sucess, I think nit should be in the vision assistant step, but I already tryed with "extract a color plane" and "treshold color", and when I test with an image it don't work.
    Does anybody know how to that?
    Thank you for your help

    Hello
    I may be find a way to delete everythimg that is not red by substract green and blue with vision assisatant, it seems to work.
    Now I try to extract only little part of the picture, only the part of the picture who are red, for that I created ROIs for some red parts of the images, and I want to record only this ROIs, to reduce the size of the file and kipping the same resolution.
    Does anybody know how to do that?
    I attach my Vision builder code to the message
    Thanks for your help
    Attachments:
    Color Example red-21-7-12h30.vbai ‏108 KB

Maybe you are looking for

  • Inbound proxy code

    Hi All, I have created one inbound proxy. I implemented the class used and i regenrated it. But method name was different before and after. My code is gone. Is there any way to retrieve it again?? Thanks, Archana

  • Need information on Detached portlet

    Hi, Do any one have an idea of what exactly is detached portlet and how to implement it.I got a few lines of information in edocs..but when i tried it didnt work. So can any one tell me how to implement detached portlet. My exact requirment is....in

  • Help, I accidentally threw out PS w/o uninstalling.

    I accidentally threw out PS CS3 w/o uninstalling, now I cannot uninstall the Creative Suite CS3 it is part of, nor can I reinstall any part of the Creative Suite CS3, or photoshop. I have tried the Adobe Manager and it fails to open, I have tried the

  • Volume change on track without disturbing set automated volume changes

    I'm finished with my first project. When it mixed down to iTunes, I discovered that one track needed to be bumped down just a bit; but I don't want to disturb all the automated volume contours that I already set. Surely I can lock the whole track or

  • WSS_Analytics_ReportingAggregation database proliferating rather than aggregating

    We're running SPS 2010 on SQL Server 2008 R2. For some reason the WSS_Analytics_ReportingAggregation.ndf databases that are spawned by the analytic service are not being aggregated back into the Analytics database. I'd like to know two things (I hope