low latency multiple series to read

I develop a DAQ series box which reads using the SMU-8130 and labview RT I'm reading multiple series instruments that send packages of short, CR/LF-Close to a rate of about 1 to 4 Hz.  Low latency between the arrival of the series data and treatment (timestamp) is a priority.

One of the instruments of series is a GPS timing device, and I checked, during playback of a single instrument in series, can I timestamp with a precision of about 50-100 microseconds.

However, when I add more instruments, or at least more instrument of manipulation loops without connected equipment, these latencies jump at least 10 x.  The jump in time of latency seems also tied to the period of waiting time for VISA set up a Serial Port.

In other words, I suspect that the additional instruments may be locking other threads in treatment of the series. I checked the reading series is configured for asynchronous mode.

Can anyone suggest how to approach the issue? The serial ports are supposed to be blocking each and other reads like this?

For reference, here's how my VI works:

Here's some of my main VI.

The basic operation is as follows:

  • open_aqn_serial opens a VISA resource for each serial port based on the parameters of read_aqn_conf.
  • Each serial port is controlled by a body independent while loop. Most of the work in each loop is done by the serial_handler2.vi, described below.  Feedback loops are used for the sequence numbering and buffering.
  • There are currently about 4 or 5 of these loops series instrument Manager
  • In each loop, data from the serial port are timestamped, then sent to a queue that collects the data sets of all instruments.

Here's serial_handler2.vi:

  • The VI attempts to read either enough bytes for an entire package, or however, the number of bytes is on port, if it is higher.  It is also configured to finish reading on the term float.
  • The data is immediately stamped and added in a buffer.
  • The buffer contains incomplete packages (in the case of a partial reading) until they are complete, then complete passes (or outdated) packets to the queue of the collection.

Tags: NI Hardware

