What is the best way to read data series high speed?

My goal is to read 14 bytes of binary data of an instrument on the serial RS232 (460800 baud) to 2000 Hz. I didn't get a card series high speed again so I am currently using the standard serial port (115200 baud) and reading at 400 Hz I have configure the port series, empty the buffer, and then enter a while loop to read incoming data. I have a visa 14 bytes read by interation seconds 0.0025 (400 Hz). However it seems that the sensor is spewing data faster that labview can read because the bytes are accumilating in the port. After some time the buffer fills and the program fails.

Is there a better way to do it?

Would it not be better to read the larger quantities of data less often, for example as 1400 bytes every 0.25 seconds?

Thank you

Hello

I think it would be good to read several points in a loop, and keep the loop less than 1000 Hz.  I found in the past, have something to run faster than about 10ms tends to fall down when windows loses interest in the process.  So yes, choose the slower you can get away with reading samples - for example to read every 10ms and read 20 samples every time. You should be able to configure your serial port in order to buffer the samples that I guess.

Also and the issue of windows - if you use a loop "timed" instead of a while loop, so you can force it to an integer value including the ms.  You can also assign a dedicated processor and set the priority to 100, which means that it is less likely to elapse and decide to scan your hard drive for viruses or consult your account e-mail or what he does when he's bored with your program.  Also it "' tells you if the loop has taken longer that planned to run - you can use this to help iron out bugs etc. - report and/or to the user if you missed a few samples.

http://zone.NI.com/reference/en-XX/help/371361H-01/Glang/timed_loop/

JP

Tags: NI Software

