Can I Bind a Front Panel LED to a specific element in an array of booleans?

In LabVIEW 2010 I have a string of LEDs. I have and array of boolean values that contain the values that the LEDs should indicate.
What is the best way to connect the LEDs to elements in the array of booleans?
Can I Bind a Front Panel LED to a specific element in an array of booleans?
How is this done?
Can anyone show sample code?
Solved!
Go to Solution.

Imagine that you have an I/O card that provides 128, 256 or 1024 digital inputs and the requirement is to have an LED on the front panel to represent the state of each digital input. This frequently occurs.
Wiring that many digital inputs individually is a royal pain and then some !
It would make sense to have one shared variable as an array of Booleans that represents the status of all inputs and then use data binding instead of wiring each individually. The individually wiring would violate all recommendations on diagram size and fan out.
Frequently scanned For loops to update all of the LEDS would take alot of CPU time.
Wouldn't it be MUCH better if PSP could be used to update the LEDs whenever the data changed (as it is supposed to do) ?
In my case I have a LabVIEW Yaskawa servo driver that provides me information about 16 servo drives that may be connected. I have LEDs on the front panel to represent some of that status for each individual drive. But Yaskawa provides the information on the drives as an array of clusters of information for each drive, which I perform some business logic on and turn into shared array of Booleans to feed the LEDs (and some banks of switches as well).
Unfortunately LabVIEW does not seem to have any way to bind the LEDs (and Switches) to individual elements in the shared array of Booleans. It is just not that smart. Even with only several banks of 16 LEDs and Switches, wiring them individually using Decimate Array of Index Array functions is a royal pain and makes the block diagrams very large. It would be much worse and almost unreasonable to do if the size of the information was much larger.

