Problem led to keep

Hello

I'm on it, I'm like 2 months when I started learning on my own account, by now, I create a software in Labview to move 3 engines, just that I had a problem, I tried using 2 round LEDs for each axis (a when the engine is moving in the positive direction) and the other on the negative.

So I have like 6 LEDs, now, the real problem started when I need to keep the LEDs on, I mean for example I push on the positive X the light and in a few milliseconds, it turns off. But what I need, is that if I press a button the corresponding LED should keep on until I pushed the other.

I added the part of the game when I try to add this feature, can hope someone can explain to me a little or even help me to what I do.

Thanks for any help

Your query is really a matter of LabVIEW and would get more response if validated for the jury of LabVIEW. It is not a matter of circuit design and this advice gets much less activity than the LV Board.

The key is the shift register to keep the values of one iteration to another.

You will need a change of register for each LED. If you don't want 6 registers at offset, you could combine the data in a table or a cluster so that a shift register would be sufficient. Since you are a beginner with LabVIEW, I suggest that the separate passage records until you are more comfortable with LV

Since the two entries (buttons) and outputs (LEDs) are boolean, it makes sense to keep the data as boolean overall.

The labels on the block diagram display makes it much easier to keep track of what terminal is connected to what button or LED.

Connecting to the switch case structure you should use integer data types rather than floats. In your VI it does not matter, but if you were to calculate the result with a division or other functions round forced to integers internally in the structure of the case could cause problems.

Consider the use of the Structure of the event to meet the changes in the buttons. According to me, which was introduced to LV before your version 7.1.

Here's a way to do what I think you want. I post a picture because I can't save in version 7.1. Note that I suggest do a Subvi repeated code. By making a Subvi, you just change it one place if you find a bug, or changing requirements. The code has 6 copies, which would need to be changed.  I did not remove your code so that I can compare the results.

Lynn

Tags: NI Software

