Design pattern using queues and notifiers and problem with sync

Hello

I'm rearchitecturing a 4-channel data acquisition system which includes data acquisition, indexing of data between four channels, signal processing and recording of data.

All processes are placed in a single loop, and I have subdivided by the following in a producer and consumer two loop (or master with both loops slave), use a queue to manage orders and send the actual data through a notification list. I'm new to this, so I don't know how to go for rearhitecturing but am trying to move several loops. Instead of placing each channel in its own loop, I used only 2 to save duty all architecture. The acquired data are also indexed in the two loops (loop1, loop2):

Main loop: data acquisition (DAQ Assistant) where Notifier sends data to consumers loops, queue for General commands

Loop1: bed (table 2D index), addresses and records the data for channels 1 and 2

Loop2: bed (table 2D index), addresses and records the data for channels 3 and 4

Question 1: Is it ok to use Notifier and queue in the artchiture (best practices)? I would use two queues, but I find that the program may have a lag (although it lacks all data) and who interrupts the acquisition for the user and I don't want that. I prefer the program to retrieve data in real time and then decided to use the authors of notifications to send data to loops1 & 2. What are the caveats of this? Given that I am gaining at the rate of 1 s/s, maybe it will be enough.

With respect to the orders queue, this is done and two commands are queued in order to activate loops1 & 2. Using multiple loops slave/consumer, how we manage several channels? the user can choose to acquire all the channels simultaneously or one at a time. I am able to activate the four channels. In this case, because loops can not run in order, how do you ensure that the item is read by the right loop?

I'm running into a few problems:
Question 2: synchronizing data - use 'wait on ms' synchronize all loops (main loop and loop1, loop2)
-data doesn't seem to be very good sync - why is - this? consumer of treatment<>
-what I'm missing?
Question 3: processing loss data - because using filers is frozen and using queues is not, I did so that orders of the so-called 'turn on' the two loops is done using a queue. I compared it with the notifiers
Question 4: Errors - I made loops 1 & 2 output on the notifier error error - they throw an error when the program stops so happy so I was testing for. I read some ni.forums he's talking about is enough, but what are the other types of error monitoring (error reporting)? Thank you very much for reading!

I programmed so far and it can read all or individual channels but I want check against all cases, that's why I ask these questions to check. I know that architecture may not be the best, so any suggestions would be welcome. I try to get the synchronization of the time and I don't want any data with loss. I guess that the use of queues to send data and commands is ok?

Thank you in advance for your help!


Tags: NI Software

