Acquisition timing problem

Hi all

I had a problem with the timing of the acquisition. I currently use the timed loop to set the iteration of 2s. However, after several hours of running the program, end executions occur (even, sometimes it takes 4 to 6 sec to complete execution of a, I don't think that my code is it heavy to deal with). I post my diagram below. I would be really grateful if someone could give me the tell the cause me of this problem and how to overcome.

BTW is the specification of the computer

Core i7

3 GB RAM

Windows XP

Timed loop definition:
1 kHz clock

2000ms period

priority 100

Throw missed given Unchecked

Maintain the first phase not checked

Thanks in advance

OK, so I think that there are only two possibilities for the delay:

Reason no. 1:

The measure YKDQ Subvi.  Perhaps the code it actually buys your data hangs for some reason any.  I don't know what is hapenning in the Subvi, so I can't say with certainty.  But its possible it might hang for a reason any?

Reason 2:

Table.VI Build is an express VI that accumulates from an internal data buffer.  According to your code, it keeps adding to this buffer until some time is reached.  And then he writes the buffer in MS Office (right?).  LabVIEW is notoriously badly to the eppending of large networks.  See here for more details.  If you keep add in a large buffer, he eventially will slow your PC because LabVIEW continues to move the berries in memory.

My reccomendation: use a more intelligent to add to this table method.  Before you can set the size of your array and use "Item of table to replace" instead of Add.  See here:

http://www.NI.com/white-paper/4715/en

Tags: NI Software

Similar Questions

  • Questions about circuit RC phase difference (possible timing problem)

    Hello

    Here is the program that I use to measure the phase difference in an RC circuit. Simply generate a sine wave of 2 kHz in LabView and send it to the circuit using an analog output. Then I measure the exit sinusoid using an analog output. I also measure using n oscilliscope. I can clearly measure the difference in phase with the oscilliscope and know that it is about 1.4 radians.

    Problems with the program:
    Phase difference different measured each time the program is run for the circuit. It is never as good.

    Possible causes:

    You will notice by looking at the vi that I measure the phase from the signal generator. Can I use a second analog input to measure the sine wave, as it came out at the beginning of the circuit?

    I think it's a timing issue. While the phase difference is constant each time the program varies each track. So the time that each measurement of tone starts its first measure seems to be different every time and causes this reading of different phase.

    The card that I use is a PCI-6221, is there a timing problem associated with switch for input and output audio acquistion or are they separated.

    Is anyway to ensure that two key measures measure phase at the same point in the (real) time?

    I would really advice or changes to the program - could someone offer me (I am a student and LabVIEW is not on our program so I have no support, but I use it for my project (OH!))

    I would certainly acquire two signals.  Food for the analog output right back into an analog input, then your signals filtered in another.

    Initially, I would feed the two analog inputs of the analog output and measure the delay in phase due to the multiplexed A/D on map.  Once you have this measure, you can feed in the filtered signal and then measure the difference of phase of this signal.

  • Workstation 8.0.6 and Win10x64: audio crackles - timing problem?

    I use WS 8.0.6 under Win7x64 on Clevo laptop P170EM (3610QM CPU, 16 GB of RAM).

    XP, Vista (32/64), Win7 (32/64), Win8x64, Win8.1x64 invited works extremely well, no problem at all.

    In all the Win10x64 invited (from 10586 last pre-release), the audio is very choppy, with or without VMware Tools installed.

    Tested with the internal ' Test' button and popular players (WinAMP, Foobar2000) using MS, SD and WASAPI interface. Even with 2000 ms buffering, there is no clear sound. In all previous versions of Windows (up to 8.1), 200-300 ms of buffering is enough.

    DPCLat shows 1200.15000 we 1100.1200 average latency.

    I'm afraid that there are some problems of timing of comments.

    What timing technique had been changed to relatively Win10 to Win8.1?

    WS 8.0.6 can be adjusted to fix, or should I update my WS to a version more recent?

    Would be - for upgrade, choose which version of WS? Here, I've seen a few complaints for WS 10 and 12 WS audio stability-related.

    I discovered that Virtual 8 HPET Hardware is enabled by default:

    hpet0. Present = 'TRUE '.

    Disabling HPET eliminates audio crackles and timing problems in win 8.x and 10:

    hpet0. Present = false

    (or you can just comment this line on ' # ').

    Most likely, Workstation 8 virtualizes not correctly HPET.

  • Acquisition speed problem - cDAQ9188XT

    Hello

    I need your help because I have a slow acquisition problem in my project that I don't know how to solve.
    Basically, I realized that my program was not run fast enough and I found that it was because of my acquisition of dig vi.
    Acquisition rate / loop is limited to 772-773ms for each iteration, while I could at least 100ms.

    In order to reduce to a minimum the other task to do here is what I did:

    and what I get:

    For the results 2305.63... I had plugged nothing but values with wire are good, the problem is not there.

    I'm still very novice with DAQmx tasks (I wanted to learn to do without the DAQ Assistant, which itself puts ms 2800 loop...) so there may be some errors, but I don't know where...

    I acquire the temperature only a NI 9213 module that shouldn't have problems to keep! And I request a sample on request. (Clocked in the future by a loop of 100 ms between each iteration).

    To create the 'task' refnum, I converted my old DAQ assist in a task! Maybe it's here-> 2.0 assistant DAQ in the project
    I have also changed my computer, I get exactly the same result, so the problem comes from my code / configuration...

    The project is not executable because it took me a while loop in the sub acquisition.vi vi to identify the problem.

    The vi test is called test - speed.vi and the task refnum: assistant DAQ 2.0, be sure to select on the Panel before printing, although I doubt that without the same DAQ - module, execution starts ^^

    In addition, as a substitute in the whole project, the acquisition by simulation, it works almost perfectly!

    I hope that I was pretty, as usual, do not hesitate to tell me if I should explain more clearly!

    I can not find a solution at this time, do you have any idea?

    Thank you very much!

    Erwan

    PS: do not hesitate to criticize the bad things that you see in my project as a whole, if you see something really bad!

    PS2: I see just with a SINGLE temperature on the nor 9213 my loop is 163ms...

    Look at the specifications on page 6.  The 9213 has 2 modes, high resolution and high speed.  It also has an auto zero option.

    http://www.NI.com/PDF/manuals/374916a_02.PDF

    When you configure the task must be a device tab that has the auto zero and adc synchronization mode.  Change the synchronization in high speed mode and the auto zero times or none and see if that speeds up things for you.  But there is a take-off with precision.

    14 playback channels I received about a time of 300 ms iteration by using a task DAQmx.  I found that with the help of the 9188 some modules are not as fast as I would like.  You can run your thermocouples in a separate loop and transmit data to your main vi when it is available.

  • VBAI - image acquisition misframe problem

    Hello

    I have a smart camera, NI C. 1776 when I tried to acquire the image, after 4 or 5 images, it ejects a weird picture half misframe. This will not suitable for imaging my self.

    I've attached a normal picture and a peak misframed to let the guys have a better version of this problem.

    Could someone help me on this?

    So thank you and I liked it.

    Normal image

    misframe photo

    You set the "Flip Horizontal" or "Vertical Flip" setting? What happens if you set it to the size of the image complete? If none of these made a difference, let us know how it works after the upgrade.

    Has confirmed that the video output shows the same image?

    I'll check with our support team, if they have heard of this before.

    Thank you

    Brad

  • NI 1410 - VSYNC timing problem

    Hello

    We build a custom confocal system laser that generates its own HSYNC VSYNC, clock pixel and the pixel value to build an image. However even if VSYNC is perfectly synchronized with the vertical sweep, what I see is two objects in my image as attachment. No idea why and how to solve this problem?

    Thank you!

    Peng

    E-mail: [email protected]

    are you sure this isn't a fault of cable?

  • IP in chain - timing problem with Windows 10

    Hello

    I was working on a project and noticed something that I wanted to highlight to others and to see if I could get a reasoning as to why this is happening.

    I started this about four months ago and recently updated my computer to Windows 10 up-to-date project. I am under Labview 2014 V14.0f1 (32 bit) and had not seen any problems with labview until I activated an error logging code which reports data to a syslogger.

    We started noticing that the recorder took much longer than usual to deal with errors and in turn slowed down the whole program.

    When we dug in the question, we found the slow down was the INVESTIGATION period to the block of the string that is used to extract the host name. It took about 4.5 seconds to complete. I have run the same code on a windows 7 VM and it run under a 1 ms...

    No idea why IP chain is taken almost 4 500 x times more time in Windows 10 vs Windows 7? We have worked around the issue by making a control that can be set from a file configuration of the value, but I wanted others to know and hopefully get an answer to why this is the case.

    Thank you

    Chris

    LabVIEW 2014 is not technically compatible with Windows 10.

    Compatibility of the versions of Windows with LabVIEW.

    Maybe the search time is affected by something that has changed to win 10.

  • Acquisition of problem of network address

    The OS is XP (SP-3). Trying to set up a wireless laptop - it works very well if connected via ethernet. We have another laptop which works without problems and logged before several other laptops without problem - so suspects don't not the router.

    -Device Manager show (RT2500 Ralink) wireless adapter to work properly

    -WZC is enabled

    -with active DHCP, the message is cycling between "absorbing the network address" and "not connected".

    -IPconfig shows the 0.0.0.0 IP address

    -Run IPconfig / release and / renew gave the message "no operation can be performed on the connectionwhile wireless there media disconnected." Also ' an error occurred during the renovation - the DHCP client obtained an address that is already in use.

    -Enter the IP address manually produces (no active DHCP) a different effect. The message now cycles between 'connected' and not connected ' about every 3 seconds. IPconfig shows now the manually enterd IP address details. I tried several different numbers at the end of the address to ensure no conflict with other addresses.

    -repair of rand without success

    -restarted the router several times

    -maximum strength of the wireless signal is available.

    -not scanned with malwarebytes and tren micro - no problems.

    -There are two installed versions of XP. Original (very slow) and recently reinstalled (works perfectly). The same behavior occurs in both versions of the operating system running.

    Now, I can't find any other ideas of previous discussions in MS Answers. Can someone suggest a solution.

    Hello

    Don't worry that WARNING connected to the router, in this context the 'server' is your router. Simply enter your username and password and click OK.

    If a USB adapter has the same problem it eliminates pilots as something to worry about.

    If it works well with the router of your daughter, then he must either be the router settings or router failure.

    Do the other troubleshooting and let me know what happens.

    Disable the 3rd part software admin wireless and just use Zero Windows wireless. It is easier for me because I have this knowledge. There are too many other utilities of party 3rd to give me specific instructions for them.

    Tricky

  • Content acquisition Internet problem with OTP-S390

    I recently bought a BDP - S390 Internet Blu - ray player. I'm unable to access Netflix, Hulu, Pandora, YouTube, etc. The player exceeded all by performing the ' absorbing Internet content...» (3/3) "step which is necessary to obtain a registration code to enable internet video services. Customer support says it's the result of my slow internet connection, which is ridiculous because the iPhone 4 in my household have no problem in streaming + Hulu, Netflix, Pandora, and Youtube. The player can access the internet. I have verified this by navigating with success on the web and run the network diagnostics which showed the link was 'OK '. Anyone know of a possible solution for this problem?

    Hello Michael,

    If you have access to video services like Hulu, Pandora, Internet then you should not register the player in the Web Essentials My Sony site.

    Test the speed of the Internet being used from the link below.

    http://www.KB.Sony.com/selfservice/documentLink.do?externalId=C1013044

    Internet connection speed minimum of 2.5 Mbps or greater is required for the standard definition (SD) programming and 10 Mbps or higher is required for programming in high definition (HD).

    Internet high speed may be affected, if others in the House use a computer to view movies, perform large downloads or play games online.

    Update the Firmware from the link below:

    http://eSupport.Sony.com/us/p/model-home.pl?MDL=BDPS390&template_id=1&Region_ID=1&tab=download#/down...

    Reset the modem or cable router by unplugging the power cord from the electrical outlet for 1 minute.

    Do a factory reset for 3 times:

    1) press button on the supplied remote control.

    (2) select settings (brief case icon).

    (3) select Reset.

    (4) select Reset to Factory Default Settings.

    Configure network manually from the link below:

    http://www.KB.Sony.com/selfservice/documentLink.do?externalId=C1025439

    Please mark it as "acceptable Solution" If you find this information useful.

  • Chat Room switch ok, cannot discuss. Maybe a timing problem?

    Take a look when I pull this function switches to the room, but I can't hit 'Send' to send the text to the chat system.

    private void clickHandler(event:ItemClickEvent):void

    {

    cSession.logout ();

    cSession.roomURL = " " http://ConnectNow.Acrobat.com/t4uri4n/ "+ event.item.data; "

    cSession.login ();

    }

    I also tried ChatArea.subscribe (); and had no luck.

    Can anyone help?

    Hello

    No, you don't need to keep running as administrator once you have set up the cat in the room. You must do that once, you can do in other ways as well.

    Users can come and keep the cat in the room at their convenience if you have not stopped users to come to your room. And the rooms still remain.

    Hope this helps

    Thank you

    Hironmay Basu

  • Problems of acquisition & visualization: fails at 100 Hz, OK more low or more freqs

    Hi all

    I have some data acquisition & visualitzating problems.

    The acquired data is a voltage (0 - 10V) from RDP LVDT & conditioner. My pourpose is simple: I want to gain everything by visualizing and recording to disk. I use a card BNC-2101 & 6062E. I also use LabView 8.5 on Windows XP s.p.3. I tried three ways: my own .vi and examples of LabView with internal clock and the external clock. They all consist of two steps: aquire, visualize data on a graph. and my own .vi also saves the data in a .lvm.

    On the first try, I was able to acquire data with sample on request mode. But I want to get to a known frequency, so I put 1-sample (controlled HW). I set the frequency and the number of samples as well as the number of samples is of approximately 1/5 of the frequency, for a rate of graphics path 5 times / sec., BUT I found the following problems:

    (1) for the acquisition in the low frequencies, say 50 Hz, there is a large gap between read data a shown in the data graphic: from 2 to 8 seconds.

    (2) for the acquisition to high and very high frequencies, say 20 kHz to 100 kHz, the graphic works OK. But in this way, the file I'm writing is too much. I don't understand why when I put the computer work harder, with more data, it appears without delay.

    (3) for the acquisition to 100 Hz, it does not work. An error (just know don't remember the #, is one who says this time-out has been reached whithout having given to read aviable). 99.9 Hz works, but not at 100 Hz or 200 Hz.  I really don't understand this point.

    Can someone help me please?

    Thank you for your attention,

    usuario

    Just writing to tell you that we have tried with another computer and had no problems with the hardware and the same .vi.

    And have had no problem for the las 2 months.

    Thank you all for your dedication.

  • data acquisition won't taste at the specified rate

    Material: C - DAQ 9178, AI 9239, inside a servo and an encoder potentiometer module

    Setup: I use the 9239 to measure the angular position of my servo and encoder of trees by streaming came pressure pot of the servo and my encoder. I put the sampling frequency on the DAQmx - Schedule VI to 100 Hz.

    Problem: I don't think that my DAQ is sampling data at 100 Hz because my VI registers more than 10 000 data points for a 10 second test. In addition, every time I have save my data in a text file, the vector of time my test data resets after a number of iterations.

    To debug, I tried the following configuration:

    I've defined the sampling frequency of 100 Hz (or is that s/s?), the samples per channel (size of buffer for continuous mode) at 2000 samples, number of samples per channel up to 10 and loop milliseconds timer on my VI at 10 m accordingly, data acquisition would send 100 samples per second (or 1 sample every 10 ms) on my PC buffer (which could store 20 X that amount). Then LabVIEW would read up to 10 samples per loop iteration (which is itself ~ 100 Hz) and work with these 10 samples inside the loop. However, since the loop is operating close to the sampling frequency of data acquisition, then LV should only work with 1 sample each iteration of the loop (100 Hz / 100 Hz)-not the 10-sample-max that I specified.

    However, I stumbled on "error-200279: the application is not able to cope with the acquisition of material" when I ran the program. Why?

    My code and materials should be easily able to cope with data acquisition - at least the way I put it in place

    This whole situation wondered my fundamental understanding of data acquisition timing, so I would really appreciate an explanation of exactly how to deliver DAQmx uses data synchronization, why my DAQ sample at 100 Hz, and how can I fix the calendar specified by the user.

    Thank you!

    aeroAggie wrote:

    The C - DAQ 9178 there some minimum sampling rate I will not meet?

    It's actually the 9239 that limit your sampling rate.  Read the data sheeton page 5 there's available data rates.  In short, your data rate allowed is 50kS/s / n, where is goes from 1 to 31.  50 k/31 gives you 1.6kS / s.  So, it's the minimum sampling frequency that can be used.

  • Problem on myRIO entered analog sampling broadband 50kS/s

    Hi all

    I have a problem when I want to use the + 10V input analog of myRIO1900 to sample a signal of moving very fast valve (+ 10V analog signal).

    I need less 50kS/s sampling frequency (time 20 s segment two examples of data). According to myRIO specifications analog input has a global 500kS/s sample rate, which means it should be fast enough for me.

    I have used a loop in my code and all of the source 1 MHz calendar, timed period 20us (which I need). However, in my LabVIEW code I can get aroud 3ms (333kS/s) time slice (delta t) between two sample data, see file .xls attached, which comes from the function "write to the file of the measurement. I don't know if it is a problem of record data when I use the function "write into the file of the measure", since the time stamp (delta t) of the 'writing on a file of measure' is different from the timestamp (delta t) data that I export waveform graph. But I have to use the function "write into the file of measures" to save the data in real time.

    So, how can I know what exactly sampling rate I get to the data? If this isn't the case, that fast how can I do? Is the unit of time or ms for the entry in the data file?

    Attachments are my project file, writing to measure (.xls) file and the exported data (.xls) file in the waveform table.

    I HERE that very well, if someone can give me some suggestion since I'm a beginner to myRIO and not that familiar with LabVIEW code.

    Thanks in advance.

    Huan

    Since you're using an analog input VI single sample, you are essentially software your acquisition timing (which is timed by your timed loop). It's enough to lower sampling frequencies, but as you try to reach a high sampling rate, you should use the Analog Input Express VI . See here for more info why: http://zone.ni.com/reference/en-XX/help/373925C-01/myriohelp/myrio_one_sample_n_samples/

  • Several problems of reads/writes of Visa

    Hi all.

    I've been using labview VISA to communicate with an I/O device called a µChameleon.

    I need to monitor the status of mutiple pins by sending an entry VISA to query the PIN then use a read VISA to identify the State of the PIN.

    The problem I have is when I use several reads/writes VISA. When I run the present, only one VISA reading returns the corresponding pin State, but everything else show nothing. The funniest is when I use run highlight, they will return all the State of the PIN.

    The photo below shows the basic principle of what im doing by simply copying the base serial number read and write code. For example, I send the string 'State of pin 1' followed by a carriage return and if it works correctly it should return a string Read VISA saying ' pin 1 1 "(top) or" pin 1 0 "(low)." ""

    Can someone help me witht that. Is this a timing problem with the VISA of the readings?


  • Software BlackBerry strange problem with link BB

    I use a Q10 for months and it has worked flawlessly. Even sync with outlook was not easy.

    Then a few weeks ago, it was impossible to synchronize. I received this message: 'Invalid application identifier' witch request invalid ID average.

    So, I reset all of the settings. And it works. But unfortunately, the next day, my timing problem was back. I reinstalled BBLink and I got the same result.

    I am using windows 7 64 bit, BBLINK 1.2.3.23

    Thank you for help, I have wasted so many hours on this

    Ty fyip,

    your response came too late. I still spend many hours to reinstall the system in my Q10 and BBLink. Before, I recorded the content of my Q10 and reinstalled.

    So finally, he succeeded. I must say that it is not user friendly. But no, it works.

    I will remember your advice if the problem reappears.

    What do you think about using Connector Outlook.com and hotmail. Doesn't work well? Y at - it bugs?

Maybe you are looking for