LabVIEW DAQ delayed

Hello

Thanks in advance for your advice - I've been teaching myself Labview for the past months and this forum was incredibly useful!

I wrote the following to continuously sample data program and display the data in a chart in the form of wave (the second waveform is just to help out the second data channel, will not be seen by the user). The user start/stop recording of data by clicking on the start/stop"button collection. I set the number of samples to read-1, which seems to have solved my previous problem, where the number of registered data points = /(sampling rate) (number of samples to read).

However, I noticed that the practice has introduced a delay of approximately 1 second. Does anyone have an overview of what could be the cause of this and how do I fix?

Thank you!

published 17:29 - attached correct code

You are only reading 1 sample every loop iteration sampled at a frequency of 2400 samples/second.  You're probably trolling because your loops can run that fast.

In addition, when you find 'trigger' and get out of this loop, you have the code of logging file in the same outer while loop.  Writing files takes longer than a lot of operations.  So preventing you to come back and collect more data.

Collect all available data as you said.  Use a producer consumer do to move that data to another loop that does the logging of files for you.

Tags: NI Software

Similar Questions

  • Cannot start assistant in LabVIEW DAQ

    Hello

    I can't launch the LabVIEW DAQ assistant, but I can do it Max MAX DAQ's not flexible because I can't custom code or convert.  I tried all different ways to open the DAQ assistant and I finally realized something, on the block diagram, I open Tools/Advanced/Edit palette/Express/entry/data acquisition is missing (question mark) and many more functions are missing.

    I use the Labview 8.6 and NIDAQmx 8.7.1 evaluation software

    Can you please tell me what the problem is. I really need to launch of NOR-DAQmx, LabVIEW.

    Rgds

    Paul

    Hi Christ,

    Thanks for the fast service, I did as you said, but it didn't fix it. Basically, there are many media NI LV (8.5 and down) any brand with an X, I selected (highlighted) of Labview Signal Express support, since it was just the support NI LV as you said in the email (there is a message of side will not install it) then I click Next and finish ,. Reboot, lauch labview, move on to block diag/check on Experss VI on the function palette/entries, but lack even). I have als don't have reinstall Labview.

    I don't know if you have a plan B, because I'm stuck or if you can send me a screen shot or dialog of what I do; that will be great.

    Thank you

    Paul

  • HOWTO fix Labview 2010 delays

    My Labview 2010 causing huge delays ~ 30-40 years compiling and when using the restore function.

    It blocks the (useless) pc for its time.

    I tried several times now, but the work of development with this break is not possible.

    System: MS XP32, Athlon 64 3800 + with 2 GB of RAM is not recent, but clearly within the min. requirements: Pentium 4 and 1 GB

    The app is first written as LV 6.4/8.0 and use very less stuff express vi.

    HOWTO solve the problems of delay with LV coming 2010?

    1. do I need to rewrite my whole program express screws...

    2. can I disable certain features to reach LV 8.0 performance...

    3 do I need a faster cpu and more RAM...

    ((4 can I I restore this program to OR because of) a lack of compatibility and b) minimum requirements of evil

    BTW... can Labview be completely uninstalled at all...?

    Sorry to ask a little aggressive but this "program OR" cost me a couple of days now for nothing

    Tips in particular to Question 2 would be much appreciated...

    read it twice, I discovered a very interesting aspect now your answer Putnam... Thank you

    I think this indicates that the solution...

    sound in this line here...

    > Currently using LV 6.1 - LabVIEW 2009, RT8.5

    I'll go and reinstall 8.0 and available banks of LV and recommend seriously

    for all LV users do not update to LV 2010.

  • missing 2013 LabVIEW daq Assistant

    I do not see the DAQ assistant in Labview 2013!

    LabVIEW 2013 + real-time + fpga

    Max 5.5.1

    Visa 5.4.0

    August 2013 device driver

    Why?

    Thank you


  • Not selectable in LabVIEW DAQ card

    I installed a PXI-6122 card. The device is listed as "Device is working properly" Max:

    Now, I want to select the device to a constant of the device in LabVIEW 2010, but is not listed there:

    I guess it has to do with how MAX recognizes the PXI card, see previous announcement.

    Does anyone have an idea how I could make this card works and selectable in LV?

    The problem has been resolved by the NI DAQmx developers:

    http://forums.NI.com/T5/Multifunction-DAQ/DAQ-cards-not-selectable-although-listed-in-Max/m-p/124778...

    Thank you very much!

  • LabVIEW DAQ Assistant accidents

    I've read other posts on LabVIEW 8.0 crashing when you change an entity DAQmx Assistant in a VI, and it seems to me that the solution is to upgrade to a newer version of LabVIEW.

    I don't want to go that route (in particular the aspect of money), so I was hoping to try to uninstall the DAQmx software then reinstall a newer version (the most recent of which is compatible with the device USB cDAQ-9172 - don't remember what version that would be at the present time).

    My question for the more experienced: it's a painless process (in general) to uninstall the DAQmx software and then re - install a newer version? I might break any screws I've done and/or opening usually a giant of Pandora's box by doing this?

    Hi Brad,

    Be sure to check this page before downloading a newer version of DAQmx, because the most recent versions of DAQmx support more LabVIEW 8.0: NOR-DAQ & LabVIEW version (for Windows) compatibility

    Brad

  • problem with the on LABVIEW DAQ assistant.

    I have a LABVIEW student edition. I needed to use NI USB-6008 to acquire the signal, but I do not see "DAQ Assistant" on the Express > entry in the block diagram pane anytime, I opened a new VI. Any help will be appreciated.

    Thank you.


  • Impossible to find in LabView DAQ assistant

    Hello! I installed the driver NOR-DAQmax 9.3.5 after installing LabView 8.5 Student edition and I'm not able to find the DAQ Assistant, in the function palette. Could you please let me know what else I could do?

    Thank you!

    Hi cmorale4,

    Find this article in the DAQmx driver compatibility and LabVIEW, if you have the latest driver that you can install and use with LabVIEW 8.5 should be OR-DAQmx 9.3 you can find here.

    The best method is to remove all the drivers you have installed so far, you can do a registry clean with CCleaner and then proceed to the installation of version 9.3

    Kind regards

  • Other data on the same chart Labview DAQ +.

    Try to do something fairly simple in labview. We read up to 16 analog inputs continuous (in a loop), the merger signals and display on a single diagram.  Now, I have a few other data from another (non DAQ) instrument playing in another loop much more slow.  Problem is I can't over all the data through the data acquisition loop to display on a single chart.  I even tried to build the waveform in the loop of data acquisition.  But whatever by entering seems to cause the whole thing to stop and no data is read.  How is this best?

    Hello

    Looking at your screenshot, it seems that you have a data type double wired in your queue get in the middle of your attached screenshot. I would recommend a constant of waveform of the queue to get instead of the constant double wiring. This will define your data in the form of wave type and porbably will allow you to get the names of waveform.

    The constant waveform is located on the range of functions under the waveform > Analog Waveform > constant waveform.

    Please see the screenshot of clearing-up joint.

    I hope this helps!

  • Missing 2012 LabVIEW DAQ Assistant

    Hello

    I just installed LabVIEW 2012 and DAQmx driver for my USB-6008 and there is no DAQassistant in my menu of LabVIEW.

    I searched using the search feature on the menu, but he's not here.

    I installed LabVIEW before DAQmx by following the instructions on the Web site of NOR.

    Thanks in advance!

    You did not provide certain essential information - the version of DAQmx you have installed. It should be of 9.6 in support of 2012.

  • Programming of LabView DAQ card

    I recently started using an NI USB-6211 data acquisition on my laptop card. I installed the driver software and data acquisition works, but when in the main package of LabVIEW, I don't have all the features tab measure or express to use to control data acquisition. I would appreciate help

    This version of DAQmx is not supported with LabVIEW 2012.

    Try to download the most recent driver, version 9.7, http://joule.ni.com/nidu/cds/view/p/id/3811/lang/en

  • My Labview DAQ is maxing out my CPU usage, why?



  • Possible to use labview with daq system not of NOR?

    Hello

    I have a daq system and the software from another company that NEITHER. But I want some changes in the software. If the opportunity was to make a new program with Labview.

    Is it possible to use the old system of data acquisition? Is this compatible with Labview? Or I have to buy new hardware?

    Thank you.

    Hi VIassaks,

    Good afternoon and I hope that your well today.

    Thanks for the post.

    LabVIEW can communicate with 3rd party hardware using the library function call is located in the tip under the functions Palette palette. If your equipment is equipped with a DLL at the driver level LabVIEW can communicate with the hardware. However, you must obtain documentation of the DLL so that you can create your own interface for the material of the part 3.

    Another option would be if the hardware manufacturer provided LabVIEW VIs that control their material. You will not be able to use the screws (National Instruments Data Acquisition DAQ) because these screws use the DLL OR-DAQ, which is our software at the level of the driver for our DAQ cards. Other companies use their own software to the driver level to control their own material. Only the National Instruments hardware uses the NOR-DAQ driver that allows you to use LabVIEW DAQ screws.

    Hope this helps,

  • Need help with hardware DAQ in Labview

    Hello

    I'm new to LabView programming so I need some advice from you guys... My goal to use the labview is to calculate the dynamic mass or the apparent mass of the human subject in a rigid seat. The dynamic mass is calculated as the ratio between the cross of the spectrum between strength and signal acceleartion so that the autospectre of the Basic acceleration signal that LabVIEW can be done using FRF. I've attcahed the VI tht I created in order to calculate the FRF and spectrum of auto for the force and acceleration of Basic. Number of samples = 1024, rate = 100 Hz and the acquisition mode is continuous for the acquisition of data. Acquired signals were filtered using a lowpass with cut filter off = 25 Hz frequency as my frequency range is from 0.5 to 20 Hz. the number of averages = 6, with an average of mode = RMS average weight = linear mode. This basically the implementation that I use for my experiments. Now coming to my questions... I would like to record the time signal for both strength and Basic acceleration to do some post treatment how to do that in Labview? Here I have to say that getting two coulmns of data were only one column is for the moment and the next is for the data of force (or acceleration), with my setting I have 6000 samples for 6 medium.

    For preliminary tests, I used a rigid seat to acquire the strength and the Basic acceleration signal in Labview DAQ. the stage in this case should be about zero, but the answer in step with the VI me different gives a value of 180 degrees. I would like also to say that for some of the iteration, the value tends to zero, but after only 6 average it shows me about 180 degrees phase. Iwould wish I had some comments from that aspect also.

    Thank you and best regards,

    Suresh


  • frequency DAQ USB issue (6211)

    Hello

    I'm a newbie when it comes to NOR and data acquisition. I bought a NI USB 6211 and connected a resolver with 400 Hz and ai1, ai2 (CSR) (sine and cosine signals). I also have the reference of the power supply connected to ai3 (differential) of signals. Pockets of tension give a +/-2.5 Volts from all sources input signal.

    The problem is that the signal moves to the right. She moves uniformly for all signals.

    Now, I wonder is it possible to synchronize the input signal so that it moves? or what I need to resolve this issue programmatically? I'm programming in C with standard DAQmx drivers (v15.1). But I saw the same problem with Labview and Measurement Studio.

    Thanks in advance for your suggestions.

    Kind regards

    Gerhard

    I guess I just find the answer to my question here:

    http://forums.NI.com/T5/LabVIEW/DAQ-Assistant-can-t-lock-the-signals/m-p/1332484#M542285

    I guess I have to ask in the forum section of C++ for an example of a software lock.

    Kind regards

    Gerhard

