event handler programmatically for different loop than the event itself

Hello

I'm driving a car of mine using compactDAQ in labview. I have two parallel looping using queues. One is for the tips - READ LOOP playback engine - (running more often), and the other for writing to the engine in bits - LOOP to WRITE.

When I shoot a little some (by CAR), the motor starts to move with a pre-defined pace and to a predefined position. So far so good. Thus, when the engine starts, it replaces two bits:

-sets bit BUSY (indicating the movement)

-Disable INP bit, which indicates that the motor is not in a position

As soon as the engine reaches its final destination the BUSY bit is cleared and the bit of the INP is set.

The question is: How can I sign up for the BUSY bit (INP or both) goes high (or low) in LOOP WRITE, given that the bit is read LOOP read? Is it possible to do using queues? I read something about the events, but I don't know exactly how incorporating them in line-ups. Is this OK same design for the engine management?

I have attached some of my code, where I have a structure of the event, where a condition is the change of the busy flag that is updated in LOOP READ. However the structure of the event will never run.

I would like my RTO case run once and then expects busy go upstairs, and then again for INP to go UP and after that the next case is running (stop or other).

I know that my code is not perfect, but I'm pretty new to labview...

Thanks for any information that can help

User events are just another way to communicate between the 2 loops.  Queues are also used to communicate between two loops.  If you already have a queue from one loop at the other, you could just keep using that.  I have recommended the user events due to the structure of the event you have included in your loop of producer.  User events can be triggered at any time you want.  You can have the code in your block diagram that uses the Event.vi user generate causes the structure of the event with the other loop turns off.  Event structures are usually turns off when a Panel before its value control has changed, but they can also be configured for these user events.

You can really make this communication between your two loops in different ways.  If you use a LabVIEW 2012 I strongly recommended to take a look at the producer/consumer model, which is available for you to look at this common architecture and compare it to what you have now.  If you have not 2012 try to look at the example in my last post on the producer/consumer with user events.  You will find more success using architectures such as these.

Tags: NI Software

