Is there loss of data when I have other operations at an event?

Hello. I am a new user to NOR-DAQ.

Now I develop a sampling program HAVE continuous for the NI USB-6229 case.

The environment settings are 8 channels under 2 kHz sampling frequency. In the program

I need to save the data in a csv file each time than in quite awhile, let's 500ms, through the 'event '.

mechanism. I tested that it takes about 32 ~ 48ms to write the data of 500 ms.

This 'event' appears as a software interrupt for me so I was wondering if the DAQ hardware

continues to record new data while I perform the write operation in the case?

Or put in another way, when I set up the task of sampling with the function

"DAQmxCfgSampClkTiming", the "sampsPerChanToAcquire" parameter is described in

be used as a factor to determine the size of buffer. Is this the intended "AI FIFO" buffer buffer

by the "M series user manual? This means that if I put it to an appropriate value data

will always go in this buffer first and then read by the computer, so if the transfer is fast

enough, there is no data loss?

Thank you in advance.

Data are recorded by the data acquisition apparatus and stored in the FIFO buffer.  The reading VI DAQmx then takes the amount of data specified on the FIFO and brings the data in your program level.  So as long as your buffer is large enough, you won't lose any data.

Here are some other suggestions.

Focus on the architecture of producer/consumer .  It is a way to put writing files in another thread to process and record data at the same time.

Lean on the function TDMS flow in the DAQmx palette.  It is a way to bypass the program level and get a log file of the data.  The data format will be PDM and not a CSV file.  But there is a plugin to read the TDMS files in Excel.

Tags: NI Hardware

