Event Structure Freezes Vi After Capturing The First Event

My Event structure catches the first instance of my button press but then it freezes my Vi.  The reason is because of the while loop but I need the while loop to constantly read from a serial port and send data to a serial port. The vi included is stripped down to be just a while loop that does nothing.  I have also tryed putting the event structure in the while loop, but the same thing is happening.
Any ideas?
Thanks,
Cason Clagg
SwRI
LabView 7.1, Windows XP

Also, put the button inside the event structure where it is acted upon, from LV help (suggest you read the entire events section of help):
When you trigger an event on a Boolean control configured with a latching mechanical action, the Boolean control does not reset to its default value until the block diagram reads the terminal on the Boolean control. You must read the terminal inside the event case for the mechanical action to work correctly. As a reminder, a note appears in the Edit Events dialog box when you configure a Value Change event on a latched Boolean control.
Refer to the Handling a Latched Stop Boolean Control in an Event Structure caveat for information about how to handle a latched Boolean control.
When you trigger an event on a Boolean control configured with a latching mechanical action, the Boolean control does not reset to its default value until the block diagram reads the terminal on the Boolean control. You must read the terminal inside the event case for the mechanical action to work correctly. As a reminder, a note appears in the Edit Events dialog box when you configure a Value Change event on a latched Boolean control.
Refer to the Handling a Latched Stop Boolean Control in an Event Structure caveat for information about how to handle a latched Boolean control.
~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~