Similar Messages

  • Front Panel LEDs problems for Mega 180

    Hi, it's rigth one year I got a Mega 180, and I've not ended yet to tune and optimize it 
    I admit it's like a hobby now 
    I immediately ask you for my LEDs problems.
    I have read many topics and maybe other people have the same my problem, also if I'm not sure if they treat about the Front Panel LEDs when they speak about the "LCD Display".
    I have some switched off LEDs in my front panel, in the "time" displayng and in the volume bar: I have to substituite them? Someone have done it before? It's possible to remove the front panel or I have to disasseble all the pc 
    Or it's a firmware problem?
    I also thank all people that cured the section of optical devices compatibility: last week I bought a new Pioneer 111D, because my LG GSA-4167B was not suitable in the PC mode, for DVD playback.
    In fact I had many problems for the DVD fluently playback: I have spent 4 months trying new video codecs and also substituting the video card, then I finally have understood that was an optical device problem.
    The Pioneer 111D was perfect in the PC mode, but then I had problems for HI-FI playing mode 
    Then I finally used my old Pioneer 108, that I had in the old desktop, and all work (I pray) fine both in HI-FI and PC mode.
    I'll be very happy also to describe to whom that will ask me, my experience with the Mega 180 "assembling", during the last year, hoping it could be useful for other people.   
    Thanx 

    > Hi, I'm new to LabVIEW! Ok, what I'm trying to do is create a front
    > panel with 9 LEDs. Then I have a Menu Ring, with three different
    > options. These options determine the order in which the LEDs are lit.
    > So what I was planning on doing was creating three subVIs, one for
    > each of the options...but how can I do that when I only have one
    > boolean for each LED? So basically how can I relate the LEDs on the
    > front panel into the subVIs? I tried using globals - but it seemed
    > like that just passed on the state of the boolean instead of allowing
    > me to actually change the boolean in the subVI. I hope this makes
    > sense...I'm really confused! Thanks for any help!
    Initially, you might just hook your ring to a case structure to
    determine which frame exe
    cutes. You can put the terminals for the
    Booleans in the different diagrams and about the only other thing to
    keep in mind is that you probably want a delay in the loop.
    Greg McKaskle

  • Can't scan using front panel of HP Officejet Pro 8600 Plus

    I can't scan using front panel or laptop.  I can't find the set up disc that came with the printer that I purchased almost 2 years ago.

    Hello @Pierre1 , and welcome to the HP Forums, I hope you enjoy your experience!
    I see you are having issues scanning. I'd like to help!
    I'd recommend starting with a power reset.  Disconnect the power cord from the printer and the power outlet, then wait 60 seconds. After 60 seconds, plug the printer back in. Ensure you plug the printer directly to a wall outlet. Make sure to bypass any sort of surge protector or power bar.
    I would also recommend downloading and running the HP Print and Scan Doctor.
    Good luck and please let me know the results of your troubleshooting steps. Thank you for posting on the HP Forums!
    Please click “Accept as Solution " if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks" for helping!
    Jamieson
    I work on behalf of HP
    "Remember, I'm pulling for you, we're all in this together!" - Red Green.

  • Bind a front panel control to an item

    Hi all,
    I have a problem with selecting DataSocket in "Data Binding Selection" when I want to bind a front panel control to an item in another server such as an OPC Server. I want to know whether we connect to that item via OPC Server or DataSocket Server after specifying an OPC URL. The LED_DataSocket near the front panel control planned to bind to an OPC Server's causing this doubtfulness for me.
    And I want to know in a big application what the difference between these two is:
    Connecting a front panel control to an OPC Item selecting:
    NI_PSP\network Items\then selecting the item from an OPC client instance currently created or,
    DataSocket\browse\ finding the item we want through Servers listed.
    Please advice.

    I'm working on a big HMI application with more than 200 I/Os. if I want to read/write these data items from an OPC server, do you mean it's better to use shared variables bound to OPC data items, then read/write directly the shared variable from a front panel object, connecting a shared variable node to it?
    I want to know if I bind my all front panel objects to shared variables or OPC items via NI-PSP or Datasocket, for this number of I/Os, it works. And what are the differences between these two technologies?
    I 'm for the best way of gathering data from an OPC Server.
    Message Edited by Maryam on 04-20-2006 11:41 AM

  • Accessing front panel LEDs in several subVIs

    Hi, I'm new to LabVIEW! Ok, what I'm trying to do is create a front panel with 9 LEDs. Then I have a Menu Ring, with three different options. These options determine the order in which the LEDs are lit. So what I was planning on doing was creating three subVIs, one for each of the options...but how can I do that when I only have one boolean for each LED? So basically how can I relate the LEDs on the front panel into the subVIs? I tried using globals - but it seemed like that just passed on the state of the boolean instead of allowing me to actually change the boolean in the subVI. I hope this makes sense...I'm really confused! Thanks for any help!

    > Hi, I'm new to LabVIEW! Ok, what I'm trying to do is create a front
    > panel with 9 LEDs. Then I have a Menu Ring, with three different
    > options. These options determine the order in which the LEDs are lit.
    > So what I was planning on doing was creating three subVIs, one for
    > each of the options...but how can I do that when I only have one
    > boolean for each LED? So basically how can I relate the LEDs on the
    > front panel into the subVIs? I tried using globals - but it seemed
    > like that just passed on the state of the boolean instead of allowing
    > me to actually change the boolean in the subVI. I hope this makes
    > sense...I'm really confused! Thanks for any help!
    Initially, you might just hook your ring to a case structure to
    determine which frame exe
    cutes. You can put the terminals for the
    Booleans in the different diagrams and about the only other thing to
    keep in mind is that you probably want a delay in the loop.
    Greg McKaskle

  • Controlling Front Panel LEDs

    This is hopefully a simple problem, but I can't figure out what to search under.  I have a program with two loops (Z Only Test and Full Test in Tester Program v2).  They do not run at the same time.  I would like both loops to interact with an LED on the front panel (Testing).  How is this done?
    Under Z Only Test, it works fine.  I tried to connect it to the sequence (Full Test), but it tells me I can't do that.  On odd sequences, for the most part, I would like to have the LED light (TRUE).  On evens, off.
    Attachments:
    code.zip ‏143 KB

    rbergs wrote:
    Do you mean make the LED a shared variable?  How do you do that?  I clicked on it and changed it to a variable, but I thought that was like one of the others that I have.  I'll give it a try and see what happens.
    I would assume whatever works for this would also work for numerical displays as well.
    No.  I'm not even sure exactly what you mean by clicked on the LED "and changed it to a variable."
    Right now you have only a single place where you use that LED.  It has a terminal node on your block diagram within a while loop.  I don't know how that fits into your overall program architecture as your VI is quite expansive.  (Two tips, 1.  Don't use stacked sequences.  2.  Look into a state machine architecture)
    All that happens at that point is your read from a shared variable called "Testing".  I'm not sure from where else in your VI that you want to interact with that front panel indicator.  Or whether it will conflict with the already written piece of code.   I also don't know where this shared variable is written to. But the first idea is have the other sections of the code write to the shared variable and let this one update the front panel indicator.
    The second idea is to create a local variable of the front panel indicator.  Right click on the terminal within your code and select Create / Local Variable.  But again, you will have to be careful with conflicts with the different portions of your code writing to the LED.  This is also known as a "race condition".
    (Yes you can use either shared variables to store numeric data, or create local variables of numeric controls or indicators.)
    I'm a bit nervous about your code.  It looks like you have a decent amount of LV experience as you have created quite a sophisticated VI there.  However, it doesn't seem like it is easy to expand or modify.  It takes up quite a bit of screen real estate.  It doesn't use any subVI's even though a lot of the code seems to be duplicated or very similar.  And it seems like it uses a lot of shared variables, probably more than necessary.
    Message Edited by Ravens Fan on 05-29-2009 01:38 PM

  • How can I display the front panel of the dinamically loaded VI on the cliente computer, the VI dinamically loaded contains files, I want to see the files that the server machine has, in the client machine

    I can successfully view and control a VI remotly. However, the remote VI dinamically loads another VI, this VI loaded dinamically is a VI that allows open others VIs, I want to see the files that contains the server machine, in the client machine, but the front panel of the dinamic VI appears only on the server and not on the client, How can I display the fron panel with the files of the server machine of the dinamically loaded VI on the client computer?
    Attachments:
    micliente.llb ‏183 KB
    miservidor.llb ‏186 KB
    rdsubvis.llb ‏214 KB

    I down loaded your files but could use some instructions on what needs run.
    It seems that you are so close yet so far. You need to get the data on the server machine over to the client. I generally do this by doing a call by reference (on the client machine) of a VI that is served by the server. THe VI that executes on the server should pass the data you want to diplay via one of its output terminals. You can simply wire from this terminal (back on the client again) to an indicator of your choosing.
    Now theorectically, I do not think that there is anything that prevents use from getting the control refnum of the actual indicator (on the server) of the indicator that has the data, and read its "Value" using a property node. I have never tried this idea but it seems t
    hat all of the parts are there. You will need to know the name of the VI that holds the data as well as the indicator's name. You will also have to serve all VI's. This is not a good idea.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How can I use multiple front panel controls to be mirrors of each other?

    Hi All:
        I know this is going to be a strange question, but I have multiple inputs that control one output.  This in itself not necessarily difficult, but I have a strange need.  If one of the control inputs change I would like this to be indicated by the other controls.  For example, I have a slider, numeric and dial controls on the front panel that control RPM.  If the slider changes to 1000 RPM I would like the numeric and dial controls to see that change.  Is this possible.  If so, can you give me advice on doing this.  I am using 7.1.  Thanks for the help.
    John Honnold

    What you want is not that hard, but asked for a rather  limited times.
    Here's a how to:
    Drop a slider
    Right click Visible items-> Digital display
    Right click on the slider Advanced-> Customize
    Right click on the Digital display Replace select the control you want to replace it with (a gauge for instance)
    Right click on the Gauge Visible items -> Digital Display
    Now you have one control with three control options:
    This was done in 8.2 but I think the same goes for 7.1
    Ton
    Message Edited by TonP on 04-06-2009 09:52 AM
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!
    Attachments:
    Example_VI.png ‏7 KB

  • How can I enable my front panel audio??

    the type of my mainboard is MS-6552,when I inserted my earphone and microphone into the jack of the box,I can hear nothing! then I opened the box,I found that the wire was not the proper place,there were 8 wires whick marked with “MIC IN,GND,LIN,LOUT,MIC IN,GND,RIN,ROUT”,I also found the F_AUDIO on the mainboard,there were 18 pin on it,I cannot matching them! who can help me?thanx

    Look through you mobo's manual and you'll find it... Don't get stressed out too early... The first computer I built myself got me stuck in the same area for hours!!!
    Btw, you've got to remove the jumpers on your mobo to enable front panel sound. Be warned that most mobo only allows you to us either front panel or back panel sound only. Please also ensure that there are no stand offs underneath your mobo.
    All the Best... :D!!!

  • How can i access remote front panel in RT with LabVIEW run time engine in client PC

    Hi to all,
    I have developed the RT application with cRIO 9075 integrated chassis. And i have access its remote front panel in client PC. Now i want to access the remote panel in the client PC without having LabVIEW runtime engine. If i connect the remote panel with that client, it shows only the vi border. i doesn't downloads the  front panel.
    How Can i access its remote front panel without LabVIEW runtime engine in the client PC?

    You cannot view a remote front panel without the LabVIEW runtime - the LabVIEW runtime is what makes the remote front panel possible.  What you will want to do instead is likely create a Web Service that you can access from a remote PC without requiring the LabVIEW runtime.  However, this will require you to develop a web-based HTML or similar UI to interact with the VIs running on your system - NI hasn't yet created a way to export a LabVIEW front panel as an HTML'ish page.  
    -Danny

  • How can I arrange the front panel?

    Hello,
    I’m using LV 7.1 and created a VI with many controls and indicators. It writes and reads data to and from a bus system. For that I used the flat sequence structure and many case structures.
    Now I would like to order the front panel, i.e. by using the tab control only the data read or only the user settings should be displayed.
    But using the tab control slows the whole VI down, so that a data recording in real time is impossible.
    Are there any other possibilities to bring the front panel into order if the number of controls and indicators is too high for the screen?
    Thanks in advance,
    UoS

    Do you mean that the CPU usage goes up and the PC responds slowly. If so, this is interesting. This is most likely related to a grphical element causing the system to slow down. The tab control should theoretically take care of this, but about a year ago I ran into a similar situation where a tab caused problem here. In that case it looked like controls that were partially displayed caused the problem and when using the tab control the problem was there even when displaying another page. If this is so, you can try to determine the source by scrolling the screen in different directions. Once the problematic area is moved off the screen the VI should run faster. This way you can tell which area has the problem.
    Try to take over the world!

  • How can I create multiple front panels for a single block diagram?

    Hello,
       I have developed a VI with multiple controls and indicators that needs to run on computers with screen resolutions ranging from 800x600 to 1680x1050. The problem I'm having is that the front panel does not properly scale for this range of resolutions by checking the options in the "VI properties" option. Is there a way to create multiple front panels of various sizes for my block diagram and programmatically select the appropriate front panel based on the screen resolution?
    Solved!
    Go to Solution.

    See the attached Zip file.
    I have two different front panels.  Open either one and run it.  They both call MainCode.vi which takes the references passed to it and register for events.  From there, it does all the work of the code you would have put in your front panel .vi.
    This way each front panel can be laid out however you want for each screen resolution.
    Attachments:
    MainCode.zip ‏22 KB

  • Audigy 2 ZS Platinum - can't record from front panel "mic-

    I'm using an Audigy 2 ZS Platinum. I have an electric guitar plugged into the "mic-in" port on the front panel. I can hear the guitar through my speakers but I can't record from any program. I've tried using "Creative Wave Studio" and XP's "Sound Recorder" but it doesn't record.
    I can record by plugging a microphone into the back mic-in port.
    This is very frustrating, please help
    --Dan

    First is to set the Recording device to MIC2. The front panel device is considered the second microphone. Basically whatever program you use, I would assume it has to recognize this second microphone. Make sure you ahve it selected under the sound mixer (task bar Icon) "Line in 2/Mic 2" underneath "REC" on far right side. Then you can go from there.
    |)O( Try this, if not use the old Hamer to Front of PC method, lol.

  • Front panel led connectors cables problem

    Anyone knows how to connect the cables for the front panel power and hdd switches and leds to the jumpers on the board? The cables have  wordings printed on one side of the cables (power led.. hdd led.. etc).. i'm not sure which side should be facing up on the board ... is it the side with the wordings facing up or the opposite side without the printed wordings ? i'm worried that i may end up short circuiting the board if i connec them the wrong way round ... thanks

    The are just switches, so there is no polarity to worry about. the led's are polarity sensitive, so If they don't work, just reverse the connection; no damage will occur.

  • Can a VI create front panel controls?

    Hi!
    Is it possible for a running VI to create controls on the
    front panel? I know how to modify controls but there are
    cases where I would like to have variable numbers of
    arguments without having to define them beforehand and
    fiddling with 'visible' attributes.
    Rudolf

    Hi Rudolf,
    As already mentioned, the is no out of the box solution.
    Some of the ideas that I have heard are;
    1)Extra controls off-screen, move and make visable when you want.
    2)Picture control- make it look like as many buttons/controls as you want, detect mouse clicks, make standard control visable on top of picture to get data, update you picture control. (manage the whole mess in a sub-vi using control refnums.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

Maybe you are looking for

  • ITunes wont install or uninstall!!

    I have an ipod touch 2nd gen and an ipod shuffle 2nd gen. But i am unable to use them with itunes. I then went to uninstall itunes but it doesnt work. the problem seems to be related to the CD Configuration folder located in the program files part of

  • PO via XML in R/3 or ECC 6.0

    Dear Friends, Did anyone establish the functionality of sending Purchase Orders via XML in R/3 or ECC 6.0 (there is no SRM existing).  I knew that in SRM there is a default functionality existing, but want to know how can the same approach be achieve

  • Recieving Error Viewing Reports in Report Manager

    I am receiving the following error trying to view a report in Report Manager and Reporting Services:  " Your browser does not support scripts or has been configured not to allow scripts"  I have ensured that scripting is enabled and added the site to

  • HT1349 When I click on a help subject the screen that appears is frequently blank.

    When I click on a help subject the screen that appears is frequently blank.

  • Error: Master Copy for Type Definition Could Not Be Found

    See screenshot below please. The typedef is there (I navigated to it via windows explorer and it's not greyed out in the code), and my FPGA VI is not broken, which uses the exact same control. I also created these constants by right clicking and choo