Similar Questions

  • What is the best way to read this binary file?

    I wrote a program that acquires data from a card DAQmx and he writes on a binary file (attached file and photo). The data I'm acquisition comes 2.5ms, 8-channel / s for at least 5 seconds. What is the best way to read this binary file, knowing that:

    -I'll need it also on the graphic (after acquisition)

    -J' I need also to see these values and use them later in Matlab.

    I tried the 'chain of array to worksheet', but LabView goes out of memory (even if I don't use all 8 channels, but only 1).

    LabView 8.6

    I think that access to data is just as fast, what happens to a TDMS file which is an index generated in the TDMS file that says 'the byte positions xxxx data written yyyy' which is the only overload for TDMS files as far as I know.

    We never had issues with data storage. Data acquisition, analysis and storage with > 500 kech. / s, the questions you get are normally most of the time a result of bad programming styles.

    Tone

  • The best way to migrate data... Opinion please...

    Guys,

    I'm working on a solution for a customer who needs to move in a new SAN SAN data.

    Existing SAN is attached to the ESX server farm and is very close to the location of a new SAN. In your opinion, what is the best way to move data without interruption to VM ESX farm?

    I know we can do SAN replication, but right now, I don't know if the SAN is still the same provider.

    I know we can do Storage VMotion. In this case, he should present the new SAN somehow for the existing ESX servers.

    I know that we can probably use the converter to migrate virtual machines. This can take some time because we would go over WAN.

    What are your thoughts?

    Thanks in advance for your comments!

    With 4 TB of data, I wouldn't pass on the replication SAN or WAN solution of optimization of the property, and it can fly quickly with 4 TB of data that you use storage vmotion which basically depends on how your WAN links are, if if its quick to go for it.  There is not another free solution then this but if you can manage somehow to make backup of system state of all virtual machines, and then you can ship these backup data to remote locations and import, save back to clusters.  You have to do the actual calculation how fast you can Transfer data from the siteA-> siteB Mbps?  This will give you a clearer picture of how long it will take and picture plan here.  I could do that during maintenance or weekend windows that are the least impact to users and systems.

    If you found this information useful, please consider awarding points to 'Correct' or 'useful '. Thank you!!!

    Kind regards

    Stefan Nguyen

    VMware vExpert 2009

    iGeek Systems Inc.

    VMware, Citrix, Microsoft Consultant

  • The best way to pass data when browsing

    By taking the case where an action method is called and he chooses navigate to another page.

    What is the best way to pass data from bean of old media to the new (probably in the execution of the action method)? I am currently using beans of spring session scope as the support of beans.

    Take a look at:

    It goes between your commandLink or commandButton control:



  • What is the best way to backup of virtual machines on a standalone ESX with the data store local

    Hello

    I want to save the virtual machines on a host ESX autonomous. and all of these virtual machines is the local data store.  What is the best way to save these virtual machines in this situation?

    And probably we don't provision VTL on the local data center, so it is possible to use VCB to backup? And VCB is a good choice compared to the traditional method that installs the backup client in each virtual machine?   Because I think that in this situation with the data store local, it cannot not reduced the load on ESX hosts and network overhead can be avoided.

    Thank you!

    LAN

    > 1. VCB usable remote tape library? I mean it's not local library and uses the tape library to another network data center.

    VCB is completely unrelated to the tape library, it is a framework, not a backup solution. If your standard backup software can work with the remote tape library you can try it to ungrateful with VCB.

    > 2. what the difference bwteen hot - added NBD and modes if there is that an ESX host with store data local and want to use a virtual machine like VCB proxy? I think that they are the same: the VCB proxy read data through the I/O of the ESX host stack in this situation.

    NBD works on network and the backup traffic goes through the service console connection. Hot add uses special machine for assistance to connect vmdk to and uses of e/s disk stack instead of e/s network.

    > 3. Veeam Backup is free software?

    No, it isn't.

    ---

    MCSA, MCTS, VCP, VMware vExpert 2009

    http://blog.vadmin.ru

  • What is the best way to move the data from the app and Server data structures?

    Hi guys,.

    I developed my application locally with Apex 4.2 and Oracle 11 g XE on Windows 7. Not far away, it is time to move the application to a server Oracle Apex. I guess that Exim is the way to go app. But what about the APA tables and data (tables/as 'customer' and 'account' created specially for the application)? I've been using a modeling tool, so I can run a DDL script to create the database server data structures. What is the best way to move the application data on the server? Is it possible to move the structures and data in a single process?

    Thank you
    Kim

    There is probably another way to get here, but in Developer SQL, on the navigation tree, expand objects until your table, right-click, and then click EXPORT... you will see all the options. It is a tedious process and it sucks IMO, but yes, it works. This is zero especially because 1) it's a table at a time, 2) If your data model is robust and has constraints and sequences and triggers, then you will need to disable all for the insert and we hope you can re-enable constraints, etc. without hitch (good luck, unless you have only a handful of tables)

    I prefer to use the oracle EXP command-line to export an entire schema, then the server target, I use IMP to import the schema. In this way, it is almost true. This makes the dirty life if you develop multiple applications in a single schema, and I felt pain - however - it is much easier to drop the tables and other objects is to create them! (thus, even if the process of EXP/IMP moved more than you wanted to "move".. blow everything you don't want on the target after the fact...)

    You can use method datapump oracle too.

    If not, what can be done, IF you have access to both servers of your instance of SQL developer (or if you can tnsping both already from the command line, you can use SQL * MORE), is to run a script that will identify the objects of your applications apex (usually by the prefix for the names of objects, such as % EBA_PROJ_ etc.) and do all the manual work for you. I've created a script that does just that so that I can pass data from dev to prod servers on a dblink. It is difficult because of the order that must be executed to disable constraints and then turn it back on and of course, more complicated if don't always precede you ALL your "objects demand '... (tables, views, triggers, sequences, functions, procs, indexes, etc.)

  • What is the best way to check the data

    What is the best way to check the actual changes in the data, i.e., to be able to see each insert, update, delete on a given line, when it happened, who did it, and what looked like to the front row and after the change?

    Currently, we have implemented our own audit infrastructure where we generate standard triggers and an audit table to store the OLD (values at the beginning of the Timekeeping point row before) and NEW (values at the beginning of the point of timing after line) values for each change.

    I put this strategy due to the performance impact there (important say least) and because it's something that a developer (confession, I'm the developer) came with, rather than something is a database administrator came with. I looked in the audit of the Oracle, but it doesn't seem like we would be able to go back and see what a line looked like at some point in time. I also watched flashbacks, but this seems like it would take a monumental amount of storage just to be able to go back a week, much less the years currently keep us these data.

    Thank you
    Matt Knowles

    Published by: mattknowles on January 10, 2011 08:40

    mattknowles wrote:
    What is the best way to check the actual changes in the data, i.e., to be able to see each insert, update, delete on a given line, when it happened, who did it, and what looked like to the front row and after the change?

    Currently, we have implemented our own audit infrastructure where we generate standard triggers and an audit table to store the OLD (values at the beginning of the Timekeeping point row before) and NEW (values at the beginning of the point of timing after line) values for each change.

    You can either:
    1. set up your own audit custom (as you do now)
    2 flashback Data Archive (11 g). Application for licence.
    3 version check your tables with Workspace Manager.

    >

    I put this strategy due to the performance impact there (important say least) and because it's something that a developer (confession, I'm the developer) came with, rather than something is a database administrator came with. I looked in the audit of the Oracle, but it doesn't seem like we would be able to go back and see what a line looked like at some point in time. I also watched flashbacks, but this seems like it would take a monumental amount of storage just to be able to go back a week, much less the years currently keep us these data.

    Unfortunately, the audit of data always takes a lot of space. You should also consider the performance, as custom triggers and Workspace Manager will perform much slower than the FDA if there is heavy DML on the table.

  • What is the best way to obtain a string that represents a date in the format mm/dd/yyyy

    What is the best way to obtain a string that represents a date in the format mm/dd/yyyy

    It would be good if I could generate this string using the static methods of a class.






    You can use date formatter:

    Import mx.formatters.DateFormatter;
    ...

    var trainer: DateFormatter = new DateFormatter();
    formatter.formatString = "YYYY/MM/DD JJ:NN:SS;
    var today: Date = new Date();
    trace (formatter.format (now));

  • The best way to read and write?

    Hello

    I'm working on the project with labview.

    with this program I connect PC to MCU via modbus RTU sreial.

    in this program, there are some data must be read and some data they need to write.

    what I need is most of my reading polet exuted time except when some of the elements of control (as the edit box) changed by the user.

    every time something has changed by the user writing polet executed.

    now, what is the best way to do this?

    Best regards.

    Structure of the event within a while loop.  With the structure of the event, detect you the change of values and send the appropriate commands.  You can use the case of timeout for reading the State of the MCU.

  • V11, what is the best way to replace ImportSecurity.cmd

    Hello

    I've migrated my Server 9.3.1 essbase/planning to V11.1.1.2.

    I've used ImportSecurity.cmd to load the security on the members of the outlines and forms of data in Planning. But now it seems that ImportSecurity.cmd is no longer available for V11 (or I have forgotten install / configure something?).

    So, what is the best way to automatically load the security now in V11?

    Thanks for your help

    Concerning

    Hello

    You can use LCM (life cycle management now)
    Take a look on:-http://download.oracle.com/docs/cd/E12825_01/epm.111/epm_lifecycle_management_11111/launch.htm
    Or have a read [here | http://john-goodwin.blogspot.com/2008/08/so-whats-this-life-cycle-management-all.html] for an overview.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • What is the best way to copy the 700 lots of e-mail files to a new computer?

    I'm moving my wife and an old (Thunderbird, Win XP) computer to a new computer (Thunderbird Win 7). It has about 700 local folders with thousands of emails in them. What is the best way to copy to the new computer?

    The easiest is just to copy the whole profile.

    Menu help > troubleshooting information

    Close Thunderbird

    In windows Explorer, select all and copy.
    just stick on a thumb or other portable media to read/write (not the CD or the DVD)

    on the new Machine to repeat the troubleshooting and close the steps to get the current profile folder

    This time all the portable media stick in the profile to replace what is there

    Open Thunderbird, your additions of e-mail contacts does it all

  • What is the best way (and possible) to remix a song mixed

    GarageBand 10.1.1

    10.11.4 OS

    Mac Book Pro

    16G RAM

    Hobby old YR 68 recording guy/try to leave a legacy

    What is the best way (and possible) to remix a song mixed

    I have a song that is most often improvised, I was told that his cool, however, re-registration is not possible.

    After reading a lot on the mixture, I now hear where the uneducated choice and errors that I made which explains the sound "not as good" that the song is.

    Before I just jump in and try to undo the settings on the tracks (one is DRUMMER) to return to the raw track before effects/eq/compression ect. is is possible to do?  Opens the unfavorable mix, rename it, save it and just go to work and cancel or disable 'things '.

    The basis of the lean mixture comes even to the root where I 'hot' securities, (orange and red)

    I guess by now you understand my question and I am open to a favorable opinion.

    Thanks in advance for your help.

    jojoguiitar_mn_usa

    I read this question so many times and I can't seem to figure out exactly what you're asking.  You just ask if you can go back in your GarageBand project and edit your tracks again?  Of course, you can, why not you?

  • What is the best way to place an alias of the Recycle Bin on my desktop?

    Application of small trivial customization here.  Using OS X 10.11.4, what is the best way to create a trash can on the desktop?  I already tried the Terminal command to place the alias, but I'm unable to change the icon.  Given that I have with this method, how to change the folder icon image so that it represents a trash can?  I would find it useful enough to be honest.

    Thanks in advance.

    You can try to drag /System/Library/CoreServices/CoreTypes/Contents/Resources/TrashIcon.icns into the window read the information for the Alias. Upper left corner.

  • What is the best way of reformatting my MacBook ssd for resale?

    I'm preparing my 2015 12 '' MacBook 1.3 GHz 512 for resale.  What is the best way to erase and reformat the SSD drive?

    Thanks in advance!

    -jag

    Before you sell or give away your computer, and more the steps listed in this article to support, please follow these steps:

    1. run the Diagnostics from Apple or the Apple Hardware Test. The buyer will do (or it should), and you won't be surprised by the results.

    2. reset the PRAM and the SMC, which may contain personal information.

    3. If you set a firmware password, remove it by running the utility in recovery mode firmware password.

    4. If you turn on FileVault in OS X 10.7 or later, turn it off.

    5. If you use Boot Camp, the partition must be deleted.

    6. If you have created another partition of data on internal disk, remove them in disk utility.

    7. If the machine has an internal hard drive, erase the remaining data partition with the possibility of putting the data to zero. An SSD has no need to be set to zero.

    8. remove the machine from your list of registered products. If it is still covered by an AppleCare Protection Plan, transfer the warranty to the new owner as described in the terms and Conditions AppleCare (under the heading "Transfer of Plan.")

    Note also:

    You can legally or transfer almost any software downloaded from the Mac App Store to the new owner of the machine, even if it was free. This includes OS X, so if you've switched to OS X 10.7 or later, you need to reinstall an operating system older, either from the installation media, if any, or by commissioning in recovery mode of the Internet (option-command-R start ringing.)

    The new owner will have to re-download everything software that came on the App Store, as appropriate, including updates of OS X, under her Apple ID. If you never updated applications bundled iLife (iPhoto, iMovie and Garage Band) through the App Store, you can not transfer these either. The buyer must buy them. Note that iPhoto has been suspended and is no longer available for purchase.

  • What is the best strategy to migrate data from Windows to one Mac to another? I use Parallels Desktop to run Windows on my current Mac but want to use Bootcamp on my new.

    What is the best strategy to migrate data from Windows to one Mac to another? I use Parallels Desktop to run Windows on my current Mac but want to use Bootcamp on my new.

    If it is only the data (not apps) I use Dropbox. It turned out to be the best way to move things between the side Mac and the bootcamped Windows of my iMac side. I don't see why it would not work to move data from a virtual machine installation of Win to a BootCamp installation.

Maybe you are looking for

  • Satellite U400 - PSU40E Synaptics touchpad problem after the recent update to BIOS

    Toshiba welcome, I've tested this in reverse, this is why the statement in the subject as it looks. After upgrading the bios of 3.00 to 3.50 touchpad loses its precision. Very rude and useless its like that. I tried different drivers, everything, but

  • Update yoga 2 830F

    Hi, im trying to update on yoga 2 830f bute it ends at 98% with the failure of the update I found on the internet that its due to my counry code is unknown I found the tutorial https://support.lenovo.com/us/en/documents/IN20150415-003 is easyimage.zi

  • U8 array used in digital form with 0.1 Hz for each array index

    Hello I am trying to write a code that allows me to output an array of 36'000 U8 values to an NI USB-6009 digital output. The problem starts as soon as I try to set the clock should be 0.1 Hz send me 3600 seconds on my 36 k samples. Looks like it's n

  • How can I access folders and files under % CommonApplicationData %?

    How can I access folders and files under % CommonApplicationData %? It is able to access through explorer.exe? Thank you.

  • BlackBerry Smartphones battery not charging

    Hello Someone had the right battery give on the Blackberry "BOLD"?  Mine is fairly new - about a month old.  Last night, it took 24 hours to load and today the symbol of loading was turned on, but she did not.  I took the battery and still nothing.