Similar Questions

  • Illustrator brush BLOB cc 2105 (ill) different work than the previous version. Now, is less sensitive to pressure. Why?

    Illustrator brush BLOB cc 2105 (ill) different work than the previous version. Now, is less sensitive to pressure. Why?

    Hello

    We have published a 19.0.1 hotfix that resolves this problem in discussion on this topic. Please apply the patch to your creative cloud application. The creative cloud application checks the update once a day, so you may see the update immediately.  If you want to force the check for an update at the beginning please logout and log back into the creative Cloud application.

    Link to 19.0.1 release notes: https://helpx.adobe.com/illustrator/kb/illustrator-cc-2015-crash-bug-fixes-19-0-1.html

    If you continue to see any questions send us an e-mail to [email protected]

    Kind regards

    Ashutosh

    The name of the Illustrator team engineering

  • In what one account all read emails disappear when I go on a different account than the back. Read all emails will appear is no longer in the Inbox or the trash.

    In what one account all read emails disappear when I go on a different account than the back. Read all emails will appear is no longer in the Inbox or the trash. Is there a setting that I don't see. Thanks Johnny1

    Try view (Alt - V) - son - everything.

  • How to create a button with rollover that appears in a different place than the button when you move?

    Hello

    How to create a button with rollover that appears in a different place than the button when you move by using only the Muse (reversal may be a different shape and color of the button). I managed to do it using Photoshop and the separate layers and import it, but it is not a good solution. All suggestions will be welcome.

    Thank you

    You can try to use the widget of the Composition of the ToolTip. In this way, the trigger area is isolated and a "State of reversal" can be placed anywhere on the screen (compared to the trigger).

    • Remove the two triggers additional default
    • Set to display the targets on working capital
    • Select hide all initially.
  • You can run several APEX headphones for different instances on the same server

    Please confirm that we can run several APEX headphones for different instances on the same server?  It is a configuration of xml configuration or do we need to do more?


    Thank you


    Tony Miller

    SmartDog Services

    Austin, TX

    Hello

    With last listener APEX, you can configure multiple databases

    Oracle Application Express listener configuration

    Is that what you mean?

    Kind regards
    Jari

  • How to set up a second monitor with a different view than the one on my laptop? [was: ron]

    I'm trying to set up a second monitor with a different view than the one on my laptop.  I have a HP Pavilion dv5 laptop and a secondary monitor View Sonic UP2365-LED.  They are connected with a cable 15 pin... my only choice on the laptop.  When I select the second monitor, it displays a box of a second on my laptop and the secondary monitor.  My pointer moves on both screens at the same time, no matter what display, I select the monitor 2.

    It depends on the whther the laptop can support both points of view.

    Somewhere with the right button on the desktop, choose "screen resolution" and that there should be only a drop down menu entitled "multiple displays".  Looks like you have "displays a duplicate" choose (if it will leave you) "to extend these screens.

  • Triggering event for different loop

    Hi all

    I'm working on an application that uses the architecture of producer/consumer.

    In the loop of producer I collect the data of my H/W, and in the loop of consumer, I did it.

    the loop of producer has structure of the event which can also be triggered using buttons on the front panel.

    Now, he has a record button on the front panel that will begin to record incoming data in the file. and the Structure of the event by taking care of recording loop of producer.

    Now how can I raise the event Record in the loop of the producer of the loop of consumer?

    Thank you

    Ritesh

    Or, you can just write the Value property (signage) for the button (assuming that it is the event that you treat a user pressing the button).

  • 0x8004fe21 win 7 MGADiag not true report a different product than the COA sticker key

    I have an Asus laptop K50IJ with Win7 Home Premium SP1 as (bought new in December 2009, from a reputable retailer) and about 5 years later, began to "this computer is not running genuine Windows" for some time in the middle to late February 2015, 0x8004fe21 appears on pop up message. I continued to by clicking on the red x to close the window because I have not had time to try to solve the problem. I was afraid to click on the link "Pay online now" in the pop up because I wasn't sure if it was a legitimate link or not. Last week, I started the research question, but I still don't know what to do. Control system info panel says that Windows is activated. I ran MGA diagnostic tool and noticed that the last 15 characters of the product key in the report are different from the sticker on the bottom of my computer. I found a lot of posts with corrections to this type of problem, but none of them are exactly my situation. We were on Windows update KB3004394 but that is not installed on my computer. Many precautions are noted so I hesitate to try something that changes the register or license key and product (e.g. slmgr /ilc or IPK) because I know not if the product key on the sticker will be valid. According to the report, "remaining Windows rearm count: 3 ' and a message says that the screen will become black permanently after a month, so last week I changed the system date of the month return to February (so today is 01/03/15) just in case where I can't solve this problem in time. I don't know if change the date system will be actually buy me more time, but the more I read about this type of problem, plus I'm not sure what to do. I'd like suggestions on how I could fix it if I should place a phone call to resolve. Thank you!

    The results of 29/03/15 report (report date is 01/03/15):

    Diagnostic report (1.9.0027.0):

    -----------------------------------------

    Validation of Windows data-->

    Validation code: 0x8004FE21

    Code of Validation caching online: 0x0

    Windows product key: *-* - 2QWT6 - HCQXJ-9YQTR

    Windows product key hash: PVjSC5x6njvqunmbCY3lOD7rYDo =

    Windows product ID: 00359-OEM-8992687-00007

    Windows product ID type: 2

    Windows license Type: OEM SLP

    The Windows OS version: 6.1.7601.2.00010300.1.0.003

    ID: {F9E93DC7-2017-4B14-9C36-FFCB0D79F749} (1)

    Admin: Yes

    TestCab: 0x0

    LegitcheckControl ActiveX: N/a, hr = 0 x 80070002

    Signed by: n/a, hr = 0 x 80070002

    Product name: Windows 7 Home Premium

    Architecture: 0 x 00000009

    Build lab: 7601.win7sp1_gdr.140303 - 2144

    TTS error:

    Validation of diagnosis:

    Resolution state: n/a

    Given Vista WgaER-->

    ThreatID (s): n/a, hr = 0 x 80070002

    Version: N/a, hr = 0 x 80070002

    Windows XP Notifications data-->

    Cached result: n/a, hr = 0 x 80070002

    File: No.

    Version: N/a, hr = 0 x 80070002

    WgaTray.exe signed by: n/a, hr = 0 x 80070002

    WgaLogon.dll signed by: n/a, hr = 0 x 80070002

    OGA Notifications data-->

    Cached result: n/a, hr = 0 x 80070002

    Version: N/a, hr = 0 x 80070002

    OGAExec.exe signed by: n/a, hr = 0 x 80070002

    OGAAddin.dll signed by: n/a, hr = 0 x 80070002

    OGA data-->

    Office status: 100 authentic

    Microsoft Office Professional 2007-100 authentic

    Microsoft Office Home and Student 2007-100 authentic

    OGA Version: N/a, 0 x 80070002

    Signed by: n/a, hr = 0 x 80070002

    Office Diagnostics: 77F760FE-153-80070002_7E90FEE8-175-80070002_B4D0AA8B-604-645_025D1FF3-364-80041010_025D1FF3-229-80041010_025D1FF3-230-1_025D1FF3-517-80040154_025D1FF3-237-80040154_025D1FF3-238-2_025D1FF3-244-80070002_025D1FF3-258-3_E2AD56EA-765-d003_E2AD56EA-766-0_E2AD56EA-134-80004005_E2AD56EA-765-8009_E2AD56EA-766-2ee2_E2AD56EA-148-80004005_16E0B333-89-80004005_B4D0AA8B-1029-80004005_B4D0AA8B-9

    Data browser-->

    Proxy settings: N/A

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Win32)

    Default browser: C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

    Download signed ActiveX controls: disabled

    Download unsigned ActiveX controls: disabled

    Run ActiveX controls and plug-ins: disabled

    Initialize and script ActiveX controls not marked as safe: disabled

    Allow the Internet Explorer Webbrowser control scripts: disabled

    Active scripting: disabled

    Recognized ActiveX controls safe for scripting: disabled

    Analysis of file data-->

    [File mismatch: C:\Windows\system32\wat\watadminsvc.exe[7.1.7600.16395], Hr = 0 x 80092003

    [File mismatch: C:\Windows\system32\wat\watux.exe[7.1.7600.16395], Hr = 0 x 80092003

    [File mismatch: C:\Windows\system32\sppobjs.dll[6.1.7601.17514], Hr = 0 x 80092003

    [File mismatch: C:\Windows\system32\sppc.dll[6.1.7601.17514], Hr = 0x800b0100

    [File mismatch: C:\Windows\system32\sppcext.dll[6.1.7600.16385], Hr = 0x800b0100

    [File mismatch: C:\Windows\system32\sppwinob.dll[6.1.7601.17514], Hr = 0 x 80092003

    [File mismatch: C:\Windows\system32\slc.dll[6.1.7600.16385], Hr = 0x800b0100

    [File mismatch: C:\Windows\system32\slcext.dll[6.1.7600.16385], Hr = 0x800b0100

    [File mismatch: C:\Windows\system32\sppuinotify.dll[6.1.7600.16385], Hr = 0 x 80092003

    [File mismatch: C:\Windows\system32\slui.exe[6.1.7601.17514], Hr = 0 x 80092003

    [File mismatch: C:\Windows\system32\sppcomapi.dll[6.1.7601.17514], Hr = 0x800b0100

    [File mismatch: C:\Windows\system32\sppcommdlg.dll[6.1.7600.16385], Hr = 0x800b0100

    [File mismatch: C:\Windows\system32\sppsvc.exe[6.1.7601.17514], Hr = 0 x 80092003

    [File mismatch: C:\Windows\system32\drivers\spsys.sys[6.1.7127.0], Hr = 0 x 80092003

    [File mismatch: C:\Windows\system32\drivers\spldr.sys[6.1.7127.0], Hr = 0 x 80092003

    [File mismatch: C:\Windows\system32\systemcpl.dll[6.1.7601.17514], Hr = 0x800b0100

    [File mismatch: C:\Windows\system32\user32.dll[6.1.7601.17514], Hr = 0x800b0100

    Other data-->

    Office details: {F9E93DC7-2017-4B14-9C36-FFCB0D79F749}1.9.0027.06.1.7601.2.00010300.1.0.003x 64*-*-*-*-9YQTR00359-OEM-8992687-000072S-1-5-21-3282188649-1851109046-2415363750ASUSTeK Computer Inc.        K50IJ American Megatrends Inc.. 212 20090826000000.000000 + 0001E963307018400F804090409Time(GMT-05:00) Standard is03_ASUS_portable100100Microsoft Office Professional 2007129595F16C2715F78045lpqFiA2nh4tcy467tvi96qbY =81605-956-0508976-653421100Microsoft Office home and Student 20071219

    Content Spsys.log: 0 x 80070002

    License data-->

    The software licensing service version: 6.1.7601.17514

    Name: Windows 7 HomePremium edition

    Description: operating system Windows - Windows (r) 7, channel OEM_SLP

    Activation ID: d2c04e90-c3dd-4260-b0f3-f845f5d27d64

    ID of the application: 55c92734-d682-4d71-983e-d6ec3f16059f

    Extended PID: 00359-00178-926-800007-02-1033-7600.0000-2092009

    Installation ID: 094472042576315040799236495535741644397092743704682073

    Processor certificate URL: http://go.microsoft.com/fwlink/?LinkID=88338

    The machine certificate URL: http://go.microsoft.com/fwlink/?LinkID=88339

    Use license URL: http://go.microsoft.com/fwlink/?LinkID=88341

    Product key certificate URL: http://go.microsoft.com/fwlink/?LinkID=88340

    Partial product key: 9YQTR

    License status: licensed

    Remaining Windows rearm count: 3

    Trust time: 01/03/2015-16:49:58

    Windows Activation Technologies-->

    HrOffline: 0x8004FE21

    HrOnline: n/a

    Beyond: 0x000000000001EFF0

    Event timestamp: 2:28:2015 23:06

    ActiveX: Registered, Version: 7.1.7600.16395

    The admin service: recorded, Version: 7.1.7600.16395

    Output beyond bitmask:

    Altered the file: %systemroot%\system32\sppobjs.dll

    Altered the file: %systemroot%\system32\sppc.dll|sppc.dll.mui

    Altered the file: %systemroot%\system32\sppcext.dll|sppcext.dll.mui

    Altered the file: %systemroot%\system32\sppwinob.dll

    Altered the file: %systemroot%\system32\slc.dll|slc.dll.mui

    Altered the file: %systemroot%\system32\slcext.dll|slcext.dll.mui

    Altered the file: %systemroot%\system32\sppuinotify.dll|sppuinotify.dll.mui

    Tampered files: Check %systemroot%\system32\slui.exe|slui.exe.mui|COM

    Altered the file: %systemroot%\system32\sppcomapi.dll|sppcomapi.dll.mui

    Altered the file: %systemroot%\system32\sppcommdlg.dll|sppcommdlg.dll.mui

    Altered the file: %systemroot%\system32\sppsvc.exe|sppsvc.exe.mui

    Altered the file: %systemroot%\system32\drivers\spsys.sys

    --> HWID data

    Current HWID hash: MAAAAAEAAQABAAIAAAABAAAAAwABAAEA6GHQZr7u0jMW84aJlAmeg3BLICUGfEbK

    Activation 1.0 data OEM-->

    N/A

    Activation 2.0 data OEM-->

    BIOS valid for OA 2.0: Yes

    Windows marker version: 0 x 20001

    OEMID and OEMTableID consistent: Yes

    BIOS information:

    ACPI Table name OEMID value OEMTableID value

    APIC1033 APIC 082609

    FACP 082609 FACP1033

    DBGP 082609 DBGP1033

    HPET 082609 OEMHPET

    START BOOT1033 082609

    MCFG 082609 OEMMCFG

    SLIC                                      _ASUS_                                Notebook

    CO-SUBMISSION 082609 OEMECDT

    082609 OEMB1033 LASRYVITRAGE

    GSCI 082609 GMCHSCI

    SSDT PmRef CpuPm

    the COA sticker is supposed to be different,
    SLP is OEM SLP (System Locked Preinstallation)
    which means that you purchased the system with windows pre-installed.
    If your system has not changed since you bought
    other than the installation of programs and updates,
    It is a positive WAT KB971033 false failure.

    The key to the ASUS Win 7 Home Prem SLP is 2QDBX-9T8HR-2QWT6-HCQXJ-9YQTR http://www.galwayland.com/2010/03/windows-7-oem-slp-key-collection/

  • Separate cod file, necessary tool for different versions of the signature BONE?

    Hi all

    I installed the blackberry JDE 1.3.0 eclipse plugin that contains the default value
    package inside plugins, now using the url net.RIM.ejde.componentpack6.0.0_6.0.0.30
    http://www.BlackBerry.com/go/eclipseupdate/3.6/Java download packages of components for 5.0 etc.. After that the signing tool will be installed with this eclipse.

    My question is if my application will be used for all versions of the OS, so what do I do?

    1 should I I generate a single file of cod for 4.x or it should be necessary to generate a separate file of cod to 4.5.0, 4.6.0 4.7.0

    2 If am will have to sign the cod of the file then I need to install the tool to separate signature for each operating system? or a unique signature tool installed in eclipse itself is enough to sign all the cod files that are generated in the different versions of the OS?

    can any please help me understand these things

    Thanks in advance,

    Kitty

    This signature tool is the same for all levels of the operating system. I usually use the tool last signature, even for the 4.2 signing apps.

    Compiled cod are compatible forward but not backward.  So, if you compile using OS 4.5 it can work in devices running OS 4.5 and above.  However if you compile in OS 6.0, then it is not supported on devices running something more than that.

    You will find that you might want to use the facilities available in newer versions on the new phones, so you will need to compile separately in this case.  There are a variety of options to achieve this, but I would look first for the pre-processor.

    There is a small problem in OS 4.7, so if I develop for OS 4.5 - OS 6.0 and the code will be the same for all devices, I usually provide two builds, one for pre OS 4.7 and the other to post that.

  • How can I send a different URL than the States of text in Acrobat?

    Hello

    I know how to create links URL in my document using Acrobat, but

    How can I create a link that leads to a desintation for different URL other than that of the text States?

    For example

    the States of text

    www.AAAAA.com

    and I want to clarify,

    but I want the link to direct to

    www.AAAAA.com/abcdefghijkl

    ?

    I don't want to have to create a link object, I want him to stay as text?

    Is it still possible?

    Any advise?

    Thank you

    Unless you create a link object, then it is of course impossible. Text is just text, there should be no special function.

  • What are some editing apps good free photo for Mac, other than the Photos of Apple?

    Hi everyone, I'm looking to see what free apps, you guys use for editing photos?  I have a photography class to come and play with options other than the use of pictures of the Apple app.  Nothing against the app, I just learn more.  Thank you.

    Strange question to the users of the forum pictures - of course, the answer is Photos for Mac

    Photos is optional and if you don't like it, then, Google is your friend

    LN

  • Eclipse Plugin config changes for different versions of the target operating system.

    Nobody knows what changes should I make for my config Eclipse generate a cod for different target operating system versions?

    Thank you

    Glenn

    You can configure it by clicking in the window menu, selecting Preferences, expand BlackBerry JDE, selecting installed components and choose the appropriate BlackBerry JDE or BlackBerry JDE component Package.

  • on the headphones for different databases in the same ORACLE_HOME

    Hello experts, I have a doubt

    I installed 3 different databases on the same server that OS is Suse Enterprise 10. Right now, I'm just a listener who registers all the services. The number of connections is great for two of the three databases, so I don't know what could be the best practices for this environment. I have a question I would like you suggestion for me:

    DB version: 11.1.0.7

    Should I have three listener, one for each database?

    Is advisable to have a single listener for multiple instances on the same server?

    Are there different between have only a single listener for the instance and have a port for listening, for example?

    What about performance?


    You in advance, I hope that you can guide me.

    Best practices is not not to have multiple databases on a server, based on resources.

    Should I have three listener, one for each database?
    N ° it is quite undesirable and requires more administration.

    Is advisable to have a single listener for multiple instances on the same server?
    Yes. Don't forget the listener is only a broker and there is no permanent connection between the client, listener and database.

    Are there different between have only a single listener for the instance and have a port for listening, for example?

    Yes. The latter is a nightmare of administration.

    What about performance?

    Who cares? The only factors are
    Listener.log becomes too large--> put in place the appropriate cleaning procedures
    The semaphore count is exceeded (Unix) or no more threads can be created (Microsoft Windows95), who will give birth to ora-12500.

    ----------
    Sybrand Bakker
    Senior Oracle DBA

  • Oracle HTTP server on a different machine than the database and APEX

    Hi guys!

    I wonder if its possible to have Oracle HTTP Server installed on a different machine then the database and APEX?

    With respect,

    PsmakR

    Hello

    exactly. Details have recently been examined here: {: identifier of the thread = 1955437}. You will find the link to the license document it.
    But OSH is not only registered with the database. If you have an OAS running somewhere, you can use the HTTP server that comes with this instance for APEX as well.

    Another option could be the APEX listener that runs on (almost) any J2EE container. The officially supported include the embedded GlassFish and the Open Source Edition of GlassFish, who both don't need no extra license.

    -Udo

  • Created a slide show time with a different speed than the speed for which it has been created in Windows MEdia Center

    HELP PLEASE! 1

    I create a slide show with music in Windows Media Center.

    I have change in SETTINGS, the display time of 3 seconds.

    I have burn the slide show with music on a DVD.

    The copy on DVD playing 7 second display speed.

    I want to play as I created it, to fit the music.

    HOW?

    Thank you

    Rhod

    Sydney Australia

    Use the creator of Windows DVD or Windows Movie Maker (new versions available here) to refine your settings.

Maybe you are looking for

  • What iMac is good for me? Kind of idiots!

    Help! I'm new on iMac, were used for his previous employers, but now the market for mine. I run a small but busy MLM out of my house so I need something fairly easy to use. Can you direct me in the right direction? Looking for a desktop computer!

  • a matrix subtracted by another gives a scalar value?

    Hello I implement an algorithm, method of recursive least-squares. Something was wrong with the matrix subtraction. This node below sets the context help gives a scalar value. It should be a matrix, anyway. How can I solve this problem? Thanks in adv

  • EliteBook 8440p: HP Elitebook 8440p BIOS

    Hello Last week, I checked the updates to the bios for elitebook 8440p of the of my father and I saw 2 different entrances, f.13 (2011) & f.50 (2014). Subsequently I have updated BIOS F.12 F.13 to without any problems. I hesitated to update with F.50

  • No 'fax windows and analysis' on Vista

    There is no "Windows Fax and Scan" that I can find on my HP laptop, which is Vista.  I'm puzzled.

  • Microsoft Teredo Tunneling adapter doesn't have a Code 10.

    Separated from this thread. Microsoft Teredo Tunneling adapter doesn't have a Code 10. How can I install the automatic fix being unable to install it