Similar Messages

  • My problem is that after printing the first photo or picture, when I come to print a second, both the Colour Management and Epson Colour Controls are greyed out and showing No Colour Management

    I have recently purchased a Mac computer (updated to Maverick) to go with my Epson Stylus Photo RX500 printer which has given excellent service with my old Windows computer. However, when trying to print pictures or photos via Photoshop Elements 11, the best results I can get are using the Colour Management and Epson Colour controls in the printing options box.
    My problem is that after printing the first photo or picture, when I come to print a second, both the Colour Management and Epson Colour Controls are greyed out and showing No Colour Management, The only way I can reset the controls is to shut down the printer and computer and restart.
    Could there may be a setting somewhere that I need to adjust please?  I have been in touch with Epson and they say that the Epson Colour controls are part of the Photoshop Elements software but a post on the Adobe forum brought no results and I am unable to contact Adobe.
    <Edited by Host>

    Hello Garry. Thanks for the reply. I guess I should have used a different title from "How do I post a question?" That should come after trying to resolved the colour settings first. However, to answer your question, after experimenting with all the different settings in Photoshop Elements and Epson software, I now start with PSE11 Colour settings then click "no colour management" then after clicking Print, I choose "More Options/Colour Management/Colour Handling/Printer Manages Colour" then I choose "Page Setup/Layout/Colour Matching" which then shows Epson Colour Controls but I also choose "Layout/Colour Management" which then shows "Colour Controls/Mode" I then of course choose an Epson printer profile depending on the paper I am using. I get good results but as I said, the Colour Matching and Colour Controls are then greyed out. Hope that makes sense.

  • Find feature looses focus while typing a phrase, after typing the first space character.

    The find feature now looses focus while I am entering a phrase. After entering the first word of a phrase and the space character, the find box will reposition itself to a possible result on the web page on EVERY CHARACTER and I have to reposition the cursor BACK to the find box to enter every subsequent character in the phrase I am searching for. Is there a way I can turn this useless (for me) *feature* off?
    I used to be able to key the phrase I was looking for, and the box would turn red as I typed if the phrase did not exist. I would really appreciate being able to do this again. It now seems that Firefox 'jumps the gun' to find the phrase before I have completed typing it in.
    Thanks.

    *If you have many extensions then first enable half of the extensions to test which half has the problem.
    *Continue to divide the bad half that still has the issue until you find which one is causing it.

  • Why does the Iphone4 freeze up after downloading the IOS7.6 patch showing an ITUNE icon? The phone will not change screens for 4 hours.

    Why does the Iphone4 freeze up after downloading the IOS7.6 patch showing an ITUNE icon? The phone will not change screens for 4 hours.
    I Turn it off/on  and nothing changes.

    Hello bigboza,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/ts3281
    If the device remains unresponsive or does not turn on (or power on), reset your device.
    If there is no video or if the screen remains black, verify that the device has enough charge to turn on:
    If you are using an iPad, ensure that it's connected to the USB Power Adapter supplied with the device.
    Let it charge for at least twenty minutes, then see if it starts normally.
    If there is no image on the screen, press the Sleep/Wake button to attempt to wake the device.
    If the screen displays a red battery icon, continue charging the device until the battery is fully charged. Learn more about charging iPhone and iPod touch, or iPad.
    If the above steps do not resolve the issue, or the if the screen remains black or shows a persistent Apple logo, try restoring with iTunes:
    Connect the device to your computer and open iTunes.
    If the device appears in iTunes, select and click Restore on the Summary pane. Learn more aboutrestoring iOS software.
    Have a nice day,
    Mario

  • Able to connect keyboard to only one mac ...not able to connect to my other mac at work after disconnecting the first one ...any suggestions please

    Hello,
    I am able to connect my wireless keyboard to only one mac ...not able to connect to my other mac at work after disconnecting the first one ...any suggestions please
    thanks,

    Hello:
    You will need to delete the keyboard from the other Mac.  Simply disconnecting it leaves it still paired with the first Mac.
    Barry

  • Capturing the Print Event

    Hi Guys,
    A newbie here!
    I have been reading a lot but I can't seem to find the answer I'm looking for.
    See, I have created a report in SAPScript. Basically, I need to create a table (have done that) to record when the document was initially printed, as well as the latest date when it was reprinted.
    For succeeding prints, I have to mark the document with the label "reprint".
    The question is, how do I capture the "print event" so I can record said data.
    I need to capture the event
           1. when the user clicks on the print button of the initial dialog box; 
           2. when the user clicks the print button on the standard menu when he goes on print preview; and
           3. when the user clicks print from the system menu.
    Thanks much!

    Hi,
    Thanks! I know NAST is a message status table, but how would I connect it from there? How would it determine that the output was printed. Is there a way to know the object key that my program would create?

  • Event structure freezing when short delay inserted

    Well, the simple stuff in LabVIEW I can do, but I'm still struggling to get my head around the concept of "Events" and how LabVIEW handles them. If I only have one type of event (i.e., pushing a button out of several on the UI, or reading a serial input and handling it programatically), I think I'm good. But my application requires me to be able to handle either of these at the front panel.
    Going through the LV Knowledgebase got me this link (it's a little old - LV8.6, but seemed to handle the basics), from which I downloaded "events.vi" (attached). My situation is a little different, so I modified it a bit to "EventExperiment.vi" (also attached) to have a bare-bones template I could use for my application. If I run it as shown, it seems to run fine (with a serial input, the "1" and "2" lights turn off, but the Bytes at Serial Input indicator always shows "0" and the "Serial Indicator" light never lights - I am assuming that these change and revert too quickly to see in the UI). My concerns with my VI are:
    If you add a short delay in the processing of the serial input event (say 1 second delay in that event case, or even a 1 second delay subVI after the serial flush connected through the error line), the VI accepts no further UI input after the first serial event.
    If you add an error wire through all the events subVIs (whether you merge this wire with the one going through the serial subVIs, the program just hangs up.
    And, one little bothering thing is that the original "events.vi" takes three presses on the "stop" button to close. I'm figuring here that it's because of those local variables being passed between loops, but it hasn't been enough of a bother to worry about.
    Your help is greatly appreciated,
    Cameron
    To err is human, but to really foul it up requires a computer.
    The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
    Profanity is the one language all programmers know best.
    An expert is someone who has made all the possible mistakes.
    To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):
    LabVIEW Unit 1 - Getting Started
    Learn to Use LabVIEW with MyDAQ
    Attachments:
    events.vi ‏24 KB
    EventExperiment.vi ‏25 KB

    Well, I thought I'd add a final post for some closure to this one.
    To summarize what I was trying to accomplish: I wanted to have some kind of an event structure where you could use both regular User Events (button pushes, numerical control changes, etc.) and an outside (non-keyboard/mouse/touchscreen) event, like a serial character coming into a COM port, to initiate an action. This was to eliminate a loop where the computer would be polling the COM port continually at a pretty fast rate. (I must have read a hundred times in the past month that you don't want to run a While loop for polling if you can help it.)
    It turns out (after a couple of confusing days, I talked with the NI service engineers) that you can't do this. In order to detect a character at a COM port, you have to be polling the port periodically with a Read and look for a change in the bytes available or another parameter. You can do this through a timed loop separate from your Event loop or through a Timeout event case inside the loop, like Don_Phillips suggested.
    However, I believe I'll go the separate loop route, since my head's actually more comfortable with it than the Timeout route.
    Thanks, folks, for your help,
    Cameron
    To err is human, but to really foul it up requires a computer.
    The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
    Profanity is the one language all programmers know best.
    An expert is someone who has made all the possible mistakes.
    To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):
    LabVIEW Unit 1 - Getting Started
    Learn to Use LabVIEW with MyDAQ

  • How to capture the first execution of a report

    Hi,
    I am executing a report in background. The first time the report is executed I have to do a different processing. After the 1st execution I have to different processing.
    Someone please tell me how to capture the 1st execution of a report. Is there a system variable ?
    Appreciate your <removed by moderator> response.
    Thanks,
    Dikshitha G
    Edited by: Thomas Zloch on May 12, 2011 11:36 AM

    Keshav.T wrote:
    Are you going to create a Z table for this ???? ... Is there nobody to advice you in your firm ???
    Hello Keshav,
    A couple of years ago i would have recommended using the INDX table, but it has got it's demerits.
    Maintenance of Z-table is easier than the INDX table. Say there is some error in the program & you want to override the flag. Will it be easier to do so in the INDX table or via SM30 for the Z-Table?
    As a matter-of-fact i will recommend using the solution provided by Florian the TVARVC technique.
    1. Create a parameter(specific to your program) & transport it.(See the trxn STVARV)
    2. In your program check the value of this param & set it accordingly.
    Using TVARVC you will 2 birds with one stone:
    1. You don't have to create a custom table.
    2. Easy maintenance via STVARV trxn.
    Hope you get the point!
    Cheers,
    Suhas
    PS: In our system we have a Z-table designed specifically for this particular purpose. All the programs having this kind of requirement refer to this table.

  • UCM workflow: Unable to capture the reject event.

    Hi guys,
    We are using UCM 11.1.1.5
    We want to customize our workflow with 3 stages. If a particular user rejects the workflow, we want to display a error message and abort the reject action.
    hence we wrote under the Entry event of the previous stage as follows
    <$if wfAction like "REJECT"$>
    <$abortToErrorPage("Sorry you cannot reject this stage.")$>
    <$endif$>
    But we found that the script was not triggered when a user clicks on Reject button. Is there anyway we can capture the Reject Action?
    Is it a bug in UCM 11.1.1.5? Anybody faced similar problem.
    Please help us
    THanks & Regards
    Jacob

    hi,
    Unfortunately I don't have the solution as I also am facing the same issue. You can also follow my thread here at the forum. Search for "workflow issue using wfAction" here at the forum.
    Have you tried to run the test under the Test tab and what results do you get?
    cheers,
    Ibrahim

  • When I check spelling, after correcting the first misspelled word the rest of the missspelled words in the message are no longer marked as misspelled..

    If, say, five words originally show as misspelled, after I correct the first one the other 4 no longer show as misspelled.

    Hello.  I too have a Mail spelling issue since Mavericks.  My mail has never made any automatic corrections - only suggestions - and I am not sure how to get that going.  Anyhow, these days when the speller doesn't recognise a word and I go in and add an accent to that word (alt+e+e), it infuriatingly sends the message immediately without continuing the spellceheck.  Any ideas gratefully received.

  • Capture the First Changed Date In actions Infotype In PA30

    Hi experts,
    I want to find out the date on which the actions record was created. Where can i find this ?.
    For ex if i am creating a record on 01.07.2011 with start date 25.06.2011 the change date would be 01.07.2011 in pa0000.
    If i change it on 10.07.2011, the change date would be 10.07.2011. I want to capture the date when i actually created it(01.07.2011). I tried the T.code S_AHR_61016380 . But it contains the log of the changes done from the second time.
    Can anyone plese help me?
    With thanks in advance,
    Syed Ibrahim .G

    hi prabhu,
    thanks for the reply. I tried the function modules and these function modules also return the logs of the data changed .
    But i need to get the log of the record when it was created first.
    For ex : for actions info type i created a record with start date as 20.09.2011 .When i tried the function module it did not return any values. Then, i changed the record i created for actions info type . now i executed the Fm , now i was getting the log for the data changed and not for created.Can some one throw light on this.
    With thanks in advance,
    Syed Ibrahim .G
    Edited by: SYED_ibbu on Sep 22, 2011 9:51 AM

  • Poor Quality after Capturing the 1080i Source

    I use the camera that the model is Sony HDR-HC3.
    When i capture the 1080i source recorded by above model,
    the source in Final Cut Express HD is very poor.
    The image will break in several shadow when the shot is presenting
    movement, as like pan left/right, tilt up/down etc.
    When I export the movie used the H.264, it's much more poor.
    What's wrong is happened?
    Thank you for reply.
    p.s.May i post the screen picture that Final Cut Express HD presenting
    after capture?

    Melfice,
    I had the same problem. I tried different FW & HD settings and still got poor quality. Then I tried an HD tape and got the same results. So, I took my Sony back and traded for Canon's new HD (HV10), and found the quality to be MUCH better. I don't know why and would rely on someone with bigger brains for that answer.
    MacBook   Mac OS X (10.4.8)   2G Memory

  • Problems in capturing the button event

    Hi
    I have created a BSP page with some buttons on it.
    I am trying to execute some code on click of the button, I am capturing the button in OnInput processing event using the following code
    event_data = cl_htmlb_manager=>get_event( runtime->server->request ).
    however the event_data is not getting populated with the button event and i am getting a null reference dump...
    can you tell me if i need to anything else apart from adding the above code.
    Thanks
    Bharath Mohan B

    Hi Bharrie,
    the online documentation describes this very clearly. You access it by double-clicking on the BSP Extension element in the Tag Browser.
    A brief snippet from the doco....
      DATA: event TYPE REF TO CL_HTMLB_EVENT.
      event = CL_HTMLB_MANAGER=>get_event( runtime->server->request ).
      IF event->name = 'button' AND event->event_type = 'click'.
          DATA: button_event TYPE REF TO CL_HTMLB_EVENT_BUTTON.
          button_event ?= event.
      ENDIF.
    Cheers
    Graham Robbo

  • LabVIEW 7.1: menu driven event structure question: How can I cause an event case to fire when either a boolean object or a menu item is selected without polling?

    I am using an event structure to eliminate the overhead associated with polling from the GUI. I have build cases associated with each front panel button, and would like to programmatically generate a menu for the vi, adding each selection from the menu to its associated case. However adding a "user event" to a case that is already associated with a front panel button does not seem to allow the selection of the associated user event. Do I have to register each option on the custom menu? Should I programmatically generate the menu and use the same array to register the choices? Are there any examples out there
    that would help me?
    Thanks!!!!
    Steve

    Hello:
    I visited the forum for the purpose of getting some ideas on user
    events architecture. Well, I have to finished standalone working
    modular VI codes one which works as a standalone local control and
    one  which works on a remote communications mode. Now these 
    codes in themselves has event driven capabilities my problem is I
    needed to create another topmost layer VI that will be capable of
    switching between these remote and local operating mode - which I was
    thinking also to be event driven. This maybe a poor idea but I tried
    anyway. Is the User Event loop can be nested? Meaning an event within
    an event thing?
    Regards,
    Berns B.
    Bernardino Jerez Buenaobra
    Senior Test and Systems Development Engineer
    Test and Systems Development Group
    Integrated Microelectronics Inc.- Philippines
    Telephone:+632772-4941-43
    Fax/Data: +632772-4944
    URL: http://www.imiphil.com/our_location.html
    email: [email protected]

  • How do you make groups after making the first one. I did that but after reentering couldnt make any other groups. Only had i group of 1 with icons down the right side.

    I want to make groups/ i made 1 group of 1/I went back & I had that group but couldnt make more/ I saw was page that hadnt been pinned yet as group/all other tab were shown on the right sid/I tried to pin the page that was shown in the tab group/then the one group(of 1) no longer showed up/Now I have a blank box with all the icons on the far right side.

    Wow!
    I'm not going to be of much use regarding answers but I sure am going to watching this post like a hawk for any replies. My package is a slightly diluted version of this and I do find the BBtalk and data limits hard to make the most of as well.
    If nothing else this totally highlights how complicated BT have managed to make their packages.
    A cynic would assume that they are trying to catch us out at every step and for us to either be overspending or not really getting the moneys worth.

Maybe you are looking for

  • Creating a new key in Windows Registry

    Hello all, Have been trying to use JNIRegistry for creation of a new key in Windows' Registry, and it doesn't work. Would appreciate if anyone has an example of how to do it. thank you, Rami A.

  • Efiboot mba can't boot can't repair

    I have a 9 week old MBA. Im quite impressed with Lion (its my first MAC) and the ease of dualbooting. I have Windows 7 dualbooted with Lion using MacDrive to see Macs files. Ever since two days ago, I can no longer boot into "Macintosh HD". It just s

  • Question about Restoring from an iTunes Backup

    I just did a restore from an iTunes backup on my iPhone 5 and noticed that the restore process seemed different than before.  iTunes went through the restore process and once it appeared that it had finished restoring, I went to the home screen and a

  • Agent determination using attribute

    Hi all, My scenario is to find agent from a z table which has organisational unit number with prefix O. I created a attribute in business object and programed accordingly that it finds the correct org number for the key field. I had done a self test

  • Exchange Rate Calculations in FDM

    I have a requirements where data import into FDM will happen in local currency but export into HFM will happen in USD. we would need to multiply the input amounts with exchange rate amounts. has anyone handled such a requirement? any pointers in this