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

Similar Messages

  • 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.

  • Dialog box problem when controlling front panel remotely

    I have encountered an issue with the Web Publishing Tool- I have a VI that calls a subvi that uses the Promt User for Input function.  When controlling the front panel from another computer I get a message saying that you "Cannot control subVI front panels remotely" and points you to the machine actually running LabView to enter the information in the Prompt User dialog box.  I set the subVI front panel to show when called, which does show the front panel of the subVI, but still get the error related to the dialog box.
    Is there any way to make this work?  Am I missing something obvious?
    Thanks,
    Nathan

    Hi Nathan.
    There are some limitations with dialog boxes in remote applications.  This tutorial has some good examples and explanations on functionality to avoid with web applications.  Additionally, the LabVIEW online Help offers some general guidance for Viewing and Controlling Front Panels Remotely, which may help you in further developing your application.
    Hope that helps!
    Lorielle P.
    Applications Engineer
    National Instruments

  • Can I control front panel items from a sub VI?

    Hi all,
    After taking the Intermediate I class, I have been trying to follow the methods of using modular programming, but there's one thing I haven't quite figured out how to do. How can I change a front panel display from within a sub VI? I have a menu selection that I wish to change - can I simply input a reference to it or something like that?
    Thanks much,
    Jason

    All you need to do is to pass a control reference to the subvi, and then, in the subvi, to use a property node to modify whatever you want (well, almost...) on your control. Ask if you have more trouble and need an axample...
    CC
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • Controlling front panel properties from within a statechart

    I have a user interface that I am trying to put into a statechart.  On the user interface I have a bunch of buttons (controls) and indicators.  To populate the indicators I am getting data back from 2 sources (USB and RS 232).  For this, I have made shared variables for the data returning from the sources but this only works for indicators as far as I can see.  Anyway, I have the software working and now that I am trying to go back and place the code into the statechart format to clean it up I am running into issues.  Since the statechart does not run inside the labview panel I can not access the front panel properties of controls.  Basically, I am using the statechart to control which buttons are active on the front panel (this is dependent on the state the user is in).  Also I am using the states to control a LabVIEW “tab control” to determine which tab to display.  For instance, I have an operate screen and a calibrate screen.  Depending on which state the operator is in, different controls are active (I don’t want the user to accidently change an item on the operate screen while in calibrate).  Is there a way to do this inside the statechart structure?  

    You don't actually copy the reference itself. Rather, you want to add a control of the same type as the reference to your statechart Inputs.ctl. You can get such a control by right clicking on the reference you created and choosing "create control".
    Then you pass in the reference to your specific control into the statechart via the inputs terminal. You can then talk to this reference via VI server and manipulate the original control. 
    If this isn't clear probably the best thing to do is to look in the LV help index for the keyword "control references" and read about "passing to subVIs". Passing a reference to a subVI is very much like passing one to a statechart so most of this is relevant.
    Hope that helps.

  • 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

  • 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.

  • How do I derive front panel led's from kstat?

    /* compile with cc enclosure.c -lkstat */
    #include <stdio.h>
    #include <stdlib.h>
    #include <kstat.h>
    #include </usr/platform/sun4u/include/sys/envctrl.h>
    main()
    kstat_ctl_t*kc;
    kstat_t *kp;
    envctrl_encl_t *enc_info;
    int i;
    /* initialize the kstat interface */
    kc = kstat_open();
    if (kc == 0) {
    perror("kstat_open");
    exit(1);
    /* find the inode cache link */
    kp = kstat_lookup(kc, "envctrl", 0, "envctrl_enclosure");
    if (kp == 0) {
    fputs("Cannot find envctrl.0.envctrl_enclosure\n", stderr);
    exit(1);
    /* read the ks_data */
    if (kstat_read(kc, kp, 0) == -1) {
    perror("kstat_read");
    exit(1);
    printf("there are %d instances\n",kp->ks_ndata);
    enc_info = (envctrl_encl_t *) kp->ks_data;
    for (i=0; i < kp->ks_ndata; i++){
    printf("loop value : %d\n",i);
    printf("instance : %d\n", enc_info->instance);
    printf("enclosure type : %d \n", enc_info->type);
    printf("enclosure value : %d \n",enc_info->value);
    printf("********************\n");
    enc_info++;
    kstat_close(kc);
    return 0;
    Returns...
    There are 7 instances
    enclosure value : 208
    or
    enclosure value : 192
    depending whether one of the lights is flashing or not. I need to know how to tell if an error light is on.
    How about the disk led's?

    You don't actually need to pass anything to the Sub-VI.
    Within the Sub-VI you can call up the chain of "higher" VIs, i.e. the VI call chain leading to the sub-VI in question being called. From here you can wire simply the text of the VI you require to an "Open VI reference" function, get a list of the controls or indicators and initialise them as you wish. I used this a few times for a custom "Print Parent Panel" VI.
    Here's a pic of an example (LV 6.1)
    Hope this helps
    Shane.
    Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
    Attachments:
    SUB-VI-parent communications.png ‏19 KB

  • MCS 7845-H2 Front Panel LED's

    Trying to find some sort of support document for this server model to get an understanding of what the LED's mean, as one of them has just turned amber (which according to this ( http://www.cisco.com/en/US/prod/collateral/voicesw/ps6790/ps5748/ps378/product_data_sheet0900aecd80572766.html ) it indicates an internal component failure.

    There's no setting to adjust the brightness of the LED.
    Next time you are near an office supply store, pick up a box of 3/8" or1/2" round, white labels/stickers.
    Place one or two over the LED and it will dim the LED. Add more to adjust the brightness level you want.
    The white stickers are virtually invisible once you move back 3-4 feet from the AirPort Extreme.
    Looks much nicer than a piece of tape.

  • 32AV502U Front Panel LED Flashing, No Video/Audio

    We had a short power outage last night and ever since my 32AV502U set will not turn on. Instead the power LED just flashes on and off in a patter of long, short, short. I have tried leaving it unplugged for hours and still no luck. I held the power button down while it was unplugged too, but couldn't get it to do anything other than just have the LED flash.
    I was wondering if anyone knew of a way to fix this.
    Thanks

    I've got the same issue. I found this TV at the electronics recycling area of my local landfill, so I have nothing invested in it so far, except a bit of research time. I tried calling Toshiba Customer Service to see if they would tell me what the long short short flashing light means, but since it's out of warranty, they wanted to charge me $35 to answer the question. It looks like someone tried working on it already. I got Toshiba's Service Material and reference Tips document for this TV, and followed the section for Dead Set on page 5. I do get the standby 5 volts on the P802 connector, but following the flowchart to the next step, I do not get 4.3 volts on pin 13 when the on/off button is pressed. The next step at pin 14 showing less than .07V also fails. That results in a "Suspect a problem with the power supply module. There's no further module level troubleshooting that I could find.
    None of the capacitors are bulging, so that takes away an easy check. There hasn't been much in the way of component level troubleshooting that I could find.

  • LEDs on front panel

    Employed my Vista Pavilion for several years without incident until last night when I noticed the top "on/off" button which usually glows a light blue was unlit.   I originally assumed a power glitch, so I just restarted the machine to note the following:
        Fans come on and the power supply seems OK, but the system did not boot.   The screen was just black with no characters or image/background.  In fact, the screen's power saving mode soon engaged indicating the video card was not sending a signal.  Never get to the BIOS screens.
         Now here is what I think may be significant:  the green LED and blue LED in the front console were on continuously.
    Sometimes, hardware manufacturers provide diagnostic information by way of the lights (e.g., washing machines).   In other words, turning on LEDs can provide state information.   Is this true with HP hardware?
    Some more clues which tell you what is not the problem.  I happened to have a new power supply handy, so I traded it out with the same results.   In normal operation, the green LED indicates disk activity, so I just removed the disk entirely to see if the green light would go out.   Nope, still on steady.   The blue LED typically implies the WiFi operation but I rather doubt at this pre-boot state the WiFi would be working.
    I traced the power button line (two grey wires) to a half-sized board in the rear.  No breaks in the wire or bad connections.
    Any ideas?

    HP Pavilion Elite m9357c Desktop PC
    Motherboard Specification, MCP61PM-HM (Nettle3)
    http://h20564.www2.hp.com/hpsc/doc/public/display?​docLocale=en_US&amp;docId=emr_na-c01357175
    Don't understand this reference to a half-height board.
    The Front Panel Header (9-pin, 2x5) on the motherboard is where those front panel LEDs and buttons are terminated.
    EXAMINE Pictorial in the Internet link to motherboard (above).
    HOWEVER, some HP Desktop models have a front LED to show the user of LAN or Wi-Fi connections.
    That wire would connect to the network card or motherboard via a different connector.
    Some Media PCs of this era (2008) had Infared connections (option) for remote control of TV tuner option card.
    LEDs do not last forever (have a long, but finite life) and can fail due to DC over-voltage or surge conditions (environmental, component failure).
    In addition, this Desktop PC is now 7 years old .... a long-life for any desktop.
    IF the motherboard has failed (component failure, such as capacitors), then replacement may be best advice.

  • Centering Label Text over front Panel Indicator

    How can I get the Text in the Label of a Front Panel LED Indicator Control in LabVIEW 2009 to be centered over the LED?
    How can I change the Font an Font Size of the Text of a Label?

    Hi,
    Label to be center at the object.
    There are many Ways like
    1) what the JackDunaway has explained  Text Settings Toolbar button.
    2) Other you can dynamically change the property of label.
    Like you can change programmically change label justification, size, color, and many property.
    Just right click on object.Go to creat property node. refer screen shot for more help.
    Thank you.
    CLAD
    Labiew programmer
    Attachments:
    Lebel property.png ‏133 KB
    Lebel property.png ‏133 KB
    Lebel property.png ‏133 KB

  • How to open remote front panel of vi's within an executable from an executable.

    How do I remotely open front panels of subvi's contained within an executable, where both computers just have LabVIEW Real Time loaded (programs are run as executables)? I want to use the Method: Remote Panel Open Connection to Server to make this work. I have been getting error 1032 "VI Server Access Denied". I do not want to use the web page method (connection is too slow when controlling front panel objects and I can not programmatically exit out (release control of vi) of the web page).
    Ex. 
    PC1: Has executable1 using Remote Panel Open Connection to Server Method etc. code inside. This program will make a call to executable2 (on PC2) to open up different vi front panels (within executable2), so the controls can be changed from PC1. I want to be able to make changes to the vi's running on PC2 from PC1.
    PC2: Has executable2 containing several subvi's.

    Not sure if this is what you are looking for but here is how to launch executables that can interact
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • How to create two front panels

    Hi in my application i am using two Monitors .. 
    so i like to use one monitor for Vision display and control operation (Front panel )
    And another For Motion Control Front panel .. is it possible to do this .. 
    (In this case How to split my Front panel of my Vi ..)

    Hi
    If we use Border Layout, the Panels which are added to the main panel are not displaying properly.
    Solution is to use BoxLayout with AXIS parameter. Statement looks like this:
    mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout(PAGE_AXIS));
    Thank You for giving Reply,

  • How can you "enable front panel dataloggin​g?"

    In the Labview User Manual, it says that "You can create and read datalog files by enabling front panel datalogging." How do you go about "enabling front panel datalogging?"
    Any help would be greatly appreciated.

    From a LabVIEW only perspective, you can enable control (front panel) datalogging through the menu Operate>Data Logging->. If you bind a log file to the VIs front panel it will generate a binary file with the state of the controls in it, when you execute Operate>Data Logging>Log... (I could not find a way to execute this Log... by VI server programmatically - Maybe someone else?)
    From a LabVIEW DSC perspective you can generate a Logos Remote connection to a tag (e.g. with the HMI Wizard). And when you have enabled that this tag has to be logged, the LabVIEW DSC Engine will store/log the value into the Citadel database.
    Hope this helps
    Roland
    PS:
    Not updated however maybe helpful:
    80E?OpenDocument>Using Enable Database Access to Retrieve Data from a LabVIEW VI's Log File
    Front Panel Data Logging and Retrieval (old Example)

Maybe you are looking for

  • Changes are not reflecting on Script layout

    Hi Gurus,      I made chandes in SO10 standard include this include can be used in Script, when ever I copied script from DEV client to Test Client changes are visible in SO10 include text But not reflecting while executing the Script through Transac

  • Macbook pro to Panasonic Viera GT30 TV?

    I have a brand new 15 inch Macbook pro with a high res antiglare screen. I connected it to my brand new Panasonic Viera GT30 plasma TV via an HDMI cable and a Moshi minidisplay port to HDMI adapter. The computer is in mirror mode and the resultion au

  • Fi Substitution with data from MM (MKPF)

    Hello. I'd like to make a FI sustitution for MKPF document but I need information from the material document that It hasn't been saved at sustitution time. how can i get this information in the sustitution? is there any user-exit or badi to modify th

  • Problem with skype

    My nokia x202 is able to download skype,but when i sign in it says "skype is unable to connet your phone network.please suggest how to run skype on my phone

  • B1 API Test Instance

    Hi all, We are building a marketplace product and would like to be able to integrate with the SAP B1 systems of our users through the DI-API (using the Java Connector). We'd need to hook into inventory/ stock management as well as sales/ purchase ord