Similar Questions

  • Is anyone using slides and inkjet with iPad iPad Pro or current Air2?

    Larger than Pro iPad seems to be perfectly suited for use with ink & slide but Adobe and tutorials website lists the old model iPads as "compatible"?

    Is anyone using side and with great ink jet (8 "x 10") iPad Pro?

    If so, what apps do you use ink and slide with this larger unit?

    I've tried the original apps (using my fingers, only), and they work but are buggy on the iPad Pro.

    I am also interested to hear if anyone uses ink & Slide with the current iPad 2 Air?

    I checked the auditor of the model number of Adobe compatibility for both of the above, and it is said that they are NOT compatible?

    Ink and slides have been abandoned or will be updated apps and work with the iPad models currently available in the future?

    Thanks in advance for all help with this!

    Hey digeratti,.

    Unfortunately, the ink & Slide is not completely compatible with either of these models. I apologize for the frustrating experience, I know that's not what you wanted to hear. Regarding the iPad Pro, the best pen to use would be the pencil of Apple with the sketch in Photoshop or Illustrator to draw. I see that you have indicated that you are experiencing bugs when you just use your fingers. Please let me know which bugs you encounter when you use the key entry instead of a stylus.

    Thank you!

    -Kathleen

  • HP Photosmart 6520 and problems with the air IPAD using IOS 8.0.2

    Used APPLE IOS 7. No problem with printing to the 6520. Now, I've updated to version 8.0.2. now, to get a message on the IPAD, saying: 'no printer not found '. No printing from laptop to printer and no problem shows on laptop as the printer selected in the folder devices and printers. Y at - it an update of software of HP to run version 8.0.2. .

    JERENDS, thanks for your response. I had already tried the "hard restart" at the suggestion of the Apple Tech Help, but that doesn't seem to help. But late last night after posting my question Imtried print again and IPAD are my printer without problem. Why he couldn't find yesterday morning but has been able to find it later in the day is one of the mysteries of life, I guess.

  • Searchbar broken in v23 and problem with add - js related?

    Since the upgrade to v23, the search bar not working - I can enter search terms, but the menu drop-down appears on my second monitor, and pressing on enter, nothing happens - that is the search for the search bar no longer works, for any search engine installed.

    Also, even if it may seem unrelated question, I use the Devonthink added, in order to capture pages html since firefox directly to Devonthink Pro. After the capture of the page HTML in PAO, I can only convert a searchable PDF.
    Converting page captured from v23, in PAO, all I get is a reflection and a partial screenshot of the visible part of the original HTML page.

    These two functions worked perfectly in v22, but are broken to v23. I have since downgraded in v22, and both functions work as expected, so it is clearly a problem with Firefox v23.

    The only 'fixes' were either downgrade v22, or start with a new profile, v23.
    The search bar worked normally when booting in safemode, v23, but not when all THE modules, themes and extensions have been disabled.

    Whatever changes have been made in v23, required a new profile to 'fix' this problem.

    Again, reinstall all the extensions and try to put the same preferences is a way very frustrating to mitigate this kind of behavior of the software.

    Fortunately, it is often not necessary.

  • Tecra - A9 and problem with wifi

    Hello:

    I'll use the laptop without any problems and then the wifi connection just stops working. After about 30 seconds to a minute or two it will come back on again. Using a Netgear DSL router for wifi. I activated Microsoft bluetooth due to the fact that my BlackBerry does not work with bluetooth Toshiba.

    Any suggestions?

    Thank you.

    Terry

    Thanks for the clarification!

  • I intend to buy a Apple Watch in the United States, but I have a European iPhone 6 Plus. Anyone know if I have a problem with syncing my iPhone (EU) and the Apple Watch (US)? I think not, but any ideas?

    I intend to buy a Apple Watch, United States of America, but I own a European iPhone 6 Plus device. Anyone know if I have a problem with the sync between devices? I don't think, but it would be more useful to have a definite answer for this as my assumption...

    Hi John

    The devices normally work together.

    There is no difference in the hardware specifications for the watch. It can be configured to use your preferred language and format of the region.

    Adapter USB power to the watch will be located in the United States. To charge your watch via food in Europe, you can use the magnetic charge cable supplied together with a real 5W Apple (iPhone) or 12W (iPad) adapter USB power (or with a third party, Apple certified adapter).

  • Disabled the HTTPS option in Hotmail and problems with the Windows Firewall, Microsoft Security Essentials and Windows updates.

    Original title: Windows Live Hotmail only opens a new window links e-mail composition!

    I recently put my Windows Live Hotmail account to my default e-mail client in Internet Explorer 8 on my Windows XP SP3 System. Unfortunately, whenever I click on a link to e-mail on a Web page to open a new message, Hotmail tells me, "Sorry, there seems to be a problem with Hotmail right now", and a new/compose message window does not open. I disabled the HTTPS option in Hotmail, which fixed the problem. However, when I went to do a manual update of Windows, I am nailed with a Trojan horse! Apparently, the Windows Firewall and Microsoft Security Essentials have been affected by turning off HTTPS in Hotmail! It's 2012, and it's terribly disappointing that Microsoft only has not ironed out all the imperfections in these services now. If anyone can give me a solution (in simple terms), I would appreciate it!

    Thank you

    Ryan

    Hi Ryan,

    1. you receive messages or error codes when you access Windows updates?

    2. what happens exactly with the Windows Firewall and Microsoft Security Essentials?

    About the update of Windows, the Windows Firewall and Microsoft Security Essentials issues, you may try to launch the FixIt and see if it helps:

    Method 1:

    Resolve security issues to protect and secure Windows automatically

    The problem with Microsoft Windows Update is not working

    Method 2:

    You can also refer to article and perform a full scan on your computer by using the Microsoft Safety Scanner.

    Microsoft safety scanner

    Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

    On the Windows Live Hotmail account, you can publish your request in instances of Windows Live to get help:

    http://answers.Microsoft.com/en-us/windowslive

  • "Delayed write failed" message keeps appearing to external hard drive (WD passport) and problems with suggest fix kb908673 (register edit).

    I had problems with my WD usb hard drive, where a "delayed write failed" message keeps appearing when the transfer of files to or from it. Among the fixes suggested on the WD support site is a link to kb908673, and this seems to sum up my problem. This fix is included in sp3, I believe, however, the fix indicates that a manual registry editing needs to be done;

    "After you install this hotfix, the following registry subkey is automatically added and configured:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\USB\EnSoftRetry

    The registry key is configured with a DWORD value of 1. This value allows the Soft-Retry code path that is used in this hotfix.

    "If you install a later version of the patch (a patch that contains later versions of Usbport.sys and Usbehci.sys), including Windows XP SP3, this registry value not be automatically added and configured. The registry value must be manually added and configured as described above to activate the Soft-Retry code path that is provided in this hotfix. »

    I don't have this registry subkey and have no idea how to do to configure a key to have a DWORD value - I can create as a registry entry DWORD value in this key, but it must be given a name. Should I create a DWORD value called "EnSoftRetry" in the USB, or should I create a DWORD value in the EnSoftRetry key and, if so, what should it be called? Or am I completely misunderstanding something here?

    (1) manage devices

    (2) find each host EHCI USB controller

    3) click on USB EHCI host controller Details of the

    Highlight 4) Device Instance path

    (5) copy "Device Instance path«path information in the Notepad for quick and easy access»»

    (6) open Regedit

    7) click "HKEY_LOCAL_MACHINE."

    8) click on 'SYSTEM '.

    9) click on CurrentControlSet «»

    10) click on 'Enum '.

    11) click on "PCI".

    (12) click on ' * the folder that corresponds to the stage 4 information.

    (13) this is where you should be now: "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\PCI\------\Device Parameters.

    (14) right click on 'device settings '.

    (15) select "new-> Key".

    16) enter the field of naming the new key 'EnHcSoftRetry '.

    (17) right-click on "EnHcSoftRetry"the ket has created "

    (18) select "new-> DWORD (32-bit value).

    19) enter the field of naming 'DWORD '.

    (20) right click 'DWORD '.

    (21) select 'change '.

    (22) entry in the field value '1' Base of Hex

    (23) close regedit complete process :)

  • Error 16 and adobe application manager and problem with uninstalling

    Hello

    Big problem with ligthroom CC,

    Initially, I got the error 16, I changed the name of some files the other instructions.

    Now, Lightroom still doesn't work and ask me for the "Adobe Application Manager, which is absent or"injured", to run the trial version. But I no longer use the version been trying for over 2 months!

    I tried to uninstall Lightroom and it does not work, adobe talk a uninstall problem. I tried everything it was written and still does not work

    Please, help me!

    under PC

    Thank you

    Error 16: Creative Suite help / Error Configuration 16 | CC, CS: http://helpx.adobe.com/x-productkb/policy-pricing/configuration-error-cs5.html

  • Opening, using Relocator and rest with my project structure

    I use Relocator to move my photos 'managed' Aperture library to be "referenced".  However, now I have to do a project at a time.  I can't get Relocator to work on multiple projects and maintain my project structure.  When I tried it, I put the subfolder 'project' format and the format of the name to "original file name.    It did not work as planned, he put each photo in its own folder.  So now in the format of subfolder 'custom name' and provide the name of the project.  This seems to be the only way to keep my existing structure.   My existing structure is the name of the event and the date, for example the Blizzard Dec 2008.    Any tips or suggestions?  I have pictures of 70 K to move! Going to take some time do this project!  Thanks in advance!

    When I select the pictures of several projects at a time and use the command "file > move...» ', the original images will be relocated in a folder for each project.  I use these presets:

    I tested with opening 3.6 on OS X 10.11.5.  What version of Aperture do you use?

  • iPad2 and problem with the SIM card after update

    even after the 9.3.1 last updated continuously having problems with SIM TIM card network.

    I changed and I tried with another SIM card but the problem remains.

    I did have all those problems with 9.2.1.

    Apple could intervene and solve these problems? Otherwise, I think it's better to make a return to the old 9.2.1.

    Thank you

    Do you see the network? and is it strong enough?

  • Satellite L500 and problems with the Wi - Fi

    Hello people

    I'll just throw my problem there.
    First of all my details and information that can help me to help you!

    Satellite L500 running windows 7 (note: same problems when installing Vista)
    Latest drivers wireless as well as the latest drivers for everything.
    My wireless router is 1 billion active voip 7000 series sound quite good for when I got it about 2 years ago and works well.

    Basically, the problem is that the wireless on my Satellite L500 keeps dropping out. I m not more than 20 meters at most, right now I m 10 m with 1 wall in the way. I tried to make a website, and he says has fallen to either unable to find host connection.

    However other computers laptops in the same room, same place at the same time has no problem at all. Has ever.
    As soon as I'm in the same room as my router, it works again. Sometimes works if I stand right on the opposite wall.

    So basically I m thinking my card wireless in my laptop is defective or simply not good?
    Can u replace the card with another wireless? Maybe the Toshiba ones are just no good? I read so many problems with these cards Toshibas wireless...

    Anyone have any ideas? I ran out of the info you need? I repost he's again in a day or two with the types of wireless devices in every laptop.

    Hello

    For the moment, I doubt that your wireless network card is broken. Before Exchange you it you must also update your BIOS and not only the WLAN card driver. Two updates you need to download it from the Toshiba site:
    http://EU.computers.Toshiba-Europe.com > support & downloads > download drivers

    I had a similar problem with my Toshiba laptop and WIFI connection. The problem was in the WLAN energy saving mode Windows power management. Here, you can also choose a mode for energy saving wireless network card. Turn it off, and then choose a maximum Performance.

  • ENVY14-2090eo: ENVY14-2090eo and problems with synaptics clickpad


    Hi again,

    Well I can inform you that microsoft did not put any new driver for solve this problem with the more recent driver it is ATM. I checked this version of the model touchpad and it is not supported by windows 10.

    But.

    I found this driver from synaptics Web site. I don't know if it works. But this is the last result I know. You can try and download + install and hope it solves the problem. Because I really hope.

    Link: http://drivers.synaptics.com/Synaptics_v19_0_19_1__C__x86-x64__Win10__Signed__MS_Win10_UXUI_PS2_SMbus.zip

    Thank you.

  • DC5800 WIN7 x 64 and problem with restart

    Hello

    I have the problem with DC5800.

    I do the new install of win7 ultimate x 64.

    Now when I try to reboot (restart, not stop), the system is down, check the bios and... black screen.

    System won't start.

    When I shut down the system and start now - everything is ok.

    The system is normal startup.

    I upgraded the bios (from 1.04 to 1.55), all the system updates, read internet half and I have no idea.

    Can someone help me?

    Regards Robert

    Hi Paul

    Thank you for your help.

    Problem is solved.

    I was download and install EasyBCD.

    Then I BCD deployment-> install Win7 MBR bootloader-> write MBR

    After computer restart to see the problem with start, but after repair (from DVD instalation) everything works ok.

    Regards Robert

  • Problem with sync error: synchronization has encountered an error during synchronization: unknown error. Sync automatically retrying this action.

    Hi, I started recently a problem with the sync on my desk. My partner Android and Mac laptop no problems when you attempt to synchronize, but office always gives the same error. I tried to disconnect from the desktop computer, erase all files, restart and then adding the Office to synchronize once more, but the error persists.

    All bookmarks on the desktop disappeared, but are still in my sync data and have no problem being viewed on other connected devices. It also tells me that the issue is not the sync server and that there is something unique to the desktop machine.

    I hope that this will not require a reinstall, but if all else fails, it's an option. I'll try to attach a log file once I put the question.

    I think the error message is in the title of the thread:

    Sync has encountered an error during synchronization: unknown error. Sync automatically retrying this action.

    Try creating a new profile as a test to check whether your profile is the source of the problems.

    See "create a profile":

    If the new profile works then you can transfer files from a profile in the new profile, but make sure not to copy corrupted files.

Maybe you are looking for