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

Similar Messages

  • How to send variable from vision builer to robot?

    hi all,
    i have a project with vision builder that generate variable of position.these varible i want to send it to a robot.it  is possible to send it directly from vision builder to the robot or i must to send varible ti labview firstly then to robot?
    best regars

    Hi,
    Yes, you can send it directly to the robot using TCP/IP protocol:
    Vision Builder can be a server or a client. You can send data in string format or in raw format.
    Kind regards,
    Nikita.
    Did you know LabVIEW can control industrial robot arms? - www.digimetrix.com

  • Migrating inspection from Vision Builder to Labview

    When I migrate my inspection, which includes an Acquire Image function, from Vision Builder for AI 2.0 to Labview 7.0, it asks me to find a bunch of *.vi and *.ctl files such as "IMAQ Resource Manager.vi", "IMAQ Configure Buffer.vi", "IVB Image Providers Manager Function.ctl" etc. I cannot locate these files so I just hit "Cancel" when these messages pop up, and the migration is said to be successful but the resulting vi can not be run in Labview. What's wrong? I do have IMAQ Vision 7.0.1.

    All of the Vision Builder AI generated VIs are typically installed in the following directory: C:\Program Files\National Instruments\Vision Builder AI 2.0\LV\SubVIs. Within that folder you should have approximately 25 VI libraries (such as Common.llb, IVB Match Pattern.llb, etc.) and several other VIs (i.e. Inspect Result.vi and Inspect Setup.vi, etc.).
    Did you install Vision Builder AI to a different directory than the default location? Have you tried repairing/reinstalling Vision Builder AI?
    Best regards,
    Dawna P.
    Applications Engineer
    National Instruments

  • From vision builder to labview

    Would anyone possibly know how to convert a tool developed in vision builder for automated inspection into labview so that when we connect a thermal camera and have a live image, the tool from vision builder analyses the image on labview?
    Thanks for the help

    It is very weird, this is what I get as a reply when I try to convert from VB AI to LabView
    And here is also a picture of my NI License Manager, from where I have activated "successfully" VAS and VDM...
    I don't understand why it won't work...
    Attachments:
    conversion impossible.png ‏259 KB
    NI license manager.png ‏107 KB

  • How to send Variable from a web dynpro abap application to anthor

    HI all:
        I have two web dynpro abap applications .
        I want to send a Variable from a web dynpro abap application to another  web dynpro abap application  using post method.
        Because, now I have used append_field_url  to send Variable,but this method will display the Variable in the URL.
        I do not need this result.
        I need the Variable from a web dynpro abap application to another  web dynpro abap application  and the Variable will not display in the URL.
        Can you give me an example?
        Thanks.

    HI Nawal Kishor Mittal :
    I have tried your method,but I can not get the value of variable.
    My code is as follows:
    The first web dynpro abap application:
    DATA:BEGIN OF l_send,
         l_value TYPE string,
         END OF l_send.
    l_send-l_value = '400001'.
    EXPORT l_send-l_value FROM l_send TO SHARED MEMORY indx(aa) ID 'YTEST_MATNR'.
    The second web dynpro abap application:
    DATA:BEGIN OF m_send,
         s_value TYPE string,
         END OF m_send.
    IMPORT m_send-s_value TO m_send FROM SHARED BUFFER indx(aa) ID 'YTEST_MATNR'.
    DELETE FROM MEMORY  ID 'YTEST_MATNR'.
    Thanks.

  • Problem in sending mail from REPORT BUILDER...HELP ...PLS ....URGENT

    Hi All,
    I added the mailserver part in the rwbuilder.conf file.This is how it looks
    <pluginParam name="mailServer">smtp.xxx.com</pluginParam>
    The smtp server of our company is working fine.
    Now when i am sending mail frm report builder i am getting the error.
    Pls tell me .....
    Do i have to configure any other file?
    Should the smtp server be running in my local machine?WHAT IS THE SOLUTION ...FOR THIS PROBLEM?
    Please someone give me some guidance..
    regards,
    ashok

    Hi,
    Pls give some idea ......
    your reply will be greatly appreciated.
    regards,
    ashok

  • Need help sending variables from HTML to SWF...

    I have a header with tab buttons--- When you are on a certain
    page the coorisponding tab is a different color(as a locator).
    Right now I have like, 7 or 8 different headers that are the
    same thing minus the colored tab of the current page.
    Is there a way to code the flash so that I only need one
    header, but still keep the off-colored buttons when on the
    coorisponding page?
    Apparently, from what I have gathered I need to Send a
    variable to the SWF from the embedding HTML using FlashVars or
    SWFObjects' 'addVariable' method etc so the SWF knows which
    tab/color to use.
    But, I have no ideal where to start...uugggggg.
    Any Suggestions????
    I really, really need to figure this out.
    Thanks in advance,
    hutch

    the easiest way to pass vars to the flash is by appending
    them to the url of the flash:
    e.g your swiff is called "mymovie.swf" and you want a
    parameter "color" to be available on the _root level of your movie,
    so all you have to do is embed the flash with the following url
    into your html page:
    "mymovie.swf?color=black"
    now back in flash you can get the value of "color" like this:
    in _root timeline:
    color
    in any other timeline:
    _root.color
    the value will be filled once the movie is called from within
    the HTML as explained above

  • Send Variable From ASP to Flash to ASP

    I'm really, really new to Flash and using Flash 8 Pro. This
    is what I'm trying to do. I have a list of cars, when someone
    clicks on a car, they are taken to a page with details about the
    car and a flash gallery. The Flash Gallery is reads the image files
    names from an xml file. I'm really using an asp file (photos.asp).
    Anyway, I need the pass photos.asp the vin of the car from flash.
    I did this is the VehicleDetailSaleen.asp screen
    <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
    width="600" height="530">
    <param name="movie"
    value="photogallery.swf?VIN=<%=(Recordset1.Fields.Item("VIN").Value)%>">
    <param name="quality" value="high">
    <param name="VIN"
    value="<%=(Recordset1.Fields.Item("VIN").Value)%>">
    <embed
    src="photogallery.swf?VIN=<%=(Recordset1.Fields.Item("VIN").Value)%>"
    width="600" height="530" quality="high" pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    type="application/x-shockwave-flash"
    vin="<%=(Recordset1.Fields.Item("VIN").Value)%>"></embed>
    I just don't know how to catch it in the flash file and send
    it back....
    #include "scripts.as"
    LoadVars;
    loadPhotoXML("Photos.asp?VIN="+ this.vin);
    mclThumbnails.onEnterFrame=function(){
    thumbnailsRoll()
    function loadPhotoXML(filename:String):Void {
    photoXML.ignoreWhite = true;
    photoXML.load(filename);
    photoXML.onLoad = function(success:Boolean):Void {
    if (success) {
    photoNumber = 0;
    rootNode = this.firstChild;
    totalPhotos = rootNode.childNodes.length;
    for (var i = 0; i<totalPhotos*2; i++) {
    if (i<totalPhotos) {
    thumbnails
    = rootNode.childNodes.childNodes[0].firstChild.nodeValue;
    url
    = rootNode.childNodes.childNodes[1].firstChild.nodeValue;
    titleText
    = rootNode.childNodes.childNodes[2].firstChild.nodeValue;
    } else {
    thumbnails
    =
    rootNode.childNodes[i-totalPhotos].childNodes[0].firstChild.nodeValue;
    url =
    rootNode.childNodes[i-totalPhotos].childNodes[1].firstChild.nodeValue;
    titleText
    =
    rootNode.childNodes[i-totalPhotos].childNodes[2].firstChild.nodeValue;
    thumbnailsLoad(i);
    checkProgressLoad(0);
    caption.text = titleText[0];
    Please, I know I don't know anything, but I've been reading
    forums for 2 days and everyone seems to have a different idea but I
    don't really understand them. I just need a simple, do this, then
    this sort of help.
    Thanks,
    Heather

    heatherlsi. anyway you can post your resulting code? having
    probelm with writing a Flash to ASP script... thanks

  • Passing variables from DM to logic script problem (REPLACEPARAM)

    Dear All,
    I would like to send variables from data manager to a logic script. The script copies values from an account to an other. If I hardcode two accounts in the script, it works fine, but I want to pass these two accounts dynamically from data manager to the script.
    My advanced script in DM looks as follows:
    PROMPT(SELECTINPUT,%ENTITY_M%,,"Select entity:","ENTITY_DIM")
    PROMPT(SELECTINPUT,%SOURCE%,,"Select source account:","ACCOUNT_DIM")
    PROMPT(SELECTINPUT,%TARGET%,,"Select target account:","ACCOUNT_DIM")
    INFO(%EQU%,=)
    INFO(%TAB%,;)
    TASK(PROCESS_CHAIN_RUNL,TAB,%TAB%)
    TASK(PROCESS_CHAIN_RUNL,EQU,%EQU%)
    TASK(PROCESS_CHAIN_RUNL,SUSER,%USER%)
    TASK(PROCESS_CHAIN_RUNL,SAPPSET,%APPSET%)
    TASK(PROCESS_CHAIN_RUNL,SAPP,%APP%)
    TASK(PROCESS_CHAIN_RUNL,SELECTION,%ENTITY_M%)
    TASK(PROCESS_CHAIN_RUNL,LOGICFILENAME,ACCOUNT_COPY_LOGIC.LGF)
    TASK(PROCESS_CHAIN_RUNL,MEMBERSELECTION,SOURCE%EQU%%SOURCE%%TAB% TARGET%EQU%%TARGET%)
    In the logic script, I'm using $SOURCE$ and $TARGET$ as variables, but it seems that only the first of them gets the value from DM, the other one not, and I always get an error message:
        Member "$TARGET$" not exist
    The second variable doesn't seem to get the value. If I use only one variable, either SOURCE or TARGET, it works fine...
    ...and I also tried to replace the MEMBERSELECTION statement with a REPLACEPARAM statement:
    TASK(PROCESS_CHAIN_RUNL,REPLACEPARAM,SOURCE%EQU%%SOURCE%%TAB% TARGET%EQU%%TARGET%)
    This way I got an other error message, saying: "Member .../PrivatePublications/user not exist"
    Do you have any idea? How to pass two user selected parameters to a logic script?
    Thanks for your help,
    A.

    Hi CsernusAttila
    You cannot use ACCOUNT_DIM with promp SELECT  and variable $SOURCE$ because it only works with variable ACCOUNT_SET in your script logic.
    instead of you can use TEXT
    PROMPT(TEXT,%,ENTITY_M%%,"Select Entity",)
    PROMPT(TEXT,%,SOURCE%%,"Select Source",)
    PROMPT(TEXT,%,TARGET%%,"Select Target",)
    INFO(%EQU%,=)
    INFO(%TAB%,;)
    TASK(PROCESS_CHAIN_RUNL,TAB,%TAB%)
    TASK(PROCESS_CHAIN_RUNL,EQU,%EQU%)
    TASK(PROCESS_CHAIN_RUNL,SUSER,%USER%)
    TASK(PROCESS_CHAIN_RUNL,SAPPSET,%APPSET%)
    TASK(PROCESS_CHAIN_RUNL,SAPP,%APP%)
    TASK(PROCESS_CHAIN_RUNL,SELECTION,%SELECTION%)
    TASK(PROCESS_CHAIN_RUNL,LOGICFILENAME,ACCOUNT_COPY_LOGIC.LGF)
    TASK(PROCESS_CHAIN_RUNL,REPLACEPARAM,SOURCE%EQU%%SOURCE%%TAB% TARGET%EQU%%TARGET%)
    or you can modify your script like this
    *XDIM_MEMBERSET ACCOUNT=%ACCOUNT_SET%
    *XDIM_MEMBERSET ENTITY=%ENTITY_SET%
    And your Prompt like this
    PROMPT(SELECTINPUT,,,,"%ACCOUNT_DIM%,%ENTITY_DIM%,")
    TASK(PROCESS_CHAIN_RUNL,TAB,%TAB%)
    TASK(PROCESS_CHAIN_RUNL,EQU,%EQU%)
    TASK(PROCESS_CHAIN_RUNL,SUSER,%USER%)
    TASK(PROCESS_CHAIN_RUNL,SAPPSET,%APPSET%)
    TASK(PROCESS_CHAIN_RUNL,SAPP,%APP%)
    TASK(PROCESS_CHAIN_RUNL,SELECTION,%SELECTION%)
    TASK(PROCESS_CHAIN_RUNL,LOGICFILENAME,ACCOUNT_COPY_LOGIC.LGF
    I hope it helps
    Regards!!

  • 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

  • HELP!!!!!  Sending variables

    I am trying to send variables from a flash form. No trouble
    for the normal form variables that sit at the root level, I press
    my submit button (which is also on the root level), and they all
    get sent fine. However, the variables that are inside a movie clip,
    are not sent (they are in a movie clip as I have made a drop-down
    menu for a multiple choice form question). This is the problem. Can
    anyone please save the day and tell me how to send these variables
    when I press submit?

    what code are you using to send your variables?

  • 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

  • LoadVars-using send to pass a variable from flash to php

    For the life of me, I've tried everything:
    I've researched LoadVars on Adobe forum, used David Powers'
    books, googled 'flash to php', LoadVars, etc. and tried
    sendAndLoad, send, and using $_POST, $_GET, $_REQUEST.
    $HTTP_POSTVARS but I keep getting this same error. any advice
    please?
    I have a Unix server running Apache/PHP 4 - LoadVars worked
    to load name-value pairs into an array -see thread)
    My goal with this simple app is to prototype being able to
    pass a variable from flash to a variable in php.
    Parse error: syntax error, unexpected T_VARIABLE in
    flash_to_SQL.php on line 5
    Actionscript 2.0 code:
    var c :LoadVars = new LoadVars();
    c.testing = "123FOUR";
    c.send ("
    http://127.0.0.1/flash_to_SQL.php","_self","POST");
    php code: (I also tried $_POST, $_GET, $_REQUEST.
    $HTTP_POSTVARS)
    <?php
    //mysql 4.1.2, php 4 , NO mysqli
    ecbo $_REQUEST ['testing'];
    /?>

    var formData:LoadVars = new LoadVars();
    formData.fname = "Name";
    formData.send("
    http://www.website.com/flash_php.php",
    formData, "POST");
    <?php
    $name = $_POST['fname'];
    echo $name;
    ?>

  • 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

  • Who send mail from Forms 6i Builder?????

    I need send mail from Forms 6i Builder
    Please help me.
    Write me to [email protected]
    thanks.

    I need send mail from Forms 6i Builder
    Please help me.
    Write me to [email protected]
    thanks.

Maybe you are looking for