Vision Assistant Express VI Output Signal

Hello.
I am using LabVIEW to try and detect the presents of a part with a USB camera. I have set up a match pattern inspection in Vision Assistant and want to output a Boolean signal if a pattern is matched.
Thank you

Thank you for the reply it was really helpful! I have one more question which is still relating to the Vision Assistant Express VI. I'm using the 
Edge detection, which has a threshold value to output a numeric 1 or 0 depending is a part passes the region of interest. I’m using a numeric compare function to send a Boolean indicator high or low. I want to add to this by counting the number of parts that pass through the area of interest but I’m having a difficult time working out how to do this.
I would like to set a variable that will increment every time the indicator is pulsed but I haven’t been able to find a way to do this. I’ve also looked into the possibility of using a shift register.
Thanks

Similar Messages

  • Upgrade issues with Vision Assistant

    Hi Guys,
    I have encountered a problem with finding and analysing data from vision assistant since I upgraded to the new labVIEW 2013 SP2 a couple of weeks back. Within my application I perform countless camera inspections using vision assistant however i have noticed that for 4 particular inspections my vision assistant does not perform as it should. All other inspections have worked perfectly which is quite strange. Even the scripts are the same along witht the file directory locations. The first error was -1074396120 IMAQ Match Pattern3 saying the possible error was because it was not an image etc. However, after instancing a known working script into vision assistant for that inspection i receive an image but I dont receive an output from visin assisant that I am looking for.
    Within my inspection I look for 4 templates and an OCR check etc and perform boolean logic to give me a true/false result. When i run my application i always get a false result, even my probes tell me there was no template match etc but when i open up the script and run it all the templates are picked up! I created a new less complicated inspection where i only look for one pattern and again i get a false result. Has anyone got any ideas? I am a bit lost at the moment considering non of the other inspections have been affected. Even creating new file paths for directories but no joy!
    Thanks in advance guys! 

    Hi Chris,
    I was away for a few weeks. I have attached an image with template. The version I currently run is Development 2013 SP1 and the Vision Development module 2013 SP1 see attachment (Doc1). The executable runs perfectly for all of my inspections which is over 100 and only 2/3 fail because it will not find the template. The template has the same file paths as all the other inspections. When running the application i receive a fail because it doesnt see a template i believe. However, when i open the vision assistant express VI and run through the script it finds the templates no problem. Any advice is welcome.
    Damien
    Attachments:
    230.png ‏2220 KB
    Edge Template2.png ‏223 KB
    Doc1.docx ‏115 KB

  • 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

  • NI Vision Assistant - "Create LabVIEW VI" produces a blank VI

    Hello, I'm using:
    - LabVIEW 2011 SP1 v11.0.1 32bit
    - Vision Assistant 2011 SP1 Build 20111212112331
    When I create a simple script in Vision Assistant and click on "Create LabVIEW VI", the VI file is created, but when I open it, I can only see a blank VI.
    I really hope someone could help me, I don't know how to solve this problem.
    If you need more informations, I'll provide them.
    Thank you!

    Hi Claudio, I added the following Express VI in a blank block diagram, like you suggested:
    "Prompt User for Input"
    "Vision Acquisition"
    No error messages appeared after having placed them in the block diagram, or after their configuration.
    However, if I place a "Vision Assistant" Express VI, I still receive the following message error after having configured it:
    "There was an error in the process of creating the Express VI's code"
    Moreover, I tried to repair the following modules, in sequence:
    NI Vision Common Resources 2011 SP1 f1
    NI Vision Assistant 2011 SP1
    NI Vision 2011 SP1
    For each of the 3 reparations, I had to reboot the PC. However, the problem hasn't disappeared, I'm still unable to generate a VI by using Vision Assistant.
    I really hope to solve this annoying problem, because the day of my exam is getting closer... so suggestions are more than appreciated, at this point I don't know how I could fix that.
    In attachment you can find a simple Vision Assistant script, and the blank VI produced. Please note that Vision Assistant always produces a blank VI, no matter of the script, like I stated earlier.
    A final note, I tried to generate C and .NET code for the script in attachment while using Vision Assistant, and it seemed to work (no message errors or blank C/.NET files produced), so this is a problem related to LabVIEW code generation only.
    Attachments:
    Simple_script_but_still_not_able_to_produce_a_VI.vascr ‏2 KB
    Blank_VI_produced_by_Vision_Assistant.vi ‏5 KB

  • INSTRUMENT I/O ASSISTANT EXPRESS VI - PERFECT PARSING NO OUTPUT

    I am using the Instrument I/O assistant express VI to parse data from a (visa) serial port. Neatest thing since sliced bread! I initially send a write command followed by eight read/parse commands to retrieve eight tokens each ending with cr/lf. All seems well during i/o setup. The Vi compiles and shows all eight string tokens. I then connect each one to a string indicator. When the Vi is run no data appears in the indicators. Repeated runs during the I/O setup shows tokens extracted perfectly. What's going on? 

    Hello oledaqman,
    I tried to replicate the problem you are seeing, but everything seems
    to work fine on my system.  One option I would propose would be to
    use NI-SPY to determine if the reads are actually being performed when
    you run the VI.  NI-SPY should allow you to determine if the VISA
    commands inside the Express VI are being executed, as well as
    determining whether they are receiving any data.
    This will help us to determine whether the problem lies in the actual
    transmission of the data, or the parsing of the data after it is
    received.
    Let us know what you find, or if you have any questions, and we will be happy to help.
    Jason S.
    Applications Engineer
    National Instruments

  • Tone measurement express vi affect the output signal?

    Hi everyone, I am doing a oscilloscope to measure the input signal coming from my analog input of myRIO. I am still new to Labview and I not sure how to implement the tone measurement to measure my signal frequency, amplitude and phase. The first diagram below show the program before i haven't add the tone measurement express vi, the signal get from the waveform graph seem great. However, when i added the tone measurement express vi, the signal seem distorted and unstable. Does anyone know how to solve this problem? Is it the way I implemented is wrong?
    Figure 1: without tone measurement express vi
    Figure 2: with tone measurement express vi

    I would like you to prove the "bug" that you're describing by creating an example that shows the calculated and the expected results. By opening the code of the "Spectral Measurements" Express VI you can dig into the heart of the calculation, and there (in the "ma_FFT Power Spectrum and PS Density no State.vi") you will see that the Power Spectral Density indeed IS calculated by using the formula PSD = (Power Spectrum/(df*Noise Power BW of Window)). See the attached PSD.jpg that shows where the calculation happens.
    The Power Spectral Density is supposed to be dependant of the chosen Window. Please read chapter 5 "Smoothing Windows" in the "La
    bVIEW Analysis Consepts" manual.
    Best regards,
    Philip C.
    National Instruments
    - Philip Courtois, Thinkbot Solutions
    Attachments:
    PSD.JPG ‏139 KB

  • No Image - 1473R With Vision Assistant

    Hopefully this is a simple fix and I'm missing something very obvious, so here is what's up. I'm originally a text programmer but for this project I'm stuck using LabVIEW which is completely unfamiliar; I've been working on this for days with no progress so I thougt I'd see if anyone had some pointers. The goal of the project is to use the PCIe-1473R FPGA to do live gain control, overlay, and maybe some recognition.
    I started with the "Image Processing with Vision Assistant on FPGA" example and made a few simple changes to just attempt to get a video feed through. The camera we are using is a Pulnix TM 1325 CL, which outputs a 1 tap/10 bit Camera Link signal. Since this example VI is originally configured 1 tap/8 bit I changed the incoming pixel to be read as 1 tap/10 bit and compiled and tested. When I try to start video acquisition I get no errors but no frames are grabbed. The frame's acquisitioned count does not increase and nothing is displayed. If I switch to line scan I get a scanning static image, but this is not a line scan camera and my other NI frame grabber card shows an image from the camera fine.
    I wasn't all that surprised with this result, as the input is 10 bit and the acquisition FIFO and DMA FIFO are both 8 bit orginally. So, I changed them to U16 and also changed IMAQ FPGA FIFO to Pixel Bus and IMAQ FPGA Pixel Bus to FIFO blocks on either side of the Vision Assistant to U16. With this configuration, I again get no image at all; same results. I suspect this is because the incoming image is signed, so the types should be I16 instead. However, there is no setting for I16 on the Pixel Bus conversion methods. Am I not understanding the types happneing here or is there an alternative method for using Vision Assistant with signed images? I'd think it'd be odd not have support for signed input.
    Anyway, I've tried all the different combos of settings I can think of. Does anyone have any input? I feel like it must be either a buffer size problem or a signing problem, but I don't really know. Any and all input is welcome!
    Thanks for helping out a new guy,
    Kidron

    I ended up resolving this issue by switching cameras. The end goal was to use a FLIR SC6100, so I switched to it and was able to get things working shortly. The FLIR does use unsigned ints, so I believe that's what resovled the issue for anyone running into this in the future.

  • Labview Vision Assistant Histogramm Problem

    Good Morning,
    i sadly with the Vision Package from Labview. I want to load a picture and interpretation a detail of the picture with black, white and grayvalve. This can i make with the Vision Assistant feature Histogramm. When i build it (the VI with Vision Assistant) comes nothing to the output Histogramm. I have checked the output line Histogramm, but nothing goes out of this.What are my failure?
    Thanks a Lot
    german translation:
    Hallo zusammen,
    ich bin leider noch nicht richtig mit dem Vision Paket vertraut. Ich möchte die Schwarz, Weiß und Grauwerte eines Bildausschnittes auslesen und diese auswerten können. Dank des Vision Assistant, kann ich dies per Mausklicks erzeugen, jedoch erhalte ich am Ende des Vis keine Daten. Selbst wenn ich die Quelle verbinde und ein Anzeigeelement hinzufüge, kommt hinten nichts raus. Was ist mein Fehler?
    Vielen Dank
    -motecpam
    Labview Vision 2011 Servicepack 1
    with Vision Development Modul
    Attachments:
    Screenshot_VI.jpg ‏230 KB
    Screenshot_Vision_Assistant.jpg ‏313 KB

    Hallo Tropper,
    vielen Dank erstmal für die Antwort.
    Leider erhalte ich dennoch keine Ausgabe am Histogramm.
    Das Histogramm wird mir leer angezeigt.
    Ich habe es so erstellt, wie von dir gezeigt.
    Attachments:
    Unbenannt.jpg ‏117 KB

  • Vision Acquisition Express vi stopped working

    Hi everyone,
    The Vision Acquisition Express vi always worked perfectly on my pc, but suddenly, he stopped working today (I can drop it on the block diagram,but there is no pop-up or something,
    I tried the following:
    - restart pc (didn't help)
    - try other express vi's (including other vision express vi) (worked fine)
    - convert it to normal vi (empty vi as result)
    - open properties with rightmouseclick (didn't help)
    - open an example en doubleclick and rightmouseclick properties (didn't help)
    Anyone an idea??
    Best Regards,
    Henk
    Solved!
    Go to Solution.

    Hi Henk_kempen,
    This is really weird. Do you know what has happened to the VI/PC before this happen?
    There are some troubleshooting you can try.
    1. This problem really close to DAQ assistant issue in this white paper. You might try the method in the link below to see if this solve your problem.
    http://digital.ni.com/public.nsf/allkb/5CD79190713D2B558625765F007FCC99
    2. Repair the software is another option. It worked in many cases. 
    3. I try to avoid this but reinstall the software may help in your case.
    Best regards,
    TuiTui

  • Can't see the "DAQ assistant express VI" in LabView7 express

    i am using the LabView 7 express avaluation package, and trying to use my PCI 6132 DAQ card with it.
    i cannot see the "DAQ assistant express VI" simbol in the "input" box, and therefore cannot connect to the DAQ.
    all drivers are installed, and i manage to log data directly from the DAQ, using the "Measurement & Automation" software.
    any ideas?
    doe's the evaluation version even supports this DAQ?

    GilKlar,
    Did you install DAQ first, or LabVIEW? The most common cause of this problem is that DAQ support was installed before LabVIEW support. In this case, the DAQ driver will not find any valid installations of LabVIEW and thus, will not install the necessary VIs. Please try repairing the DAQ installation and making sure that support for LabVIEW is checked.
    If this does not solve your problem, please let us know what version of the DAQ driver you are using, as well as how you are acquiring data in MAX.
    Hope this helps,
    Ryan Verret
    Product Marketing Engineer
    Signal Generators
    National Instruments

  • Labview Vision Assist IDS camera

    I ordered a camera from IDS, the 3360CP. This is for my thesis. IDS has there own VI's for labview for the camera.
    The problem is that the image which is generated with those VI's is not compatible with the
    vision assistant module in labview 2013. I'm looking for a way to convert the image.
    I included the VI. If it doesn't open propperly the flowwing link can be used to install the labview VI on your pc.
    https://en.ids-imaging.com/download-ueye-interfaces.html
    They can be found under program files/IDS/uEye/otherdrivers/labview.
    Kind regards,
    Maarten Vanoverberghe
    Attachments:
    uEye_SimpleLive.vi ‏104 KB

    The IDS cameras that require use of their SDK (the VIs they supply) are not directly compatible with IMAQdx, and hence, not suitable as image acquisition devices for use in Vision Assistant, and Vision Builder for Automated Inspection.
    You will need to incorporate the IDS VIs into your pipeline in a way that makes the acquired image available to the script.  Most likely, this would be by writing the image to disk, and then signaling the script that the image is ready. If you need fast frame rates, and are not able to do everything in pure labview, I recommend looking at a different camera.
    Machine Vision, Robotics, Embedded Systems, Surveillance
    www.movimed.com - Custom Imaging Solutions

  • Starting triangular output signal

    Greetings,
    I made this VI, but there's an error in it and I don't think it's solvable like this.
    The triangular output signal should start when I press the boolean. Else the DAQ Assistant should put out 0V.
    Also when I press the stop button the DAQ Assistant has to put out 0V
    Is there another solution?
    Thanks
    Solved!
    Go to Solution.
    Attachments:
    Screenshot.png ‏23 KB

    I recently made a solution by using the "Select" function.
    The Triangle Pattern produces the pattern I want the DAQ Assistant to send out the Output Signal.
    I'm using a USB 6008.
    But now I have a different issue. When I press the Start button, there's a sudden high pulse of 1V and then the output continues the regular Triangle Pattern.
    Attachments:
    Triangle voltage .jpg ‏35 KB

  • Rewrite template vision assistance for image match

    hey guys , im using labview to detect an image and record its x-y coordinates.
    does anybody know how i can automatically change , in runtime, the template used to match .
    i get my template from the Vision Assistant Block 
    please please help
    Kevin
    Solved!
    Go to Solution.

    Hey Kevin,
    If you configure the Vision Assistant block and place it on your block diagram, you can then right click on it and select "Open Front Panel."
    This shows you the LabVIEW code that the Express VI is running behind the scenes. From here you can find any parameters you have set, put down as constants. So for example, the file path you chose for the template is on the block diagram as a file path constant. 
    You can right click on this and change it to a control, and then link this control to the connector pane
    Reference: http://zone.ni.com/reference/en-XX/help/371361H-01​/lvconcepts/building_connector_pane/
    After saving this VI, and closing it, you will notice some changes to your main VI. Firstly the vision assistant block will have changed colour to yellow, and secondly, it will have one more input added to the bottom (if you drag it down) which is for the control you set in the subVI.
    The attached example then adds a case structure to select the file path you want to use as a template during runtime. It would be better practice to use an event structure, but hopefully this works for demonstrative purposes.
    Let me know if this helps out Kevin.
    Thanks,
    Justin, Applications Engineer
    Attachments:
    Vision example.PNG ‏40 KB

  • Vision assistant subtract images

    How do you subtract two images?
    I have load two images in vision assistant and I can "flip" between them but I cannot figure out how two subtract them. I guess I need to use the image buffer but it seems to load the same image into the buffer as I am working on. 

    Hi sorinpetrila
    You would get more responses if you create a new post.
    Working with buffers in IMAQ is fairly simple. First you need to figure out if you want a sequence (single run through where you fill up the buffer), or if you want a sequence ring. Where you start to overwrite the start of you buffer after X number of images.
    You would need to use the first option for a single acquisition where you have enought memory to store all the images you want which is normal for if you want to acquire i.e. 100 images and then process them afterwords
    The second option you would use in 2 circuimstances
    1) You have images coming in a burst. 100 pictures wait 1 second 100 pictures wait 1 second.
    2) It takes you longer time to process the image than to acquire it (i.e. 5 times as long). And you would there fore need to store the last 5 images in the buffer so you can handle the longer processing time without acquisition time to go down.
    The best way to learn these techniques is to look at the shipping examples:
    LabVIEW --> Help --> Find Examples
    Browse for task
    Hardware Input and Output --> Vision Acquisition --> NI-IMAQdx
    High LEvel Sequence.vi shows you option 1
    Low Level Grab shows you option 2 as far as I remember (don't have my LV computer here)
    National Instruments have a Machine Vision course which thoroughly walks through these principles and have exercises in both examples.
    Best Regards
    Anders Rohde, CLD, Platinum Applications Engineer

  • Sometimes I cannot select an airport express to output sound from a current model mac air/10.9.3. The output jumps back to internal speakers or apple tv. Any ideas?

    Sometimes I cannot select an airport express to output sound from a current model mac air/10.9.3. The output jumps back to internal speakers or apple tv. Any ideas?

    Hello Cloud19,
    The article linked below provides some helpful information and troubleshooting that can help resolve issues with AirPlay and your Airport Express.
    iTunes: Troubleshooting AirPlay and AirPlay Mirroring
    http://support.apple.com/kb/TS5209
    Cheers,
    Allen

Maybe you are looking for