Maybe you are looking for

  • iTunes 12.4.1 - footer missing with number of tracks and time

    The footer in iTunes bar seems to have been deleted on the recent update, which showed the total "number of tracks", "total playing time" etc... -I know that you can still see it in 'playlists' at the top, but the selection of albums or songs in an o

  • Re: Satellite L550-11J - crashes if I play a game

    Modell Nr.: PSLN8E - 012013GRInstalled: Windows Vista Ultimate 64-bit (all readers to the latest version) HelloI assume that my L550 main fan does not run correctly.For example, I want to play a game of detail with DX10, every thing works perfectly w

  • [DV6-3140SL] Problem in my laptop after upgrading RAM

    Hi all, I want to upgrade the memory of my laptop HP DV6-3140SL model. Original RAM installed is a Micron 16JSF51264HZ-1G4D1, size 4GB. Then I bought 2 modules of the model Corsair CMSO4GX3M1A1333C9 (4 GB x 2 = 8 GB total) but when I installed this 2

  • Error message indicator of battery at startup

    HP Pavilion p6512uk desktop running Windows 7 64 bit PC Whenever I boot, I get the following two messages: Battery indicator - HPID09.  Access violation at address 00401C 62 in the module 'BATINDICATOR' read of address 000002DC .exe and Battery indic

  • every time when I play the sims3 is QtCore4.dll

    every time when I play the sims3 is QtCore4.dll