Synchronized not regenerated multifunction AO AI

I am trying to build a VI that reads and writes a signal simultaneosly to use as a test of the device. I want the signal to be non regenerative and I want to read 80kS/s with at least 4096 samples.

I built my VI begin with the standard model of producer-consumer and the example AO AI multifunction located under "hardware input output/DAQmx/synchronized/multifunction" but with minor modifications to make it non-regenerative. This however does not work because there seems to be a discrepancy between the two signals after the first few iterations. Initially the signals overlap, but then I get a period. For example if the sample rate and of the samplesize 1000 superimposed signal for a short period when yields but then a delay of environ.25 seconds appears. There are also various errors of buffer all indicating that the buffer has been closed or crushed before that samples could be read. If there is someone who would know how to solve this problem, I would be extremely grateful.

I'd appreciate also all tips on how to be able to update the sampling frequency and size in real time.

Best regards

Felix Turner

Hi Felix,.

Welcome to the forums EITHER!  The part of the synchronization of your code seems pretty good assuming tasks of HAVE and AO are running on the same device - you are triggering one task out of the other, so they should start at the same time (if they are the same device, the time will be the same for each clock so you shouldn't get any drift over time).  Another way to synchroinze the two tasks (because they're going at the same rate) would be to simply share the sample between tasks clock.

A few problems I see with the code:

I think that problems of buffer problems come from the fact that the tasks of HAVE and AO are in the same thread.  DAQmx Write is a blocking call, so in your code it prevents DAQmx called Read until enough space became available in the buffer output to write the desired number of samples (1000 in your case).  In the meantime, looks like the analog input buffer is completely filled.  You could try to increase the size of the buffer, but you can also consider the two tasks running in parallel loops.

In addition, samples of reading (-1) will return some data are in the input buffer.  It would probably be a different number of the number of samples that you write by loop iteration, so the data may appear sync when it is read.

With respect to the number of samples to read and write by loop update, it is editable running so everything you need to do is put the control inside the loop (you can put a local variable outside of the loop to the initial settings).

The PCI clocks rate, I / ao sample is not modifiable at run time, but what you can do is to use a meter to generate a sample for both tasks clock (just use the internal output as the sample for each task clock).  This example shows how you can change the rate of a performance counter on the fly.

Put it all together, here's what I'll try:

I would put both DAQmx tasks in parallel loops. Instead of sharing a trigger of departure between the two tasks, use one of the counters to generate a variable frequency sampling clock to use.  The tasks of HAVE and AO must begin before the meter.

You should also probably use the number of samples to read the DAQmx Read entry so that each iteration of the loop will be matched with the data written in the previous iteration of loop AO.  If you are not careful when implementing the variable number of samples to reading parameter, you could end up with a race condition where single loop updates to read samples and the other is not updated until the next iteration.  Usually Of functional Global Variables are used in situations like this, but another idea might be to adjust the size of the buffer AO so that we can ensure that the loop AO will always run before the loop to HAVE it.  You can place the control inside the loop of the AO and the local variable inside the loop to HAVE it.

Feel free to post if you have any questions!

Best regards

John

Tags: NI Hardware