Similar Questions

  • Loss of data when you save it to a file?

    Hello

    I have problems with my data recording. I acquire at 2.5 MHz for 5 seconds and when I view it I don't see 1.2 s data, if you use a single channel, or unless, as 0.4 s data, when getting the 8 channels.

    My vi is attached and also a picture of him. To analyze it, I use "TDMS File Viewer" (PDM - File Viewer.vi):

    Attached, it is also a picture of the file viewer. Check the number of samples (225000) and the time when it was taken (19/11/2008 16:14:30.423) and (2008-11-19 16:14:31.362). With a 2.5 MHz, there should be much more samples than what is there...  The last sample (which was not shown in the photo) is time (19/11/2008 16:14:30.513), only 0.1 s after having begun to acquire data.

    Is the problem with the queue? If this is not the case, why are data not saved?

    Thanks for the help,

    Rafael

    Your consumption (bottom)) thread will be scuttled as soon the producer (top) out of wire. Leave the upper loop kills the queue; Dequeue item returns an error, and writing to a file won't do anything if there is an error on the entry. If all the remaining items in the queue when he was killed are lost. The best way to solve this problem is to add another loop of thread; After your existing while the loop closes, loop with a short (10 msec) delay until the queue is empty (by Get Queue Status). Kill the queue only after all your results have been written to disk.

  • The loss of data when disable call forward

    I was not happy with the quality of the VoLTE calling ahead, so I decided to turn it off. After neutralizing him and then make a call, I lost the data connection. The 4GLTE disappears, replaced by 1 X. The call quality is better without VoLTE. Any suggestions?

    jaifuss,

    Your phone works as expected with Advanced calling off. If you have advanced calling off and place a phone call, the data connection will be reduced to 1 X and data will not function during a call. If you are in a 4G area and you advanced calling on the call will be routed on the 4G (VoLTE) network. This is why your data will continue to work. Call HD and video calls work only if you are calling from another device advanced calling (VoLTE). To make a long post short, so what you see with the login data is normal while during a call with Advanced calling off.

    That being said, I'll lock this thread before he gets rained on immediately. jaifuss, do not hesitate to send me a message if you want to discuss this further or have any other questions.

    Kind regards

    Tom

    Motorola support

  • Loss of data when resizing table 2D

    I data collection and insert in a table I did great I know will be used.  I then resize the table using SetArrayBounds, because I now know the number of iterations that have been executed.  I find myself with an array of correct size, but the data consist of the first line with only the first column is missing.  All other elements are 0 (matrix of numbers).  Any idea what's going on?

    I wanted to start with an empty array, resize to any line and the number of columns before you start the iterations, then add a line at the beginning of each iteration.  I was shot on this, but it seems that it works better.

    Kelly Bersch

    Hi Kelly,

    Could you show us the code you used to implement? Specifically, the resizing of the table? http://forums.NI.com/T5/NI-TestStand/what-is-the-syntax-for-SetArrayBounds-for-a-multi-dimensional/t... This thread shows the correct syntax for the command and its implementation.

    If I understand correctly that you slowly fill this table which has been initialized to 100 x 100. The first thing we should do is to initialize the array to 100xthe number of columns if at least we can stop worrying about the columns since you already know how many settings you are testing. Then at the end of the sequence, you can resize the lines using the above command.

  • I can't open my direct messenger(msn!!) of windows... There is an error and I have to look at the event viewer (what's that?!) Help...

    Please if you know what the problem is, tell me... i have to open my msn again, thanks... !!!

    Hello

    read this

    http://Windows.Microsoft.com/en-us/Windows-Vista/open-Event-Viewer

    and they will help you with your questions/problems Messenger when repost you the link below in the Messenger forums

    http://windowslivehelp.com/product.aspx?ProductID=2

  • BlackBerry Smartphones BBM will not send or receive calls even when I have other PIN codes

    Hi I am a new owner of a Blackberry Curve 8520 and I can not get my BBM to connect with my sisters phone no matter what we do. We tried to analyze our bar codes and put our pin in each of the other phones and nothing works... His phone is a "BOLD", but she has a lot of contacts already added to his and I can't get an added...

    Anyone has any ideas... Thank you

    Check if you have data. If you do not, you can not send data prompt or accept them.

  • I buy photoshop and LR to 9.99 today, so when I have soap operas?, thank you!

    I need help for this info, how can I get the serials for the applications in the creative cloud? Thank you!

    never.  There is no serial number used with subscriptions single user cc.  your adobe id allows you to check your license.

    Install the application of cc, Download Adobe Creative Cloud apps desktop | CC free trial Adobe

    Now you can install lr and ps trial (30 days) while you wait for your payment to process.  Once this has happened, log out and then back to your application of cc to convert test full versions - sign, sign | Creative desktop application Cloud

  • Bug report - activate the quick start causes filesystem corruption and loss of data for Windows 8 NTFS when it is used by Windows 8 and Windows 2008R2SP1

    My hard disk configuration is as follows:

    Disc 1: 0.5 terabytes
    Disc 1 - Partition 1 Windows 2008R2SP1
    Disc 1 - Data Partition 2
    Disc 2: 1 terabytes
    Disc 2 - Partition 1 Windows 8
    Disc 2 - Data Partition 2
    After you install Windows 8 RTM and used for about half a day, I started in Windows 2008R2SP1. From the start in Windows 2008R2SP1, I had "one of your disks needs to be checked for consistency", and it proceeded to chkdsk both the 2008R2SP1 and Windows drives data. No problems were detected
    I don't think a lot of it... and goes to copy several files from disc 1 - 2 Partition on drive 2 data - data Partition 2
    Then, I started Windows 8 RTM one 2 weeks later and told me that 'one of your drives should be checked for consistency", and it proceeded to the chkdsk disk 2 - data partition 2 and found a small number of questions. But after that, all files, I had copied in 2 Disk - Partition 2 data were GONE!
    So I decided to reboot and start Windows 2008R2SP1... and I got the "one of your disks needs to be checked for consistency" again this time what we found thousands of questions! He supposedly fixed, but my files (more than 200Gbytes) still LEFT!
    I believe that it is this same problem: the bug - report serious corruption of system files and loss of data caused other NTFS de Windows 8 CP readers but I think it was not fixed on CP, and it is now on GTR!
     
    One more thing why this site (http://answers.microsoft.com) don't have any option to ask questions about Windows 8 RTM? I had to choose' other/unknown '
     
    Update:
     
     
     
    Apparently if you use the option "Turn on the quick start (recommended)" in your Power Options, when you turn off your machine, it's not really turn and that's why he won't let NTFS in a consistent state, and so, if the disc is read by another Windows, it will try to 'fix' cause corruption...
     
    This could mean, even a double start between 2 windows 8 facilities system would auto destroy...

    Hello

    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums. You can follow the link for your question.

    Windows Server 2008 IT Pro Networking Forum:

    http://social.technet.Microsoft.com/forums/en-us/windowsserver2008r2general/threads

    Kind regards.

  • Toshiba satellite which is stuck in the installation of service Pack 1. I have service pack 2, can not fix with this cd, can I install service Pack 2 on it without loss of data or files?

    I have the laptop (Toshiba satellite) friend who's stuck in the installation of the service Pack 1.  I have service pack 2 and am wondering, since I can't fix with this cd, can I install service Pack 2 on it without loss of data or files?

    PC claims service pack1 cd with file asms

    When you use service pack 2 cd can not load product catalogues, it is fatal error, the Setup logs files should contain more information.

    Why not integrate Service Pack 2 and Service Pack 3 on her XP CD by following the instructions here (using another PC):

    http://en.community.Dell.com/support-forums/software-OS/w/microsoft_os/1443.aspx
    Copy all data on an external hard drive, do a clean install using the XP CD updated (preferably on the BIOs)
    Then, install the drivers from the system, then Microsoft Security Essentials, Windows 7 Firewall Control (XP free Version) and Malwarebytes' AntiMalware (free or Pro) or whatever you prefer security.
    Then copy the files over.
    This will probably lead to the best performance.
  • Windows 7. I recently had problems with loss of internet connection. When I have trouble Shooting, told me that impossible to find a driver.

    I have a desktop running Windows 7 PC.  I recently had problems with loss of internet connection.  When I have trouble Shooting, told me that impossible to find a driver.  The adapter does not appear in Device Manager.  Help!

    Hello

    Definitely looks like a problem with the network device. Check with sound
    Support, their books online, the drivers and ask in their forums (if any)
    on known problems. If there is a control of the device shipped with the system
    Manufacturer (manufacturer of motherboard for customized systems). If a device check separated
    with the support of its creator and other resources.

    You could also remove or disable the device and try a new add-on as one
    new card or device USD. None of those who are dear.

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • . Files NEF (Nikon D600) in Camera Raw (bridge CC) appear extremely saturated to the point of loss of data. When exporting, the images are very good.

    . Files NEF (Nikon D600) in Camera Raw (Adobe CC) appear extremely saturated to the point of loss of data. When exporting, the images are very good. There is no update available.

    As it appears in Camera Raw

    In camera raw.PNG

    Exported

    Exported.PNG

    In Bridge, open camera raw preferences and uncheck the option of graphics processor at the bottom of the dialog box.

  • Question: Are there risks or considerations when you rename clusters and data centers?

    Question: Are there risks or considerations when you rename clusters and data centers?

    We have the intention to rename our data centers and groups today to more meaningful names naming conventions. We intend to do so without problem and during production hours.

    Comments, warnings, or known reserves?

    All points will be awarded.

    Thank you

    If you have any scripts or tools that analyze currently based on the name of the Cluster, it could be affected.

  • Get reports sent even when there is no data - PUB BI front-end

    To the help of the front end (not API), how can we avoid the sending of the report when there is no data?

    We do not yet have all the features... I have an idea for an ugly devil that might work:

    Write in your model a state similar to a division by 0, which is triggered when
    There is no data. If the build fails may not send it.

    Klaus

  • How to view the zero in the dashboard reports when there is no data in the database?

    I'm generation of trend analysis report

    in which I not show. so each month on a site web, I have all the data for a given month July (because there is no success during the previous month), report is generated with all months except JULY.

    Is their any way to view the zero with the name of the month when there is no data (unsuccessfully) in the database?

    ex.
    Jan 10
    20 February
    15 March
    Apr 4
    May 12
    June 16
    July 0 <---(display zero here)
    August 11
    9 sep
    .
    .
    Dec 8

    You owe us an outerjoin:

    http://obiee101.blogspot.com/search/label/outer%20JOIN

    concerning

    John
    http://obiee101.blogspot.com

  • All IT gurus out there who know Firefox... have lost the passwords saved when FF created a new profile and delete old files key3.dbf and logins.json profile.

    All IT gurus out there who know Firefox... have lost the passwords saved when FF created a new profile and delete old files key3.dbf and logins.json profile. Any ideas, anyone?

    So it's not a logins.json file?

    I see a signons3.txt file and a file signons.sqlite older, if you can try to see if you can import passwords stored in this file.

    You can force Firefox to re-import the passwords in the file signons.sqlite and regenerate the file logins.json with the following steps:

    • reset the signon.importedFromSqlite pref on the topic: config page by default via the context menu
    • Delete the logins.json file in the closed Firefox with Firefox profile folder

    When you restart Firefox, then you should have the pref signon.importedFromSqlite with the value set to true.
    You have passwords that are imported in the password manager, unless there were errors or signons.sqlite signons3.txt.

    You can open the topic: config page via the address bar.
    You can accept the warning and click on "I'll be careful" to continue.

    You can use this button to go to the current Firefox profile folder:

Maybe you are looking for