Similar Questions

  • How to stop the series 'VISA read' the sends packets instead of bytes available.

    Dear Labvillians,

    Highlights:

    How can I stop series "VISA read" send me packages rather bytes?

    Background:

    I have a system which publishes series of 14 bytes on a semi-regular interval packets.

    At busy times, the producer of these these queues of data packets, effectively producing Super-paquets multiple of 14 times larger than 8 packages (112 bytes) bytes.

    My protocol handler is designed to process bytes, packets, or packets Super.

    Now, my request has multiple devices and the order of message processing is essential to the proper functioning.

    My observation is that read VISA waits until the end of a package / super package before moving the data to the application code. (See chart below)

    My expectation is that VISA read should give me bytes available, get too smart for itself and not wait for a package.

    .

    I noticed this on PXI, PC shipped, PSC and, more recently, cRIO

    I've experimented with Scan interface the cRIO rate, which helps to reduce the backlog of packages but don't decide to package under read byte.

    I understand that a solution is FPGA code write to handle and pass the bytes by R/T-FIFO, and there are some great examples on this site.

    Unfortunately, it does not help with FPGA devices not.

    I have also dabbled in the event based sequential reads, but he is evil on vxWorks devices.

    Any help is appreciated

    It is helpful to sometimes talk to yourself.

    I hope that is useful for someone sprinkle in the future

  • Multiple series in a chart flash?

    How can I have multiple series in a flashchart?

    I am putting together a small application for a weight loss contest at the office and I have never used graphics in the apex before... With the help of the wizard that I seem to not get only one series. I want to have one for each competitor where the user can enter his weight daily and a (line 2D) graph that displays the progress of competitors in the same chart.

    Do I need a plugin for this licensed or is internal Summit graphic enough?

    Could someone give me a hint or point me to code or read it please?

    Thank you

    Andreas

    Hi Andreas
    You can add the series!
    See
    Region > graphic Flash
    under the "series of the chart," click the button "Add Series".
    GAson

  • Asio low latency generic Pavilion dv6 Notebook PC XS078EA driver

    Hello! I have a Pavilion dv6 Notebook PC.  Product XS078EA number. I restored the system to its original state with restore disks. After restoring the system, my audio device doesn't have the "generic low latency asio driver" option more. I used this driver with many production music applications like FL studio and Ableton Live, with optimal performance. Now, I can only use Direct Sound drivers, very poor indeed. I already downloaded and installed the latest version of IDT High Definition Audio drivers from the site, with no result. Please, how can get this 'pilot audio generic low latency' for my audio chipset again?

    Thanks a lot for your help

    Problem solved installung Nuendo 4, actually the first audio program I installed when I bought the PC. Generic low latency asio driver has been installed by Nuendo. In my view, remains the best driver asio for integrated audio devices.

    Thank you very much for the help!

  • Visa series parallel read with arduinos, data are delayed

    Hello

    Currently I use two arduinos asynchronous data read from sensors of temperature and humidity. Each arduino send back 4 floats, separated by commas, with a stop of "\n" character In labview, data gets broken upward and then pushed to live plots. In addition, the data gets written to a file - arduino #1 and #2 Arduino have their data sent to different files. It is important to note that the arduinos have different rates by which they send data on the comms series. Ideally, we would like that the data of every arduino to enter and update locations independent real-time each other.

    I'm having a problem where data do not seem to be displayed in real time. I can touch a thermocouple and then ten seconds later, the temperature will change. This delay seems to grow over the short program, which is a problem since we use a direct result of the plots to determine when to start various processes of cooling.

    I wonder if due to different data rates the thrust arudiunos, if there is some kind of buffer somewhere that has a "backlog" of the fastest arrduino data and must wait for the slower arduino data until it does nothing. It is obviously a problem of data flow, but I'm pretty green with LabView and was looking for some advice or pointers. I want to mention that the arduinos send data quickly; they send every two seconds or more.

    Hello MrScientist,

    can you please try to use two separate while loops, one for each COM port, because if they're in the same loop, it can happen that they block each other.

    A second option is always read all the information on the COM port and made a ring buffer and filter information of these buffers.

  • Problem with the series of read/write

    Hi all

    I don't know if this belongs here or on one of the guidance material, but I thought I would start here.

    I have two devices which I am currently trying to contact via the serial ports on a PXI chassis in real time.  In both cases, I series of software that seems to work fine when I use the serial port on the controller (for example, COM1).  Now, I have two cards that I used two different systems to talk to these devices - 8430/2 and 8430/4.  In both cases, when I use these cards, it seems I have periodic in response by devices delays when you use the same code that I use when talking through the serial port of the controller (i.e., I get some downtime when trying to read code error-1073807339).  I tried to Exchange cards with spare parts, but I have the same problem.  I can handle the delays to retransmit the command, but this destroys ultimately the determinism of the system given that the delay may create a pause of up to 2 seconds.  I tried to change the size of the buffer, but I seem to have the same problem.  Does anyone have any ideas as to what could happen?

    Cheers, Matt

    Thank you, Luis.  Indeed, one of the errors being thrown was a timeout error (the other was thrown by one of the devices indicating that he did not understand the command sent).  However, the problem wasn't that I was getting a timeout, but rather that I was getting an error on one platform and not on another.  But it seems that I solved my problem - I simply set the I/O VISA Write mode to synchronous and this seemed to solve the problem I had.

    Cheers, Matt

  • Write a question about basic series and Read.vi

    I tried to use the base series write and Read.vi to simulate the funtion of Hyperterminal, communication between the pc and the device via COM port. The question I have is, when I open the vi, under the name of resource VISA option, I don't think my device used COM port. I clicked on the button refresh, but always, always shows only COM1. And when I entered the hand COM7 (what I used) and click Run, it would show the error message: "invalid resource specified, Parsing error."

    Can someone help me with this problem? Thank you very much.

    Not a big fan of McAfee, but I do not know if it is charged. There is a KB article on how to solve this problem.

    Until address you and ports appear in MAX, you will not be able to use the ports in LabVIEW.

  • Series of reading and DAQ in same While loop

    Hello world

    I have a while loop that has a DAQ reading and a reading series of VISA.

    DAQ readings slow while loop for series com & therefore the iterative nature of the measures to constantly check byte-by-byte (for the full range of the code: 22 bytes) does not work. (it will check 8 bytes, 24,.. etc. because more bytes is collected in a buffer before it can browse new loop.)

    Is it possible to synchronize these two data acquisition devices?

    Data acquisition speed is fast enough, so if there is a way to keep the series bytes in a queue and take only the first 22 bytes for every while loop iteration?

    Thank you for your help. I can't join VI, but I can give you a reference image.

    I recommend having separate loops of data acquisition and reading series.  If you simply connect the latest value, the local variable is great for sending to playback in series to the other loop for logging.

  • How controls are grouped in the front pannel "write basic series and Read.vi.

    I wonder how the controls are grouped on the front. An example is the "basic series write and Read.vi. The rocker of Scripture and the 'rope to wirte' are grouped in a raised area. I couldn't move individual out of this box control when I tried to arrange the controls. How they are grouped and how do I move them individually?

    Thank you.

    Select the Group of controls you want to Group/Ungroup and select the option group/ungroup as shown above.no wonder in this

  • Series cannot read on laptop sticker to activate Windows 7

    I can't activate Windows 7 because I can't read my code serial number on my cell phone /activation.  I bought this laptop directly from Lenovo and I was the sole owner of it. The code is authentic, just can not read more.

    I had to reinstall windows 7 with lenovo disk backup provided and now I can't activate windows.

    Is it possible that Microsoft or Lenovo can retrieve this series?

    If you use the floppy recovery Lenovo that you shouldn't have to enter a key. The manufacturer disks set includes the embedded in the files issued specifically to Lenovo license key. If the installation routine asks for a key then it is not the game of the good disk. Manufacturer of charges are previously authenticated using privileged license and do not require activation of the line.

    Microsoft have not save which COA license is issued to each computer, they are provided to the manufacturer as a block and they apply to the label. In theory, Lenovo should be able to match key that was issued to this serial number, but in practice, few manufacturers will provide the information

  • Everything I print from the Internet is so low that I can't read

    When I use Firefox as my browser, everything I print from the internet is so small, that I can barely read. I finally started to use IE, as I don't have the problem there. I have done all troubleshooting tasks that were recommended in the help section of Firefox. None of them worked.

    Hi eastonedge, the selection of the size of paper could remember the last size, which would be practice/irritating, depending on what prompts the last value. If you find that you need to change that often, each time, try to update to the pilot ladder, start menu > list of devices and printers.

  • Exe on the Satellite L series files reading problem

    Please can someone help me?
    My laptop is no longer automatically open almost anything.
    He asked me what to use to open things so I can't download new programs or updates because it does not open them.

    He tells me that it is a problem to read exe files.
    Not sure I understand this and can I do to fix this

    Hello

    Don't know what this cause but maybe your system is confusing to the top
    Have you tried to get the BONE to this early time before this problem occurred?
    If this isn't the case, I recommend you this option.

  • Can not remove the memory stick slot on Satellite A series card reader

    I hava inserted a memory sony stick into the slot of the card and can not read or retrieve it from the slot.

    I need to disassemble the machine to remove or is there an easier way?

    Thanks for the brief info;

  • Problem with my e-mail address - the text is so low that I can't read.

    only got one problrm with emails, printing is small I can't read

    original title: can't read my emails, printing went small

    Hi Wendy,.

    I think making sure that your browser is not set will be expanded, as this would cause the text to display much more than normal.
    Please follow the instructions in this article:
  • Oh, the irony? High DPC latency with idle CPU - gives more stable, more low-latency DPC CPU usage 100%

    Just like in the title,

    I tried everything, disabling components, elimination of most of my RAM, update BIOS and loading failsafe and optimized defaults, etc. - and one thing I noticed is that Prime95 running x 64 on all hearts eliminates the peaks high in 1.2.0 DPC latency checker. Audio stuttering, what original research for corrections me, brought me to DPC latency checker.

    It's really strange that the 100% CPU usage would cause the DPC latency stabilize (mine hovers around 350-450 microseconds in the full use of the CPU, but in use slowed parameters or moderate apparently something causes a DPC peak at ~ 4100us max).

    Let me know if you figured it out!

    Model name : GA-EP45-UD3P(rev. 1.6)
    --------------------------
    M/B Rev : 1.6
    BIOS Ver : FE
    Purchase garage : Newegg.com
    -------------------------------------------------------------------------------
    Brand VGA : ATI model : 5770
    Brand CPU : Intel model : Quad 9400 speed : 2.66
    Operating system : Win 7 64 bit SP :
    Brand memory : G.SKILL Type : DDRII
    Memory size : 4 GB, speed : 800
    Power supply : Antec Neopower 550 W

    Hi Frankie,

    We understand that you too met the same scenario as this 6 year old thread. Some resolutions are always topical, while others are no longer applicable due to constant updates and corrections in the course of the last years.

    However, to resolve your concern, you can view article utilization of the processor for Windows 7 .

    Let us know how it goes.

Maybe you are looking for

  • I just upgraded to an i4 to an i6...

    I just upgraded from an iPhone to an iPhone 4 6 and have lost all my custom ringtones... I downloaded new but can't seem to get them on my new phone... ideas... I went through YouTube and google but nothing seems to work.

  • Future of the Mac Mini early 2009

    Hello I have a Mac Mini early 2009 with the following specifications: Intel Core 2 Duo 2.26 GHz 6 GB 1067 MHz DDR3 NVIDIA GeForce 9400 256 MB OS X 10.11.1 I mainly work with Adobe CC2015: applications InDesign, Illustrator and Photoshop. For most 2D

  • I want to improve my Vista system!

    Hello! I have W500 4062-36U I have windows xp sp3 on it! I want to upgrade to vista the question is how? ... is ' t ok to install vista normally and the ThinkPad applications will not be deleted or what? and if we got removed them... what to do? Anot

  • Cannot start device USB (code.10) error

    Original title: device usb ayre Cannot start this device (code 10)

  • Windows 7 - updates at shutdown never download.

    When I turned off the computer, Windows says to install the updates. "Do not stop your computer...". "So I expect. Never install the updates. I turned off my firewall, BitDefender and I left the Sandboxie 'sandbox '. What Miss me?