How would you approach this?

Hello All,
I am writing a simple GUI that will allow me to choose a file and then transmit that file to a device.  Attached what my GUI (front panel) will look like.  This is my approach:
-Two 'while loops'
-One loop (event loop) contains an event structure to handle button presses as well as window close (I want to release a semaphore before the program terminates).
-The other loop (main loop) takes care of communication with the device.
-The event loop uses a notifier to relay start/stop commands to the main loop
-The main loop triggers an event signaling that it has completed transmitting
-*When one button is pressed, it is disabled and greyed until that action can be performed again*
(ex. 'Download' is diabled until 'Cancel' is pressed or transmission completes)
Does anyone see where this VI could get 'stuck' (in a state that it can't recover from)?  Does anyone have another approach that may be simpler yet do the same?
Thanks!!
Jorge

Using a notifier might be problematic, I only use those to interchange static values (write once, read many).
You could get stuck if you don't have a time-out on the hardware interfacing values.
Ton
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!

Similar Messages

  • How would you approach this project?

    Below are two examples of a kind of illustration I admire. They are from an edition of Izaak Walton's "Compleat Angler". Do you know a way with PSE3 to create this kind of result (or something approaching it) from a photograph?
    http://www.pixentral.com/show.php?picture=10hH3WOKdjf7I2PedX5Zu3C81qQZLj0
    http://www.pixentral.com/show.php?picture=1xKIqknDThNisjTP06Kw9Q1sT1r1
    Thanks in advance for any suggestions,
    Jack

    Jack,
    You might also try some of the PSE built-in filters, such as
    Filter>Artistic>Poster Edges
    Filter>Artistic>Watercolor
    As I mentioned before, you can convert the pic to sepia tone either before or after applying the filter. There are several ways I use to apply sepia. If you are interested I can post them in another message.

  • HP Prime: how would you approach this vector problem

    Given:   r1 = 2i-j+k 
                    r2 = i+3j-2k
                    r3 = -2i+j-3k
                    r4 = 3i+2j+5k
    if r4 = ar1+br2+cr3  find the values for a, b, c
    If I use the Solve App I have five equations with three unknowns and Solve App doesn't like that  "Must select as many variables as equations"   If I select five variables I get "no solution could be found"
    I tried using the 'solve'  function in the CAS mode, but it can only solve for ONE variable.   Seems like the only way I can solve this problem is by hand???   any suggestions???

    Thanks for the encouragement,  I wasn't so much stuck as I was trying to find out the power / limitations of the HP Prime.  
    I was disappointed to find out that the Prime doesn't seem to know the difference between the small letter i (alpha-Tan) and the complex i (shift-2)  so that took awhile to figure out if I was making a mistake (why have two difference key stokes if they are both the same) or this was a peculiarity of the program.  Equally frustrating was entering an equation using the small letter i,  I could not tell if I was entering a complex number or a variable or a vector as there are so many different forms the complex number takes or I just can't tell the difference.  Sometimes it is written  2+3*i;  sometimes as [2 3*i]; 
    i enter 2+3*(alpha TAN)  and i get 2+3*i     same results if i use (shift 2)
    i enter ( 2+3*(alpha TAN))  and i get 2+3*i   drops the parenthesis 
    i enter (2,3(alpha TAN)) and i get [2 3*i]     why the change from parenthesis to brankets when brankets are used for matrices???  why the dropping of the comma??? i gather the brankets without the comma is a vector - just confusing having to enter with a comma but it is displayed without the comma - not very good reenforcement.  
    I enter (2,3i)*(4,5i) displays as [2 3*i]*[4 5*i]  result is -120
    I enter [2 3i]*[4 5i] displays as [2 3*i]*[4 5*i]  result is -7,    both entries on the left side look the same but the right side is different????  I have no idea what is going on here???
    I enter(2+3i)*(4+5i) displays the same, result is -7+22*i
    I enter 2+3i*4+5i displays as 2+3*i*4+5*i, result is 2+17*i
    still confusing
    anyway  back to the problem - gave up on entering variables, just used the Linear Solver, columns x,y,z became a,b,c and rows 1,2,3  became i,j,k   the solution  (-2, 1, -3)  
    I tried your "Munk" , no function of that name in the catelog - didn't work....
    Used M1^-1 * M2 and got the same results as I got in Linear Solver... 
    can you enlight me on complex numbers versus vectors versus whatever else I was entering,   thanks

  • How would you approach this SQL prob?

    Suppose we have an accounts system
    An account is simplistically defined by its ID
    All spends of money are logged with that ID, on a date
    ID, Date, Spend
    1, 01-jan-2007, 200
    1, 01-feb-2007, 200
    1, 01-mar-2007, 200
    1, 01-apr-2007, 200
    1, 01-may-2007, 200
    1, 01-jun-2007, 200
    Marketing want to see a report that looks like:
    ID, Opened, DateSpendReached500, DateSpendReached1000
    So for account 1, the first time spend went over 500 was in 01 march, when their total spend to date was 600, and they reached 1000 spend in may.
    I was thinking of doing this pseudocode:
    SELECT
      ID,
      date_acc_opened,
      MIN(When RunningTotal >= 500 Then date_of_spend Else 01 Jan 2099) as Reached500,
      MIN(When RunningTotal >= 1000 Then date_of_spend Else 01 Jan 2099) as Reached1000
    FROM
      SELECT ID, date_acc_opened, Date_of_spend, Sum(spend) OVER(prt by id, order by date asc) as RunningTotal
    ) tots
    GROUP BY ID, date_acc_openedYour thoughts?

    Another way all as one query...
    SQL> With T as (select 1 as id, to_date('01-jan-2007','dd-mon-yyyy') as dt, 200 as spend from dual union all
      2             select 1, to_date('01-feb-2007','dd-mon-yyyy'), 200 from dual union all
      3             select 1, to_date('01-mar-2007','dd-mon-yyyy'), 200 from dual union all
      4             select 1, to_date('01-apr-2007','dd-mon-yyyy'), 200 from dual union all
      5             select 1, to_date('01-may-2007','dd-mon-yyyy'), 200 from dual union all
      6             select 1, to_date('01-jun-2007','dd-mon-yyyy'), 200 from dual union all
      7             select 2, to_date('01-feb-2007','dd-mon-yyyy'), 50 from dual union all
      8             select 2, to_date('01-mar-2007','dd-mon-yyyy'), 100 from dual union all
      9             select 2, to_date('01-apr-2007','dd-mon-yyyy'), 100 from dual union all
    10             select 2, to_date('01-may-2007','dd-mon-yyyy'), 75 from dual union all
    11             select 2, to_date('01-jun-2007','dd-mon-yyyy'), 100 from dual union all
    12             select 2, to_date('01-jul-2007','dd-mon-yyyy'), 70 from dual union all
    13             select 2, to_date('01-aug-2007','dd-mon-yyyy'), 75 from dual union all
    14             select 2, to_date('01-sep-2007','dd-mon-yyyy'), 100 from dual)
    15  -- end of test data
    16       select id
    17             ,acc_opened
    18             ,max(decode(fh_plus, 1, dt)) as spend_500_plus
    19             ,max(decode(th_plus, 1, dt)) as spend_1000_plus
    20       from (
    21             select id, acc_opened, dt
    22                   ,CASE WHEN lag(tot) over (partition by id order by dt) < 500 AND tot >= 500 THEN 1 ELSE 0 END AS fh_plus
    23                   ,CASE WHEN lag(tot) over (partition by id order by dt) < 1000 AND tot >= 1000 THEN 1 ELSE 0 END AS th_plus
    24             from (
    25                   select id
    26                         ,min(dt) over (partition by id order by id) as acc_opened
    27                         ,dt
    28                         ,sum(spend) over (partition by id order by dt) as tot
    29                   from t
    30                  )
    31            )
    32       group by id, acc_opened
    33       order by id
    34  /
            ID ACC_OPENED  SPEND_500_P SPEND_1000_
             1 01-jan-2007 01-mar-2007 01-may-2007
             2 01-feb-2007 01-aug-2007
    SQL>

  • I need to change my apple id in my ipod (it was an old email address).  How would you do this?

    I need to change my apple ID in my ipod touch (it was an old email address).  I have changed to setting in itunes.  How would you do this? - not sure what my OS is.

    Go to Settings>Store (or Settings>iTunes and App Stores for iOS 6) and sign out and sign in with the other/updated account.

  • Advice - how would you do this?

    I have a compound path (an inner rectangle and an outer one) in an opacity mask. I have to apply an b/w gradient from the outer to the inner ractangle.
    I can only find a feature to add circular an linear gradients!
    How would you do this?

    haemse,
    Transitions like this are made with Blends; Object>Blend>Options to ensure the options you want, then Object>Blend>Make.
    In this case you may:
    1) Object>Compound Path>Release;
    2) For each rectangle, set Stroke to the Fill Color and set Fill to None;
    3) Select both and Object>Blend>Make (keep it Smooth).
    In other words replace the Compound Path with a Blend.

  • How would you do this? - Using a laptop as a capture device?

    I have noticed that most camcorders can only record 2 independent audio tracks. I have a situation where I need to recored 4 separate audio tracks. I have noticed in the Log an Capture window that it is possible to record more than 2 tracks at once... How do you route this (What interface works best?)
    My second question is I have seen there is a huge move to go tapeless (Which I would love to do)... I have played around with hooking up my MacBook Pro, External Hard Drive, and my camera... and then launching FCP and capturing ... (The quality is outstanding) and it really saves time because you don't have to import from a tape.... So here is my question... How could I route 4 independent mics, AND would this work if I recorded for over an hour? (I often record musicals that run at least an hour)...
    Thanks to anyone that can help!!!
    Gary

    First, I believe there is a 4 hour limit on LIVE captures. We've done up to 2.5 hours, in the past. I don't know how a long live capture with 4 channels of audio might affect this.
    RE: "Live capture quality is outstanding"...I'd advise that you roll tape as a backup. Should 'ANYTHING' happen to the live capture, you'll be hosed...(Mr. Murphy guarantees it)
    I've not captured 4 channels, but Andy Mees posted this bit of advice awhile back...
    "use a DV deck like the DSR-1500 together with a capture card, like the Decklink or Kona or Pipe cards. then using the SDI output from the deck you can happily capture 4 channels. likewise for your live input."
    ...from this thread:
    http://discussions.apple.com/thread.jspa?messageID=2953885&#2953885
    Straight FW capture is limited to 2 channels of audio. Most often people simply capture in two passes (as discussed in aforementioned thread).
    There are probably other solutions...I just wanted to ask if Duran's Pharmacy is still serving awesome New Mexican cuisine?
    K

  • How Would You Do This Effect in Logic?

    I'm trying to figure out how I would best achieve the vocal effect in Kesha's song "BLOW."
    http://www.youtube.com/watch?v=_USZ2D0GTxo
    In the chorus, there is the catchy "blow....oh...oh..oh..oh..oh..oh" section. Someone suggested she sings the entire line, which gets interrupted by a gate, which could be triggered by a keyboard, so everytime you hit a note, it stops the steady note she's singing. If you guys think that's what they are doing, how would I set this up? This kind of thing goes on in modern pop all the time and I have to find a way to do this effect before it drives me crazy;)
    I get hired to do karaoke tracks all the time and whenever there is one these to day it is always a pain due to my being more a traditional guitar, keyboard "organic" producer than synth/FX guy.
    Thanks for any help.
    Tom

    Thanks David.
    The plug ins you mention don't really help though, because they can only be set to preset patterns. This is a specific pattern of course. I know The Bee Gees did this in Robin Gibb song from the 80s called "Boys Do Fall In Love" ....there was a section that went "B......B...B...Boys fall in love." They did it by sampling the phrase into the Emulator back then and playing the phrase. I guess I could do that with EXS.
    The best solution would be if there was a way to make a gate respond to a midi track, so I could play the rhythm on the midi track, quantize it, then use that as a trigger to the gate...gonna try that...Guess I could also record the midi track as a sidestick or something and use that audio track to trigger the gate....hmmmm.
    Tom

  • Dates : How would you do this.

    mx:DateChooser has a selectableRange property where you can set a rangeStart and a rangeEnd...
    Is it possible, or how would you go about doing it so it's a nonSelectable range.
    a user clicks on 3 days, so the calendar marks that off, so another user won't be able to select those same 3 days type of thing...

    d'oh
    .disabledRanges
    *SIGH*

  • Had you been the customer support,how would you resolve this?

    Hi community,
    i would like to have your opinion on this matter
    i purchased a macbook pro 45 days ago
    and i noticed recently that the lid does not close flush with the bottom part of the unit.
    so i broght it to the apple store to have a look at it
    they asked me what happened, i answered exactly like this:
    -i think i have never noticed because it is not 100% apparent to the eye but i never dropped my laptop and as you can see there is absolutly no DENT at all
    the co worker named yoan did not believe one word from what i said and told me:
    -i will exceptionnally replace the screen for you
    i was like what?
    -i only had it for 45 days, are you going to make my laptop 1/2 original half rebuilt?
    i said no way that i spent $1500 to have my laptop rebuilt after only 45 days, so i asked for an exchange given that my macbook has NO SCRATCH whatsoever.
    from then on,they have never looked back to my suggestion of exchanging my laptop and they kept telling me,all i can do is put a new screen to it (VERY FLEXIBLE!!)
    SO ALL I WANT IS YOUR OPINION POPULATION!!
    i escalated this to 4 managers that kept saying the ONLY 1 SOLUTION that is written on my case
    i am willing to attach pictures to show how unfair the apple co workers were to me.
    i had not a single scratch on my laptop and i think that MY ONLY MISTAKE was that i did not realize this in my 14 days of purchase (apple refund policy)
    this is my case# 248432100.
    i attached pictures to this message, if you need more please let me know.
    please feel free to send me your opinion by email or ask for pictures as i will send them HD to prove that i was duped by apple
    this was my 5th apple product and if i can have YOUR OPINION on this, i want to know if i am willing to do business with this company in the future or im i the only one that is missing something here.
    my justification as to why i did not want to change the screen lid is the following:
              -i like to preserve originality of my items (especially if i paid $1500)
              - i have experience in the past where i had an iphone 4, and when they changed the back glass they had blocked the flash from working properly
    Please take sometime to give me your opinion on this community
    MY EMAIL IS : [email protected]
    Thank you   

    You had 14 days from the date of your purchase to inspect your MBP and exchange it. After that time expired, the window of opportunity for an exchange closed. You are now a candidate for a warranty repair, which has already been offered to you. All of the foregoing is standard Apple policy and practice, applicable to you and to everyone else. But you don't trust Apple to repair your new machine. Where would you be if it actually had a serious problem?
    Do you object to having your car repaired, too?

  • How would you do this style of scrawling if thats what its even called ?

    just how the words are so animated and they move and explode into different things
    http://youtu.be/KnnYiW5dnhQ

    ok so what your saying is once i am familiar with the basics, how to do something as complex as this would be just a matter of putting together a couple different steps i learned along the way that would lead to this i.e. tracking text to shape and etc .. i can definitely understand that because thats pretty much how i learned to edit video based off of those principals, I'm just trying to give myself something to come back and look at it when its time to move up because honestly im trying to have something like this usable by september for a project that will huge... as an amateur/pro cinematographer i have garnered millions of youtube hits in the music field, and now I'm trying to build some more unique skills that would rival some of the best.
    ps im a  fast learner so don't hesitate to drop anything on me i might not be ready for because even if... i will take a step like you suggest and come back with a better mind set to comprehend the information

  • How would you create this effect?

    I am curious if there is a fairly straight-foward away of creating the effect seen in this image. I am talking about the pixelated effect made up of many little red boxes of various hues at the top part of the image.
    I was thinking of zooming in real close to an image in photoshop and doing a screen capture, but I'd rather have a vector image that can be easily scaled in size and easy to change the hue to different colors.
    Something like this able to be done in illustrator without building it a box at a time?
    Regards,

    Well I'd say that PDF is a vector.
    The PDF contains nothing other than a raster image. It contains no vector paths.
    (By the way: "A vector" is a single expression of a direction. Calling a vector-based illustration "a vector" is like calling a raster-based image "a pixel.")
    I zoomed in as close as I could and didn't see any pixels.
    All you could see is pixels. That's all that's there.
    If it's raster I'd be interested in knowing what resolution...
    Its resolution is 1. It's a single-pixel raster image (as given away in its title).
    I've never experienced a raster image that didn't get more pixelated the larger you scaled it up.
    Yes, you have. That's exactly what I demonstrated in post 5 and in the PDF.
    The operative word in your comment is more pixelated. That misconception is the point of the demonstration. Your image is already pixelated, and that's exactly what you want. It won't be "more" pixelated whatsoever, no matter how large you scale it.
    At the heart of the [quite common] misconception is this: What you are calling "resolution" is not. True resolution is the measure of the amount of information contained. A raster image contains only a fixed amount of information. PPI is merely a scale factor. It's merely an expression of information density, not quantity. As you can see, that PDF is every bit as "resolution independent" (i.e.; scaleable) as a vector square.
    The same priciple applies to your raster image. Your whole intent in your posted example is to display pixelation. So if the very thing you're trying to depict is the pixelation of, say, a 10 pixel x 20 pixel raster image, then all you need in order to depict that at any scale is a 10 pixel by 20 pixel raster image. At a scale of 10 PPI, you've got a perfect depiction of 10 square Pixels Per Inch. At a scale of 200%, you've got a perfect depiction of 5 square Pixels Per Inch (i.e.; 10 Pixels Per 2 Inches). You can scale it to the size of the moon and you'll have a perfect depiction of 10 Pixels Per Moon. It's just as scaleable as a 10 x 20 array of vector squares.
    In other words: All the actual resolution of your raster image (all its information—all its pixels, in all their squareness) is already visible. Reducing its information density (by scaling it larger) will not reveal more of its actual information (the square shape of its pixels—the information that one usually wants to conceal or disguize about raster images, but not in this case).
    The whole purpose of making sure your raster images have "sufficient resolution" in desktop publishing is to disguise the squareness of their pixels (what is commonly called "pixelation"). But that is exactly what you are intending to depict in this case. And you want to be able to depict that with equal clarity at any scale. There's no need to re-draw it as vector paths in order to do that. In this situation, you are not trying to avoid "pixelation," you are trying to show it, which is exactly what a raster image does by its nature.
    Think of it this way: If all you are trying to draw is 200 squares, it can easily be argued that a raster image is more "data efficient" than a file containing 200 square vector paths. For each vector path, you have to include four coordinate pairs (800 anchor points). For a raster image, all you need is 200 color values.
    This is not just a symantic or academic or pompous know-it-all point of argument. It's a point widely applicable to many common situations, and something every graphics professional should understand. For example, consider the software instructions author who pointlessly frets over the misunderstood "requirement" for pixel density when his illustrations necessarily consist of screenshots that are, after all, supposed to accurately and clearly depict what the user sees on his screen. Or the fact that you see single-pixel raster images scaled to the full width of the page, or dimensions of a table cell or large section of a whole background on web pages everyday. Or the widespread misconception that intentionally fuzzy raster effects like soft drop shapows "require" 300 PPI.
    JET

  • Secure redundant network, how would you do this?

    I'm just kind of curious what people think of this. I interned at the local county about a year ago. I noticed something that kind of bugged me. They have all their 911 dispatch stuff done on computers. They have this setup called computer aided dispatch I think it has a lot to do with like records of individuals, etc. Which all seemed quite critical.
    I didn't like the setup much though because they had 3 systems I'm pretty sure all went to the same switch and there was only a single server for this software, it used tape backups which if they had to use offsite one would then be 2 days old. (I guess the software vendor set all this up. besides a fiber which would have split off for other county offices.)
    For me I saw so many possible issues with that I think may be why they are changing vendors now.
    It would cost $$ but this would be my...

    Hi everyone,I have a user connecting to a Server 2008 R2 RDP server. He can connect no problem, but there is quite a bit of latency which I do not understand. He pings to the server at around ~60ms. I have another server on the same site (Server 2012 R2) and he does not experience the same latency. I've connected another Windows 8.1 computer to the Server 2008 R2 box and CANNOT replicate the issue.He appears to be the only one.I've temporarily disabled his AV, windows firewall, disabled local visualization settings (and on the server). I've configured RDP to 56k settings in the Experience tab which changed absolutely nothing.I've also run the netsh commands everyone seems to suggest with this issue.Any recommendations or things to try?EDIT: I've also updated his wireless drivers. I don't have the laptop in hand to try the local...

  • How would you do this process?

    Hi,
    I have an interesting scenario that I am not sure how to set up correctly in Oracle. Please let me know your thoughts if possible.
    We have a product (part # 1 bathroom vanity = part # 1cabinet supplier #1, part # 2 granite counter supplier #2, part #3 faucet supplier #3, part # 4drain supplier # 3) we drop ship from an overseas supplier direct to the port. The sales orders are all drop ship for part #1. We issue purchase orders for parts 2 – 4 and have them drop shipped to supplier number 1 for aggregation in one shipment and box.
    Questions…
    How do we link recommendation drop ship orders for part 1 to prompt demand for parts 2 – 4? These would all need to be drop ship as well since they are never received here.
    How do we allocate costs to the single highest level item for all costs?
    Is there a way to set up a drop ship assembly?
    Thanks,
    CC

    Hello Niten,
    You can touch on few points like:
    1>Possible Source sytems involved: Flat files, R/3, XML, Legacy applications, Applications like People soft etc.
    2> Extractors: Standard extractors for R/3, Procedure of XML extraction, Tools like DBconnect for databases like SQL, Oracle, tools like Ascential datastage for applications like peoplesoft etc.
    3>Steps involved in extraction, terminologies like datasource, Update modes, Record modes, Infosources, Transfer Rules, Update rules, PSA, Master data, Data targets like Cubes, ODS, difference between them.
    4>Different scenarios with examples. Granularity of data, History of data to be covered, Application components within R/3 those are involved and the respective approaches for the same. for eg: LO for logistics, Co-pa, FI-SL, Generic extractions.
    5> Features like Monitoring, Scheduling of data loads.
    Hope this helps..
    thanks,

  • How would you model this? Kind of different...

    Bit of a long-winded background to what we have here. Sorry... We are building a new warehouse. Data comes from shops around the world - machines that use Cad to cut material. Two main metrics - the job_run and each of those can have many cuts. In the warehouse I had planned on building out on a time dimension of day, and the our location (down to machine), material, and some other dimensions. The fact table kept the total length of cuts, number of cuts, total length of job, number of jobs, - all per day etc. Seemed pretty straight forward.
    Then, we got some requirements on some of the questions they want answered. For example, how many cuts took longer than 30 seconds in a given day? Well, I had thought maybe I create another column in the fact table that just stored this metric and calculated it when we did the nightly load. But... we were told there could be many more of these types of ad-hoc queries - and I don't want to keep recoding the load.
    So, we realized we need to store each cut and job and their length and other attributes in the fact table - no roll up. What I'm wondering is... with this level of detail, the current dimension keys won't make each row unique. I basically need each cut ID, but is that a dimension? Is it normal to just store an ID with no dimension as part of the composite key? I thought of adding that to a dimension with job... but that seems odd. For example, some jobs have no cuts (they fail) and they want to know how many. Kind of hard when you don't have any rows in the fact table for that. Almost thought of another fact table for job... Anyway, this threw me for a loop.
    Thoughts on how others would do this?

    Thanks - yes, I've started looking at this stuff. I think I was preoccupied with using the dimension PKs to make the composite primary key for the fact table. I think it's best just to use the cut ID. The other issue was the "what doesn't happen" events. It's like having an order with no line items. If I've got no cut for a job, there's no point in creating one (like an outer join) since there's a lot of these. (User error, bit breaks, etc.) I think the idea of having a separate table for these I can get the failed jobs only...
    Thanks guys.

Maybe you are looking for