Similar Questions

  • Problem with LEDs to keep the light

    Hello

    I started to learn the Labview from my own account, now, I'm changing a software in Labview to move 3 Motors, only that I had a problem, I tried using 2 round LEDs for each axis (a when the engine is moving in the positive direction) and the other on the negative.

    So I have like 6 LEDs, now, the real problem started when I need to keep the LEDs on, I mean for example I push on the positive (Eixo - X) LED lights, and in a few milliseconds, it turns off. But what I need, is that if I press a button the corresponding LED should keep on until I pushed the other. I don't know how can I do to the Structure of the box where these leds.

    I added the part of the game when I try to add this feature, can hope someone can explain to me a little or even help me to what I do.

    Thanks for any help

    It is not hard to do what it seems you are trying to accomplish. Did you go through the tutorials online?

    A simple way is to reach your goal is to have the values for LEDs in a shift register. Then you write your logic (a structure of the event would be easier) for RS data change only when the operator presses a button. If there are no presses, the data is not changed.

    Mike...

  • How do I do to get the slide to set up to go to the right and continue? I was up half the night and is not wrong. The only thing that I just did is plugged into the wall outlet and now I'm right back where I had problems. Why keep this product?

    How do I do to get the slide to set up to go to the right and continue? I was up half the night and is not wrong. The only thing that I just did is plugged into the wall outlet and now I'm right back where I had problems. Why keep this product?

    What do you exactly mean by "get the slide to set up go to the right and continue"? Can you give us a little more context and detail?

  • I'm having a problem where Firefox keeps asking for my password to Amazon, even if I tell Firefox NOT to remember this password. In Firefox options, Amazon is clearly recognized as a site for which does not save passwords.

    I'm having a problem where Firefox keeps asking for my password to Amazon, even if I tell Firefox NOT to remember this password. In Firefox options, Amazon is clearly recognized as a site for which does not save passwords.

    Do not remove the navigation, search and download history on Firefox to clear the "Site preferences".

    Compensation of the "Site Preferences" clears all exceptions for cookies, images, windows pop up, installation of software and passwords.

  • Internet Explore has stopped working, and a message saying that a problem led the program to stop working correctly. Windows willclose the program and notify you if a solution is available is appear

    Internet Explore has stopped working, and a message saying that a problem led the program to stop working correctly. Windows willclose the program and notify you if a solution is available is appear

    On the desktop, you can open the Action Center under the taskbar > maintenance > view reliability history > view all reported issues

    You can right click on some of the mistakes "Stopped working" "Internet Explorer" > view technical details

    What are the details of the errors?

    There is a 'Copy to Clipboard' link at the bottom.

    Paste the information first in Notepad and then copy the Notepad information to post here.

  • Smartphones blackBerry blackberry bold 9780 caanot switch and LED light keep flashing and cannot connect to my PC as well

    I tried to connect to the desktop of my PC software, but it can not connect it. So what I do I plug my BB remove the battery and plug in the back, but still the flashing to keep but not turn on and keep restarting. When I connect my BB to desktop software it ask me to update so it I try again several times. so, I put to date but still nothing happen. Please advice me what should I do with this problem.

    Hi asyikin_azis,

    Try this:
    1. connect your blackberry to the computer using the usb cable. If Desktop Manager opens automatically, then close it because it will not be able to detect your bb at the moment.
    2. open apploader.exe "C:\program files\common research in motion\apploader\apploader.exe.

    3 Apploader window will open, and then click next two times, and your blackberry LED will stop flashing and then start to boot normally.

    Click 'Like' If you want thank you and mark as solution if your problem solved so others can find it as a solution for them

  • Problem with to keep my songs on the 'unknown' folder in my mp3 player

    I know that a lot of people have asked this question, but mine is a little more complicated.

    This happened to me several times, but usually attaches.

    I pulled all the songs on a CD.  I put them on my mp3 player.  Some songs of this album even find their way into the much dreaded "unknown" file.

    I go on my computer and in the album that are the songs in the folder 'unknown '.

    I right click on one of the songs that was 'Unknown', I go to 'Properties' 'Summary', 'Advanced' to fill the missing album title, when, to my surprise... She is already there.  The simplequi I'm confused on this the fact that all the spaces are filled, but when I am interested in all of the songs on the album in the music to my computer folder, they first of all the title of the song, name of the artist and the title of the album.  The songs that are in the 'Unknown' folder in my mp3 player have the title of the album under the artist name missing, but is there in the 'summary '.  I tried to change its name, but it does not help.  I used different CD ripping programs as well as programs of marking, but nothing works.

    It's seriously annoying me and I asked on several different sites, but people keep making me what I listed alreadt tried.

    If anyone has any ideas or suggestions, I would really like to hear them.

    I use Windows XP if it is of any importance.

    Also, I had these songs on my mp3 player before and they were very good, but they erased when I formatted, so I had to pull them out again, and that's when the problem started.

    Have you tried mp3tag with changed parameters of Tags/Mpegs? Seriously?

    Somehow these fields must be completed correctly. If they are not, well, the Sansa reads what's in the fields, and nothing else is going to help.

    Try to use mp3tag, highlighting all the songs and put in all fields that have problems, like the Album.  Save tags (under file). Then (with all the titles still highlighted) put the correct Album title in the Album and still save.

    There are tags out there who do not want to be deleted. You can see what's there with mp3tag - look under the label to see what types of tags are written. Then go to Tags/Mpeg and make sure that you can read and write these tags. Or just check everything.  Then resave the title of the Album.

    I got a tenacious album which had EPA and ID3v2.3 tags, and the tags of the EPA have prevented the ID3 tags are fixed.  I had to put mp3tag to read and write the APE tags as well.

  • Problem LED

    Hi all

    I use Dell Inspiron N5010 from 15, have LED (horizontal lines flickering) problem.  Here is a video link to youtube. I have attached an external monitor that works very well. How can I solve this problem? pls guide me.

    https://youtu.be/nUw3WZhdBVY

    Thank you

    It won't hurt anything - but if the display panel fails completely, the system will fail so to power upward.

  • Account problem access programs - Keep getting disconnected (e)

    I had questions, you have access to all Cloud applications creative for last week. Photoshop crashed last week, how I finished by uninstalling then reinstall the creative cloud and run the cleanup tool. Since then, I keep getting disconnected (e) Creative Suite. When I try to sign in, I get a message that my subscription has expired, which is not correct. If I click on "try again" he continually leads back me to the screen "subscription expired".

    If I click on the sign "as another user" but use my username and password, I am able to sign once, but if I open and then close a program, I get the screen "subscription expired" again.

    In the oobelib.log file, I see several entries that are similar to this line:

    21/06/16 15:31:19:943 | [DEBUG] |  |  |  | PCDService |  |  | 916. [SN] key value in the hive [V7 Photoshop-17-Win-GM {|} {en_US] in the cache: 519

    I also tried to delete the opm.db file and that did not fix the situation, either.

    Everyone knows this problem or have ideas of how to solve?

    Hi Stever53670198,

    Please see the link below.

    Advanced solutions for connection with Adobe Creative Cloud and Creative Suite applications errors

    Let us know if this helps!

  • problem with DENSE_RANK KEEP

    Hello

    Oracle 10g and 11g.

    I have the following query using DENSE_RANK:
    select
         spat_area_name as "Zone",
         spat_accl_name as "Accl.",
         spat_class||'.'||spat_number||'.'||spat_pt as "Elément",
         spat_type as "Type",
         max(decode(comp_type,'R',comp_day)) as "Date R",
         max(decode(comp_type,'R',comp_value)) KEEP (DENSE_RANK FIRST ORDER BY comp_day desc) as "Valeur R",
         max(decode(comp_type,'V',comp_day)) as "Date V",
         max(decode(comp_type,'V',comp_value)) KEEP (DENSE_RANK FIRST ORDER BY comp_day desc) as "Valeur V",
         max(decode(comp_type,'T',comp_day)) as "Date T",
         max(decode(comp_type,'T',comp_value)) KEEP (DENSE_RANK FIRST ORDER BY comp_day desc) as "Valeur T",
         max(decode(comp_type,'L',comp_day)) as "Date L",
         max(decode(comp_type,'L',comp_value)) KEEP (DENSE_RANK FIRST ORDER BY comp_day desc) as "Valeur L",
         spat_id as "Id."
    from
         spat_points inner join comp_deviations b1 on b1.comp_spat_id = spat_id
    where
         spat_accl_name = 'TC49'
    group by
         spat_area_name, spat_accl_name, spat_cumul, spat_class||'.'||spat_number||'.'||spat_pt, spat_id, spat_type
    order by
         spat_area_name, spat_accl_name, spat_cumul, spat_class||'.'||spat_number||'.'||spat_pt
    I get the following:
    Zone     Accl.     Elément          Type     Date R               Valeur R     Date V               Valeur V     Date T               Valeur T     Date L               Valeur L     Id.
    TRF3     TC49     GRTLD.412405.E     T     10/13/2004 00:00:00     .00094          10/13/2004 00:00:00     -1.58205                              10/13/2004 00:00:00     .00024          251063
    TRF3     TC49     RTLD.412405.E     B     06/13/2008 00:00:00               02/25/2011 00:00:00     .00016          03/22/2010 00:00:00                                        255722
    TRF3     TC49     RTLD.412405.E     S     06/13/2008 00:00:00               02/25/2011 00:00:00     .00016          03/22/2010 00:00:00               06/13/2008 00:00:00               502879
    TRF3     TC49     RTLD.412405.S     S     06/13/2008 00:00:00               02/25/2011 00:00:00     .0002          03/22/2010 00:00:00               06/13/2008 00:00:00               502838
    TRF3     TC49     GRTLD.412405.S     T     10/13/2004 00:00:00     -.00005          10/13/2004 00:00:00     -1.58373                              10/13/2004 00:00:00     .0006          216066
    TRF3     TC49     RTLD.412405.S     B     06/13/2008 00:00:00               02/25/2011 00:00:00     .0002          03/22/2010 00:00:00                                        285703
    TRF3     TC49     GRTLD.412412.E     T     10/13/2004 00:00:00     .00189          10/13/2004 00:00:00     -1.58375                              10/13/2004 00:00:00     .00097          256014
    TRF3     TC49     RTLD.412412.E     B     06/13/2008 00:00:00               02/25/2011 00:00:00     .00017          03/22/2010 00:00:00                                        255804
    TRF3     TC49     RTLD.412412.E     S     06/13/2008 00:00:00               02/25/2011 00:00:00     .00017          03/22/2010 00:00:00               06/13/2008 00:00:00               507820
    TRF3     TC49     RTLD.412412.S     S     06/13/2008 00:00:00               02/25/2011 00:00:00     .00012          03/22/2010 00:00:00               06/13/2008 00:00:00               512899
    TRF3     TC49     GRTLD.412412.S     T     10/13/2004 00:00:00     .00043          10/13/2004 00:00:00     -1.58288                              10/13/2004 00:00:00     -.00002          256047
    TRF3     TC49     RTLD.412412.S     B     06/13/2008 00:00:00               02/25/2011 00:00:00     .00012          03/22/2010 00:00:00                                        254705
    Should I get a value for each date.
    The problem is that it seems DENSE_RANK car on the point type.

    In fact, I need the same result as this query:
    select
         spat_area_name as "Zone",
         spat_accl_name as "Accl.",
         spat_class||'.'||spat_number||'.'||spat_pt as "Elément",
         spat_type,
    
         (select max(comp_day) from comp_deviations c1 where c1.comp_spat_id = b1.comp_spat_id and c1.comp_type = 'R') as "Date R",
         (select comp_value from comp_deviations c1 where c1.comp_spat_id = b1.comp_spat_id and c1.comp_day = (
              select max(comp_day) from comp_deviations c1 where c1.comp_spat_id = b1.comp_spat_id and c1.comp_type = 'R'
         ) and c1.comp_type = 'R') as "Valeur R",
         (select max(comp_day) from comp_deviations c1 where c1.comp_spat_id = b1.comp_spat_id and c1.comp_type = 'V') as "Date V",
         (select comp_value from comp_deviations c1 where c1.comp_spat_id = b1.comp_spat_id and c1.comp_day = (
              select max(comp_day) from comp_deviations c1 where c1.comp_spat_id = b1.comp_spat_id and c1.comp_type = 'V'
         ) and c1.comp_type = 'V') as "Valeur V",
         (select max(comp_day) from comp_deviations c1 where c1.comp_spat_id = b1.comp_spat_id and c1.comp_type = 'T') as "Date T",
         (select comp_value from comp_deviations c1 where c1.comp_spat_id = b1.comp_spat_id and c1.comp_day = (
              select max(comp_day) from comp_deviations c1 where c1.comp_spat_id = b1.comp_spat_id and c1.comp_type = 'T'
         ) and c1.comp_type = 'T') as "Valeur T",
         (select max(comp_day) from comp_deviations c1 where c1.comp_spat_id = b1.comp_spat_id and c1.comp_type = 'L') as "Date L",
         (select comp_value from comp_deviations c1 where c1.comp_spat_id = b1.comp_spat_id and c1.comp_day = (
              select max(comp_day) from comp_deviations c1 where c1.comp_spat_id = b1.comp_spat_id and c1.comp_type = 'L'
         ) and c1.comp_type = 'L') as "Valeur L",
         spat_id as "Id."
    from
         spat_points inner join comp_deviations b1 on b1.comp_spat_id = spat_id
    where
         spat_accl_name = 'TC49'
    group by
         spat_area_name, spat_accl_name, spat_cumul, spat_class||'.'||spat_number||'.'||spat_pt, spat_id, comp_spat_id, spat_type
    order by
         spat_area_name, spat_accl_name, spat_cumul, spat_class||'.'||spat_number||'.'||spat_pt
    Zone     Accl.     Elément          Type     Date R               Valeur R     Date V               Valeur V     Date T               Valeur T     Date L               Valeur L     Id.
    TRF3     TC49     GRTLD.412405.E     T     10/13/2004 00:00:00     .00094          10/13/2004 00:00:00     -1.58205                              10/13/2004 00:00:00     .00024          251063
    TRF3     TC49     RTLD.412405.E     B     06/13/2008 00:00:00     -.00055          02/25/2011 00:00:00     .00016          03/22/2010 00:00:00     -.00008                                   255722
    TRF3     TC49     RTLD.412405.E     S     06/13/2008 00:00:00     -.00058          02/25/2011 00:00:00     .00016          03/22/2010 00:00:00     -.00008          06/13/2008 00:00:00     .00068          502879
    TRF3     TC49     RTLD.412405.S     S     06/13/2008 00:00:00     -.00026          02/25/2011 00:00:00     .0002          03/22/2010 00:00:00     -.00008          06/13/2008 00:00:00     .00059          502838
    TRF3     TC49     GRTLD.412405.S     T     10/13/2004 00:00:00     -.00005          10/13/2004 00:00:00     -1.58373                              10/13/2004 00:00:00     .0006          216066
    TRF3     TC49     RTLD.412405.S     B     06/13/2008 00:00:00     -.00021          02/25/2011 00:00:00     .0002          03/22/2010 00:00:00     -.00008                                   285703
    TRF3     TC49     GRTLD.412412.E     T     10/13/2004 00:00:00     .00189          10/13/2004 00:00:00     -1.58375                              10/13/2004 00:00:00     .00097          256014
    TRF3     TC49     RTLD.412412.E     B     06/13/2008 00:00:00     -.00033          02/25/2011 00:00:00     .00017          03/22/2010 00:00:00     -.00015                                   255804
    TRF3     TC49     RTLD.412412.E     S     06/13/2008 00:00:00     -.00036          02/25/2011 00:00:00     .00017          03/22/2010 00:00:00     -.00015          06/13/2008 00:00:00     -.00183          507820
    TRF3     TC49     RTLD.412412.S     S     06/13/2008 00:00:00     0          02/25/2011 00:00:00     .00012          03/22/2010 00:00:00     -.00015          06/13/2008 00:00:00     -.00177          512899
    TRF3     TC49     GRTLD.412412.S     T     10/13/2004 00:00:00     .00043          10/13/2004 00:00:00     -1.58288                              10/13/2004 00:00:00     -.00002          256047
    TRF3     TC49     RTLD.412412.S     B     06/13/2008 00:00:00     .00006          02/25/2011 00:00:00     .00012          03/22/2010 00:00:00     -.00015                                   254705
    I can't find how to change the DENSE_RANK so that it works as expected.
    Or maybe you have a better solution, then using DENSE_RANK?

    Thank you.

    Yann.

    Hello

    I'm glad you solved!

    Are you sure the query you posted is to produce the desired results? You do not use rownb anywhere once you calculate it.
    What are you trying to do here? You try to view the most recent date and the value that is related to it, for each combination of several values (spat_area_name, spat_accl_name,..., comp_type)? If Yes, you need something like "WHERE rownb = 1" in the main query, to make sure that you are only the most recent of which, and the PARTITION BY clause from the ROW_NUMBER function must define what is in each groupo (in other words, it must include all the expressions that are in the GROUP BY clause from the main query (, as well as comp_type).

    Yann39 wrote:
    I have seen you replaced my decode with instructions box , is there a reason (performance?).

    There are situations where the CASE is much faster than DECODE to achieve the same results, but this isn't one of those situations. I (and, I think, most of the people) find easier to understand, debug and maintain CASES. If you and one who will be maintaining this code, prefer to DECODE, then there is nothing wrong with using it in this query. This is a little shorter.

  • How to use the COM (RS-232) port to control the problem LED Panel in LabVIEW

    Hi all

    In my new project, we need display text using the RS232 type LED panel.

    1. is this love order LabVIEW support standard RS-232 Telnet Windows?

    2. my LED Panel does not support VISA, LabVIEW supports another way to send a command to the COM port?

    Thank you.

    Kind regards

    Robert


  • Problem trying to keep track of availability with no voltaile storage

    Hi all

    My application needs to keep track of the no. time in seconds, various banks of pumps have been distributed.  This code runs on a cRIO.  A section of the timed loop that executes this code is in the attached picture.  Everything works fine, but sometimes the thread seems to stop for no apparent reason.  Any ideas?  I never see any error info printed an error on the control display.

    Thank you

    Sean

    You receive errors on one of these threads of error that ends by driving to the right hand of the loop error node?  I think it is easily possible to get an error on a file operation.  If you get an error going to this node of error in right hand, it stops the timed loop.  Open context-sensitive help and place the cursor on this part of the structure of the time for more information.

  • Problem blackBerry Smartphones: keeps the switch between the headset and speaker

    Hey guys, I'm new here so I will try to provide everything I can. I have a Bold 9700 with ATT and the OS is v5.0.0.405. Well a couple of weeks my blackberry has started to develop an annoying problem. When in a call, most of the time (not all) he starts switching between icon of headset and normal speaker. When this happens, you can hear the phone switch between the two through the speaker, and it makes it so I can't hear someone and they don't hear me. I'm out of my warranty of 30 days of ATT, but I think im still well within the warranty of the RIM. I admittidly dropped, but this should not happen. Nothing like this has happened to any other phone I've owned. Is this what can I do to get some sort of replacement?

    Thank you!

    shigity wrote:

    Is this what can I do to get some sort of replacement?

    Thank you!

    All services, warranty or otherwise, is provided by your operator and will be carried out in accordance with the contract you signed with them. Go see them.

  • CC Adobe is going to be a real problem if we keep getting errors like error 2 (which is a pain to fix!)

    I followed the instructions to uninstall and reinstall, but I need my LR to work on and has not been able to connect to the internet, it would have been a MAJOR PAIN!  Adobe has better make CC do not do that! Are you listening Adobe? Still hanging with opening who don't quit on me... and hope that something is coming out soon that will be installed on my computer, so I don't have this problem... Cloud apps are a pain!

    Hi Jan,

    Sorry to hear about your difficulties, I would say that you already fixed but if not this article might help: Error Code 2 has no Creative Cloud Desktop app update

    -Dave

  • Problem led the TweenEvent event.target

    Hello

    The logic of the code is as follows (pseudo):

    function X {}

    switch

    (1) tween1-> tween finishing launch onTweenFinish();

    (2)-> finishing launch onTweenFinish() tween tween2;

    (3) tween3-> tween finishing launch onTweenFinish();

    ]

    and now AS3:

    int onTweenFinish(e:TweenEvent):void

    {

    trace ("Motion event triggered");

    trace (e.Target.Name);

    }

    results in: ReferenceError: Error #1069: the property name not found on fl.transitions.Tween and there is no default value.

    What I want is to treat all the interpolations of three in one function, but I need to know what tween it was. It is of course possible to make three separate functions, one for each tween, but it's just not good.

    Any suggestions?

    Thank you

    Maxim.

    You could test to see who it is...

    function onTweenFinish(e:TweenEvent):void

    {
    if(e.currentTarget == tween1) {}
    trace ("tween1 triggered event");
    } else if(e.currentTarget == tween2) {}
    trace ("tween2 triggered event");
    } etc...

    }

Maybe you are looking for