Similar Questions

  • Notes on Icloud

    I've updated all my devices to El Capitan version 10.11.6 but Icloud is not synchronized notes. Help, please.

    Do not sync Notes on what device? This device works what iOS?

    See you soon,.

    GB

  • Help me record my wife Notes

    I posted this earlier in a thread that was several years old, but received no response, so I thought I would try to create a new thread. Basically, in obtaining my wife, put in place a new Macbook Pro, a series of unlikely mishap led to the loss of most of its notes. Of course, with his old Macbook, it is synchronized notes via gmail. When we went to iCloud, these were somehow all deleted, except on his old computer. I got this machine and save his ~/Library/Containers/com.apple.Notes folder just to be on the safe side.

    Any help out there? Keep me out of divorce court please!

  • Install HP does not see the printer in network, Windows DOES. Help!

    Hello

    I am trying to add my HP Officejet k8600dn to Windows 7 (32 bit) so I can scan, but the HP Installer (add device) can not see the printer. The unit is set up by cable to a switch on my network via an ethernet cable. If I go into the menu "Add a printer" Windows, I can install the printer very well. But I have to be able to scan and I don't know what to do.

    Tips on getting functional analysis if the HP software is unable to see my printer? Subnet mask and gateway on the printer are the same for the computer and the printer. I typed the correct IP address in the "Add a device" menu of HP, but he sees not just it. ARRGG!

    Thanks for any help!

    Hello

    I think that there is some confusion because the Officejet k8600dn is only a printer, it is not a multifunction device and does not provide the capability of scanning.

    You can find the specifications below:

    http://support.HP.com/us-en/document/c01287217

    If you have any different model printer, please specify the exact model.

    Kind regards

    Shlomi

  • Information on the synchronization

    My Mac, the ipad 2 and iphone were always synchronized notes between them but lately (maybe), I noticed a pattern of difference.

    The iphone and the ipad is the synchronization between them. And then my Macs are synchronization between them. But not all 4 is synchronized with the other.

    They became two couples who dislike each other and don't talk with their partner...

    Does anyone have a solution for this?

    Thank you

    My iPhone and MacBook Air note sync perfectly.

    Mae sure OS x 10.11 and 9 installed on your devices iOS.

    iCloud: overview of Notes

  • can I search with a photosmart 7350 printer?

    can I search with this printer?

    Hello

    The Photosmart 7350 is a printer only and not a multifunction device,

    This is why there is no ability to analysis provided by the device.

    You can find the specification of printer below:

    http://support.HP.com/us-en/document/bpy20818

    Kind regards

    Shlomi

  • Subfolders are missing in my Windows Vista mail

    All of a sudden all my especially for the Inbox subfolders have disappeared, I'm desperate to get back. I used Windows Mail for 2 years with no problems until I turned it on a few days ago.

    The Inbox always works for the Inbox and Outbox, as well, but it does NOT show the pointer indicating the sub folders.

    I got CCleaner, check and repair the registry

    I have DL WMUtil and clicked on 'Repair', with no result.
    Support MS I took the Adviser and Windows Live Mail installed.

     
    All windows updates are installed, including SP1 & SP2

    I'm sure each subfolder has it's own DBX and I have what looks like the long list to save them in my F:\Downloads\Email . I see that the Inbox itself is 1.33 GB, which can be too big?


    All windows updates are installed including SP1 & SP2.
     
    (When introduced in several years, as far as possible C:\ has been kept for the MS OS and one very little other critics of the programs so that the Image has been observed smaller as much as possible for reasons of reconstruction and restoration.) I have years of work organized and saved and do not want a multi-hour/day sessions to rebuild if the OS crashes.   Most of the other programs have been put in E:\;        and F:\ was maintained for data)
     
    Thus, you will notice that all *.dbx files are in f, not C:\ folders.dbx was changed to folders.old, but the folders.dbx is not regenerated when the mail is opened again.
     
    NOW, I go check Mail/Local C:\Users\Carl/AppData/Local/Microsoft/Windows files .  There is No folder.dbx, .old, .bak, etc..   But the records that I'm missing may not be in the local folders.  Each of the files *.eml files/messages and I can click on and open one of them.
     
    So the sub folders (the typical yellow icon) appear to be in C:\
    But the *.dbx files (icon looks like a blank white page) are in F:\
    So how do them together and recognized again?
     
    Thank you
     
    Carl P Cardey
    Hemet, CA
     

    Hi CarlP33,

    C:\Users\Carl/AppData/Local/Microsoft/Windows Mail/Local Folders is where Windows Mail stores data by default on a Vista machine. And DBX is not the format in which windows mail stores the data. He stores them in a format called. EML you find that is correct.

    . DBX is dead... This is the format in which Outlook Express uses to store its data. If you find these files in F:\ they could be a backup or that you copied.

    See below on how to import the DBX (Outlook Express data) in Windows Mail.

    http://Windows.Microsoft.com/en-us/Windows-Vista/import-messages-into-Windows-mail-from-Outlook-Express

    http://Windows.Microsoft.com/en-us/Windows-Vista/import-export-or-change-the-format-for-contacts

    You can also view, http://www.windowsreference.com/windows-vista/migrateimport-outlook-express-dbx-files-into-windows-mail-in-vista/

    Thank you

    Michael Weston

  • Copy and scan with the Officejet Pro 8100

    Can I scan and copy with the Officejet pro 8100?   If Yes, how, is not in the manual.

    LON

    The Officejet Pro 8100 is a printer only, it is not a multifunction device.

    You can find the specifications below:

    http://WWW8.HP.com/us/en/products/printers/product-detail.html?OID=4323241&JumpID=oc_r1002_usen_c-001_r0002

  • Loss of information

    I've recently updated the operating system software on my computer at home and at work by downloading Palm Desktop 6.2 since the Palm website. I use a Tungsten E2 bought in 2007, but have been using Palm devices without interruption since 1998.

    At home using Microsoft VIsta and works with Windows XP.

    After the synchronization with the PC home (VISTA) I seem to have lost information that had been entered only on this computer in the past year. Before that, I had not been able to sync more than one year with the PC at home, at work.

    A way to recover what was lost?

    My wife can enter information into the computer program and I have on another computer and still not lose anything when I sync the same device to both computers?

    It won't work; any time that synchronize you a device with more than one computer, you have the possibility of data loss or corruption. If you enter data on two different PCs, and synchronization to each you must enter all of your data on a primary computer and then synchronize only on the other PC. It would be better as handheld synchronization replaces default Desktop on the secondary system, so there is no possibility of data loss or corruption.

    In addition, Palm DT 6.2.2 has the potential of data loss if it is open all the time and you have a PC freeze or restart data will sometimes become lost or corrupted.

    With regard to the recovery of the data lost; If this isn't in the application of office of Palm and not on the device, it is probably lost. There is a backup whenever you synchronize, but it gets overwritten with the next synchronization operation. IF you have synchronized not more then once since the loss of data, then it would be possible to recover data...

  • I have Premiere Pro CS6, but never installed.  Now, I try to install, but have encountered a roadblock.

    I downloaded Premiere Pro CS6 several years ago, but never installed.  Now I try to install, when I downloaded the SW, it consisted of two folders.  Inside were 7 - zip files.  I extracted all the files in a folder and I try to install it.  I have the MSG "Please insert content CS6 disk to continue.  One of the files is NAMED "CONTENT".  But it will not be installed.  This file is the pgm are you looking for?

    The two folders that I have are:

    Adobe Premiere Pro_6_Content (Windows) inside this folder are two files.  PremierePro_Content_LS7.7z and PremierePro_6_Content_LS7.exe

    Two files are in the 7-zip file.  One is called Adobe Premiere Pro CS6 functional content, the other is called Adobe Encore 6 functional content.

    The other top-level folder I have is called Adobe Premiere Pro CS6 (Windows).  Inside this folder are two files PremiereProe_6_LS7.7z and PremierePro_6_LS7.exe

    In the 7-zip file, I find a folder - CS6 Adobe and a pr_disc_icons.ico file

    To load the files, I found a SETUP.exe in the folder Adobe Premiere Pro from 7 - zip.  When I ran that, he started to install it, but after a few moments, I got the message

    "Please insert disc CS6 Content to continue".

    No matter what I do, I can't clear the checkpoint.  I have all of the decompressed files and put them into a subdirectory of wholesale.  But that no longer works.

    AND when I get settled, I imagine that I will ask you a serial number.  If I already have a serial number, this number has long since passed. How do I get a replacement?

    I searched through my emails, and I can find no confirmation of Adobe I bought the pgm, but I assure you that I did.

    You can get the software online and download it (see below), but if ever you have registered the software, serial number you will not be stored in your adobe account. (Quickly find your serial number)

    Serial numbers are not regenerated. You can contact the support in case there is no record of your purchased serial number:

    To contact support, please click the link below, click on the still need help? option in the blue box below, then choose the cat. Make sure you are signed in with your Adobe ID, have cookies enabled and have deleted your cookie cache.  If you have any questions, try another browser.

    Serial number and activation support

    CS6: download produced CS6

    After downloading the installation files, see these instructions to extract the files and install your product.

    Guinot

  • offline in V7

    Hello

    I am not always connected to the internet and VMWare 7 crashes on a regular basis! (every 10 minutes) When I see his log file it shows something like this:

    "CD error: could not complete the active transfer for https://softwareupdate.vmware.com/cds/index.xml: CDS_HTTP_HOST_RESOLVE_ERROR.

    Also when I want to launch VMWare 7 for the 1st time, it takes time ~ 2 minutes to start. This period is not at all when there is an internet connection. (he wants to check something at the start of a way synchronous not Async)

    to avoid these hangs disable all the features of phonehome via the menu > edit > Preferences

    or edit the config.ini file and make sure you have this 3 options set or not:

    installerDefaults.autoSoftwareUpdateEnabled = 'no '.

    installerDefaults.componentDownloadEnabled = 'no '.

    installerDefaults.dataCollectionEnabled = 'no '.

    _________________________

    VMX-settings- WS FAQ -[MOAcd | http://sanbarrow.com/moa241.html]- VMDK-manual

  • Clear the list of unknown dependencies via the Support Tools

    Hello

    It seems that several requests to our server for content have been manipulated to SQL injection. One of our models use a < assetset:getmultiplevalues > tag and also a tag < searchstate >. It's in the tag getmultiplevalues that the error occurs. However, what I understand, the tag < searchstate > addictive unknown for the type of property.

    When I log in Support of FatWire tools, I can view the unknown dependencies for this type of asset. Document_C is the type of asset in question.

    http://127.0.0.1:7001/CS/ContentServer?IDList=unknowndeps%3ADocument_C & pagename = support % 2FCacheManager % 2FlistByItemPost

    In this list, I see clearly each of the injection of code SQL tent and there is not bad. When we publish a Document_C asset, FatWire will re - generate each of these elements. This causes many errors in the logs, and we believe that this could be related to another issue where content is not displayed correctly through our RHN Satellite Server.

    Does anyone know how to clear this list in FatWire, so that we can start a new? I checked our Apache logs and you will see that these requests do not recur.

    Kind regards
    Jonathan

    Regeneration occurs probably because older versions (in fact, no matter what version where InCache is not enabled) would be to use the xcelerate.donotregenerate flag to control if automatic cache regeneration takes place after published after the cache dump. By default, this indicator has an empty value, which means always regenerate what was red (if the value * then nothing does not regenerate if the value "unknowndeps" so that only pages cached with unknowndeps are not regenerated).

    But you don't need to change this property and to publish to get rid of them now, you can rinse the elements from the Support Tools:
    -' Flush pages of the element", such as providing the"unknowndeps:Document_C"key will purge all cached with this unknowndep (it could be a lot more than you want to clean up, be careful)
    -"Pages flush by name/value pair. providing an another param that specifically identifies pages that you want to empty cid as pagename, or anything of the cache key.

    If it is the first time to use, try first on development so you can be sure that you know how to rinse precisely what you want.

    Phil

  • Cloud to Adobe on Android

    I have uploadod files from my phone to adobe.com with this little cloud icon. I can reach these files from my desktop or laptopt? Would be nice if I could, I would have all the synchronized notes.

    If you mean the download feature of in Adobe Reader Mobile, then you can access your Cloud space via your web browser on any platform - just visit https://files.acrobat.com

    Note that this space is not connected to the cloud of Creative Adobe or the system of Acrobat.com workspaces, a purely autonomous and personal storage space.

  • Spot-&gt; CMYK

    Maybe I'm just not looking in the right place or skimming top, but I need a hand with a shade SPOT CMYK conversion in CS4.  This problem only happens in InDesign and Illustrator, through several installs and also for a client (which is how I found it).  Normally, I choose the shade of the library, edit it and changeit spot in the PROCESS.  Good way to do and pretty easy, right?  Well, here's what happens:

    PANTONE 440 c - dark Burgundy

    InDesign CMYK values: 82, 76, 100, 30 (print/poster green dark, not even close)

    Illustrator CMYK values: 82, 76, 100, 30 (print/poster green dark, not even close)

    Photoshop CMYK values: 65, 67, 65, 68 (prints/poster, dark Burgundy, like this conversion)

    Bridge color settings: synchronized (not that it matters)

    It looks like 438 and 439 may also have the same problem.  Any suggestions?

    Thank you!

    By default Photoshop defines the Pantone Solid colors as a laboratory. The CMYK values, you get in PS (65, 67, 65, 68) is the transformation of the color of the laboratory management to your workspace CMKY color settings. Change your CMYK working space and you will get different values. The Pantone solid to process in the PS library will give you the same values that you see in the ID and AI (82 | 76 | 100 | 30).

    You can get Lab of Photoshop CMYK behavior to work in the ID checking for tasks using Lab values in the ink Manager.

  • statistics on imports of DP...

    Hello

    I didn't go on 'user2376553' display (import statistics using datapump so I want to ask this question here.)

    I tried to find the answer by searching on google, but found nothing on it.

    When you use exp/imp, it creates statistics on the tables when it is the default import. (CALCULATE = is the default)

    But what of Data Pump? It calculates the default statistics on import (and update the underlying tables coming DBA_TABLES)?

    MOS Doc 793585.1 - EXCLUDE = STATISTICS or EXCLUDE = INDEX_STATISTICS then Datapump import always parses the index

    IT IS FAKE!

    DataPump always restores the statistics. The statistics that are on the source database are restored on the basis of data target not regenerated. (the tables are NOT be re-analyzed.) The only time where that's not true is before 11.1.0.7 and only in 2 cases. Before 11.1.0.7, the only time that statistics have been regenerated is when there are system generated columns or system generated index. In 2 cases, the statistics are regenerated. (Tables or indexes are discussed again.) All other cases, they are restored.

    The behavior of Data Pump before 11.1.0.7 is the same as exp/IMP statistics are normally restored unless
    1. There was system generated names (column or index)
    2. the statistics specified user = recalculate

    Dean

Maybe you are looking for