Can't control color sensor in LabView for Mindstorms

Hello!  New here.
I'm trying to bone up on LabView via "LabView for Lego Mindstorms" for a possible job in the near future and I've run into a problem early on.
I'm programming my Lego brick in LabView to simply turn on the color sensor which is easy enough:  I build a while loop and inside that I have a color sensor block connected to a text block which displays light intensity from the sensor in text on the brick.  I compile and run and the sensor turns on and I can read the constantly updating intensity on the brick.  That part works fine.  Now I'd like to control the light sensor (which doubles as a light source with color LEDs) on the LV front panel.  The book I'm using (LabView for Lego Minstorms) says I need to right click the sensor block on the "generate light" input and choose "Create-->Control" from the resulting menu.  A Boolean pushbutton should appear connected to the sensor block in the Block Panel and a push button should appear in the Front Panel.  That's not what happens.  Two things are different here.
1) I have no "generate light" port to right click on.  This is probably due to using a more up to date version of Mindstorms than the book uses.  That's a book/Mindstorms issue that probably can't be solved here but hopefully solving the next issue will make this one irrelevant.
2) I right click and create the control, but instead of creating a Boolean push button as the book predicts, it creates a "BrickReference.lvclass" icon.  It connects okay with the light sensor and a corresponding block is created in the Front Panel but it is a paper weight as far as I can tell.  I can't do anything with it.  There is no button to push, no slider, knob, radio button etc. and I can't seem to change it into anything that works in any way.  I delete it and create a no kidding Boolean push button from the library but it won't connect to the light sensor and so I can't compile.  So now I'm a bit stuck.
I've looked for "Brick Reference" on line in the context of LabView class and have found little or nothing that tells me about its definition or how I can use it to control the light sensor via the Front Panel.  The help section with the software isn't much help either and yet I'm sure there must be a way to control a simple Lego light sensor from the Front Panel for debugging and other purposes.
If you know what I'm doing wrong or if you know an end run around this issue that will enable me to control a Mindstorms brick from the Front Panel in this way, please let me know.
Thanks!
Solved!
Go to Solution.

Try posting in the Lego forum.
http://forums.ni.com/t5/LabVIEW-for-LEGO-MINDSTORMS-and/bd-p/460

Similar Messages

  • How do you add a third party sensor to LabVIEW for Lego Mindstorms​?

    I recently purchased an IR Sensor from Mindsensors (DIST-Nx-Long-v3) which I need for a SLAM (Simultaneous Localization and Mapping Application) that I am developing using the LabVIEW for Lego Mindstorms software.  I installed the Mindsonsors IR Sensor, and it works under NXT-G and RobotC, but am having trouble finding a way to get LabVIEW for Lego Mindstorms to install the sensor.
    The Mindsensors website gives the following instructions for installing the IR Sensor:
    1.Unzip the folder mindsensors.com LVEE
    2.Open a blank vi in LVEE
    3.On the Block Diagram Go to Tools->Advanced->Edit Palette Set...
    Unfortunately, on the Block Diagram of the LabVIEW for Lego Mindstorms, there is no "Advanced->Edict Palette Set" under Tools.
    As an alternative, I consulted the documentation that came with LabVIEW for Lego Mindstorms.  The Schematic Editor of LabVIEW for Lego Mindstorms lists several sensors, i.e. the Lego Mindstorms sensors and several Hi-Teach (HT) sensors, but there are no procedures listed in the documentation for adding other third party sensors to the Functions Palette.
    So, how does one go about adding a third party sensor to LabVIEW for Lego Mindstorms?

    Hi Ethan,
    As you can see from my Word document, I am a little light on the proper terminology.  That's because LVLM comes with inadequate documentation.
    I have already followed your recommended protocol for installing a 3rd party sensor (in fact, its the protocol recommended by Mindsensors) with the application set in the Remote Mode (.lvrbt), and it does create a sub-palette with all the Mindsensors functions on it.  But when I drag the Mindsensors icon to the Block Diagram and select "Distance Sensor," the Distance Sensor (an IR sensor) doesn't work (even though the Mindsensor's Distance Sensor does work with NXT-G, RobotC and LVLM under other circumstances (see below)).
    If I repeat the above process with the application set in the Direct Mode (.vi), I also get the sub-palette with all the Mindsensors functions on it.  When I drag the Mindsensors icon to the Block Diagram and select "Distance Sensor," the Distance Sensor does work.
    What I need for my mapping application is for the Distance Sensor to work in the Remote Mode.  I called NI tech support and the first engineer told me to simple drag the Mindsensors Functions (.vi) onto the Block Diagram.  I did this, but when I selected the Distance Sensor, the icon appeared, but the sensor did not work.  Since I have no idea what's under the hood of the vi or a function, I assumed that simply dragging the vi/function onto the desktop didn't install the vi/function properly.  I went back to the Applications Engineer, and he confessed that he did not understand the LVLM product.
    My frustration is being punted to new people, none of whom so far (other than you, of course) understand LVLM.

  • How can i control a sensor CNY70 with labview?

     i am taking a mechatronics course and they ask me as homework to control a sensor but i don not understando what can i control from this sensor, i expect you could help me

    i would start with working out the system, datasheets on the cny70, work out exactly what is required from the question. spec out the hardware, then start writing out rough ideas. Keep looking back at the question and it will all slowly make sense. I wouldnt dive straight into coding until i understand exactly what i need to be trying to achieve.
    once you understand exactly what you need to achieve and with what hardware you can look into planning the code and taking it from there. If you get stuck with coding feel free to ask for help and post the code you have as most people on here will heppily pass contructive critisism as well as help you through the parts your struggling with  
    Please remember to accept any solutions and give kudos, Thanks
    LV 8.6.1, LV2010,LV2011SP1, FPGA, Win7

  • How to control Color Mode and Resolution for brochure creation?

    Hello guys,
    I am trying to find some settings within Pages, where I could set CMYK color mode and 300 dpi resolution for my pdf file.
    I am creating brochure from scratch, using blank document, because non of brochure templates work for what I need. But I can't find any controls for color mode and resolution set up.
    Is there any solution for this?

    There has been a lot of discussion in the Pages forum about resolution and some on CMYK.
    Much of the discussion has been incorrect.
    For the colour handling there is the colour palette
    The Apple Colour Palette is the user interface for colour managing vector objects created in Apple Pages such as rules and panels and for colour managing one class of vector objects not created in Apple Pages, namely typographic objects.
    Imported objects maintain their colourant model and colour space, if there is one. If there is none, a colour space is assigned and the assigned colour space is saved out into the PDF, opposite e.g. Adobe Photoshop which will colour manage the object in the open editing session, but will then save out the object to disk without the assigned ICC profile if 'Colour Management: Off' is configured.
    Therefore, if the imported object is data space CMYK and the colour space device CMYK, the system will assign the Generic CMYK Profile which is equivalent to ANSI CGATS TR001 colourimetry (US SWOP); if the imported object is data space RGB and the colour space is device RGB, the system will assign the Generic RGB Profile which is equivalent to sRGB colourimetry in OS X 10.5 and higher.
    In general, always capture and then convert for correction in one of two data spaces with three channels, either ICC colour managed RGB or ICC CIELa*b D50. Then convert to CMYK1, CMYK2, CMYK3, CMYKn from the ICC colour space chosen for correction and archiving. This colour space should be large enough to hold any colours that the output colour spaces can hold.
    The Apple ColorSync Utility has a gamut comparison dialogue which is 3D (point, press, and turn the 3D gamut comparison). Use this facility to pick an ICC colour space of reasonable size and shape for correction and conversion into final output. Don't pick sRGB as a quick look will show that it can't hold as input what ISO reference offset can hold as output for pure cyan, let alone hold what a big inkjet can hold in greens, blues, reds and yellows.
    The ICC architecture lets the ICC profile for the printed output match out of gamut colours to in gamut colours using the Perceptual rendering intent, as intended in the original architecture from 1995. Adobe internally introduced an inhouse conversion for compatibility with PostScript and as default for PDF, Relative Colorimetric with Adobe Black Point Compension. Relative Colorimetric is in fact a proofing transform, without gamut mapping. Black Point Compensation is a simple linear scaling of the lightness to compensate for the fact that the shadows will be clipped in a Relative Colorimetric conversion.
    The other problem is transparency, introduced in the QuickDraw Graphics Extension for Mac OS 7.5. Transparency is not supported in any version of Adobe PostScript (level 1, level 2 or level 3). Transparency is also not supported in any version of Adobe PDF prior to version 1.4 and higher. Therefore, unless the RIP Raster Image Processor is able to accept PDF 1.4 and higher, transparency has to be rendered / flattened which is done in the PDF/X-3 filter of the Apple ColorSync Utility.
    The idea in the PDF/X-3 filter (for Adobe PDF 1.3) is that the everyday enduser, after placing ICC colour managed RGB or CIE La*b D50 objects, and after choosing an ICC colour space for objects created in Pages, chooses the ICC colour space for the output condition. The filter accepts both ICC profiles of type MNTR Monitor with data space RGB, ICC profiles of type PRTR Printer with data space RGB, and ICC profiles of type PRTR Printer with data sapce CMYK.
    The colourant conversion (RGB to CMYK) and the gamut mapping (out of gamut colours in input colour spaces mapped to in gamut colours in output colour space) is then calculated as per the ICC profile for the output condition. An output condition is the combination of factors that affect how colour is formed: the colour lightness and colour tint of the paper, the colours of the colourants, and the tone value increase. Think of gamut mapping in a good ICC profile as Format 1 kerning in a TrueType font (where your font has state-based kerning for up to 8 glyphs simultaneously).
    Below a link to a discussion of how to change the default PDF/X-3 filter the Apple ColorSync Utility. "Wegen diverser Fehler im Mac OS X empfiehlt es sich, wo immer möglich, die PDFs ohne Transparenzreduktion (also auf normalem Weg) über den Befehl Als PDF sichern zu erstellen und das Flattening der Druckerei zu überlassen," that is, pick the plain save as PDF path and leave the transparency flattening to the prepress technician.
    Henrik
    Reference:
    http://www.icalamus.net/tutorials/howtocreatepdfx.php

  • Can I control Internet Explorer via LabVIEW?

    I want programmatic access to web pages via LabVIEW.  I have tried using "URL Get HTTP Document.vi" but am rejected at some sites.  I have controlled IE via VisualBASIC before.  Just wondered if it was possible via LabVIEW.
    Thanks in advance for any help.

    Hi,
    Well it depends on what exactly you want to do but with ActiveX you can control IE (or FireFox) from LabVIEW.
    See that thread for more info
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

  • Can I control the amount of time for timed loop

    I was curious if it is possible to control how long each frame of the time loop takes or does it have to be constant for each section?

    You can change the period for the following iteration.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    change period.PNG ‏9 KB

  • Can I control PIC programmer using LabVIEW

    Can I program a PIC microcontroller entirely in Labview Environment using a commercial PIC Programmer?
    Could everyone give me any advices? Thank you

    Here is a link to another post asking the same questions.
    Here

  • How can I control PIC programmer with LabVIEW

    I need to control a PIC Programmer (MPLAB PM3) with LabVIEW. How to do this?

    Hi Paul.
    I am working on a project that is using LabVIEW to communicate via serial communication with 4 programmers (Com 1, 2, 3, & 4). I am currently using the Microchip PM3 programmer DOS utility PM3CMD.exe to send/receive commands from the system exec.vi in LabVIEW. I am attempting to program simultaneously with 4 programmers, but the PM3 programmers are returning a database error if I try and communicate with more-than 2 programmers at a time. I noticed that you have some experience with some drivers from Microchip and using serial commands.
    Do you have any suggestions that may help me.
    Thanks.

  • LabView for Embedded Systems

    Hi all.
    I intend to develop an Embedded System, based on an ARM9 MCU, and I´ve been wondering if LabView could be used to create stand alone applications to run on such a system.
    I can use Windows CE, or Linux on my system, but I prefer Linux.
    Can I develop applications directly on LabView for Linux?
    What minimal resources would be needed to run an average LabView application on such a system, like memory capacity, minimal MCU clock speed, etc?
    I´ll apretiate any comments, since I have no ideia about what can be done with LabView out
    of the PC universe.
    Thanks alot.

    You can run LV EXEs (not the development environment) on CE if you buy the LV PDA module. Note that applications built using this lack features regular LV applications have.
    I remember some threads dealing with the minimum necessary to run LV on linux. If I remember correctly, the basic idea is there are a few official linux versions supported and that anything outside those you will have to experiment on your own. Here's one example. You can try looking for more.
    If you want, official requirements can probably be found in the main LV linux page (whereever that is).
    Try to take over the world!

  • Can not control the color in JOGL

    I am a beginner to use JOGL.
    I find that I can not control the color, both background and foreground. The background is always Black, and foreground is always Red.
    I use canvas.setBackground(Color),
    gl.glColor3*(), trying to change the color. But it does not work.
    What is the problem?
    Thanks.
    Toby

    A big help for learning JOGL is reading the Red Book from OpenGL, which can be downloaded in pdf. Since JOGL is almost a direct wrapper, the function calls are identical.
    To set the background color, you need to add a GLEventListener to the GLCanvas that you're using. To set the background color, in your init() method for GLEventListener do:
    public void init(GLAutoDrawable glad) {
    GL gl=glad.getGL();
    gl.glClearColor(r,g,b);
    or something similar, I'm not on my normal computer so this was all from memory. Check the JOGL API for the exact method name for glClearColor. To change the foreground color, there are a bunch of various methods that are all similar to glColor3f(float r,float g,float b).
    Calling this on the GL object in the display() method will set the foreground color and everything drawn that isn't using lighting will use this color.

  • Can't access Color Management options for HP 6700 under Mac OS 10.8.5 (Mountain Lion)

    Hello.
    I've got the HP Officejet 6700 Premium e-All-in-One and I can't find any way to access Color Management options.
    The printer is attached (Wi-Fi) to my iMac running Mac OS 10.8.5 (Mountain Lion).
    I want to correct a magenta cast to photographs that I've printed.  I've had the magenta-cast problem under Lightroom and using Preview to print the photographs, so now I want to work with color profiles in Photoshop Elements.
    Photoshop Elements recommends that I "disable color management in the printer preferences dialog".
    However, I'm not able to find color management preferences for the 6700 in any of the settings under Mountain Lion:
    Not under (Apple) > System Preferences > Print & Scan.
    Not under (HP Utility) > Open Embedded Web Server.
    Not under (HP Utility) > Printer Settings.
    Not under Preview's print dialog.
    Nor can I find any clear direction in the online help (at HP or elsewhere) that I've read so far.
    Any suggestions would be most appreciated.
    Thank you!
    Michael
    This question was solved.
    View Solution.

    Please note that in the Print dialog I get "Color Matching" not "Color Management."
    Still, I am (at this point) able to control color from Photoshop Elements, so that's good enough to proceed.
    Thanks again.

  • Can I target the STM32 Primer2 hardware with LabVIEW for ARM

    The STM32 Primer2 hardware looks very cool.  Can LabVIEW for Arm target this hardware?  From looking at the list of ARM devices supported by LabVIEW, this would appears to be a Tier 2 device (ARM Cortex-M3) with no support for TCP/IP or IO.
    Can anyone tell me the feasibility or effort required to get TCP/IP, IO, and maybe even display support for this device? 
    Message Edited by Jim Kring on 09-11-2009 10:46 AM

    Have you ever said something you wish you could take back after having time to reflect upon it?  Another forum I like, http://newsbusters.org lets the author edit his posts for a short time.  Maybe NI could to that and I would not be pulling out my foot so often.
    Well, perhaps I was a bit more "colorful" than I meant to be.  Frustration does that to me sometimes.  Still the idea of a strong rope covered with disgusting risks does get the point across magnificently.  I just wish I had saved it for something more suitable.
    Let me think back to some of the problems I've had in which I've lost hours trying to figure out...
    1.  Can't use the Wait ms function.  It halts the program.  Express wait works fine.  It was sprinkled throughout which made it hard to isolate.
    2.  Some sub VIs don't run unless they are checked as inline code.  I don't yet understand why.
    3.  At the beginning of my main vi there was a small cluster in which I filled the data from an SD card file.  I used a constant of the cluster on the input of the Bundle function, but because my program and variable sizes were near the max I changed a number of variable representations to save memory.  ...But I didn't replace the constant.  The program started exhibiting really strange behaviors.  I couldn't even get a simple state machine to run.  I was reduced to commenting out (disable structure) sections to find the problem before noticing the coercion dot on the input to the bundle (The dot against the red string color doesn't stand out very strongly which is why I missed it).  Apparently it overwrote memory since the older cluster was significantly larger than the new.
    4.  Spent a lot of time trying to get the SD card to work with SPI functions.  Even though I read that 2009 supported SD card file services I didn't intuitively understand how to wire up since the Open/Create/Replace function has a ref num output which actually connects to the file(use dialog) input of the read and write functions.
    5.  Had a problem with breakpoints and probes not working.  That apparently was caused by item #3.
    6.  Typo bug in the Arm_irq.c file  LM3Sxxxx_GPIOCAHandlerP to LM3Sxxxx_GPIOCHandlerP
    Some of these are of the rope variety. A few are actual bugs.  All probably could have been solved in moments had I a local guru.  Anyway, I've spent hours and my hands hurt.  I hope to have this little project working on the LM3s8962 today and after some hardware changes will port it over to the Primer2... Hopefully...
    This forum has been a real help... especially your quick responses.
    regards to all,
    David 

  • Sensor analog balance for 2850K color table

    Hello
    I currently try to create a dual illuminant camera profile using DNG Profile Editor 1.0.0.46 beta for our Aptina CMOS MT9P031 based camera.
    Using the DNG SDK 1.4, i'm converting the BAYER pattern images to a DNG with a Embedded Profile which has identity matrices set on the color matrixes and analog balance DNG tags.
    D65 shooting conditions:
    - High-CRI LED based light source set to 6500K @ 300 lx (spectrum fit 96%)
    - CMOS sensor analog gains were adapted to achieve a neutral image at the D65 shooting conditions
    a. Do I have to keep all component gains to 1.0 or adjust for the illumination?
    b. Does it matter what I apply on the embedded camera profile on the AnalogBalance DNG tag?
    Std A shooting conditions:
    - Same light source set to 2850K @ 300 lx (spectrum fit 92%)
    - CMOS sensor analog gains were _not_ adapted to achieve a neutral image. This obviously results in a orange color tint which can be eliminated using the white balance slider on the "Color Matrices" tab of the DNG Profile Editor.
    c. Do I have to adapt the analog gains when shooting for 2850K
    Using the converted DNGs from shooting conditions above, I can create the color table for 6500K using the "Chart" tab, but not the 2850K color. I always receive the error message:
    "Non-neutral gray patches. The gray patch in row 4, column 3, has a significant color cast. Please reshoot the chart carefully to avoid color casts and try again."
    ...but when using the whitebalanace slider on the "Color Matrices" tab in advance of the "Chart" tab, I can tune the Std A image to a perfect neutral image. There is no color cast visible anymore.
    d. Any ideas what I did wrong?
    Kind regards
    blad

    Hi Eric
    Thanks for taking the questions. Some details and clarifications:
    Our analog gains are set to give a neutral image at D65 and we keep them unchanged even if the in-camera white balance algorithm detects a Std. A illuminant. This means the unprocessed RAW image contains a very warm color tint. Obviously, there is much more red than green and blue in the image. Is it correct, that then f.e. apply:
    oNegative->SetAnalogBalance(0.863, 0.599, 0.389);
    -> The values are derived from the red, green and blue components in the 2850K reference image from one of the gray patches on the color checker.
    Thanks for the tip with the missing ColorMatrix values. When I specify a ColorMatrix and AnalogBalance as (described above) I am able to create a color table using the chart tab in Profile Editor the reference image at D65. I keep getting the error for the reference image at 2850K. Did I specify the ColorMatrix the wrong way?
    oProfile->SetCalibrationIlluminant1(lsStandardLightA);
    dng_matrix_3by3 oRGBMatrix( 1.627, -0.448, -0.222,
                               -0.434,  1.787, -0.350,
                               -0.341, -2.014,  3.294);
    dng_matrix_3by3 oXYZ_to_SRGB_D65( 3.2404542, -1.5371385, -0.4985314,
                                     -0.9692660,  1.8760108,  0.0415560,
                                      0.0556434, -0.2040259,  1.0572252 );
    dng_matrix_3by3 oCA = MapWhiteMatrix(StdA_xy_coord(), D65_xy_coord());
    oProfile->SetColorMatrix1(oXYZ_to_SRGB_D65 * Invert(oRGBMatrix) * oCA);
    As soon as I open the DNG with values from above in DNG Profiel Editor I get a cold image with a blue color cast and click-white balance tells me ~3350K/28 instead of 2850K/0.
    Regards
    Daniel

  • Quanser DC Motor Control Trainer missing VI's for labview 2009

    Hi my name is phillip, a student developer working with labview 2009 and the Quanser DC Motor Control trainer with ELVIS II. I have failed to run the VI for speed control, it appears to be broken and says four sub-vi's are missing and they are "Intergrator.VI," "Integrator (DBL).VI," "Transfer Function.VI," "and "Transfer Function (DBL).VI.". I happen to have installed the control design and simulation toolkit but this has not solved the problem. Please help!!!!

    Hi Phillk, I have the exact same problem with the missing VIs for the Quanser DC motor control with the NIELVIS also for Labview 2009.
    Can you please tell me where I can find these VIs? Can you send them to me if it is possible?
    I would really appreciate it, 
    I need the Transfer Function.vi,  Transfer Function (DBL).vi and the integrators too.
    Thank you, 
    Carlos M. Rodriguez  
    [email protected] 

  • Can I give command print to HP color printer from LabVIEW 7.1..?

    Hello..
    Can I give command print to HP color printer from LabVIEW 7.1..? I have application in which I have to calculate  some numbers & print them with fixed text... Is it possible to give print command from LabVIEW 7.1 to HP color printer...? Can anyone please help me...?
     Thank you for any help from you..
    Solved!
    Go to Solution.

    You will probably find a solution using the Report generation VIs. You can create a report, insert any data and text you wish, and print it either on the default printer or on a named printer. The report generation VIs are at the bottom of the Programming palette. 
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

Maybe you are looking for

  • How can I change my iCloud account ?

    So, here's the story: I changed my Apple e-mail ID because it was hacked, and I accidentally used that e-mail for my iCloud and forgot 'cause I don't use iCloud, and forgot the password for it. Now, I'm trying to restore my iPod but it says that I ne

  • Limitation on a material basis or another filed in recipe.

    Hi All, I wasnt to grant access to recipes to users depending on the data that is given in the recipe (e.g. per application field or material,u2026).E.g. some users are allowed to see/change recipe of material XYZ, while other users are not allowed t

  • Flash Video and 8.0.2 problems

    Hi. I recently installed 8.0.2 but now when I hit OK in the completed prompt box - Insert>Media>Flash Video - dreamweaver either crashes or it does insert the flash player but it doesn't work when previewing in IE 6. Has anybody else experienced this

  • Business credit cards question

    I have a business credit card for my own company. When I applied for it, the inquiry showed up on my personal credit report, but the account for this card and its balance does not show up on my credit report. I currently have personal credit cards wi

  • Connecting to SQL Server 2000 from Oracle 9iDS

    hi I want to connect Forms Developer 9i to a SQL Server 2000 Database for integration purposes. Mentioning that I don't have any Oracle servers on my system. Thanks