NI 6341 buffer problem

We have a NI USB DAQ to 6341. I want a waveform analog output by external triggers sawtooth. In other words, there will be a sawtooth signal generated each 480 pulse input. The frequency of the trigger is 5 k Hz, therefore, the sawtooth signal generated is around 10 Hz.

But I keep on getting error about tampons codes. This time, the error message is:

Error-201025 occurred at DAQmx start Task.vi:7220001

Possible reasons:

Buffer not timed by the equipment operations are not supported for this device and the Type of channel.

Set the size of greater than 0 buffer, do not set the timing of the sample clock or the Type of sample on request time value.

Task name: _unnamedTask<856>

Source:

DAQmx Start Task.vi:7220001
The task name: _unnamedTask<856>

Can someone help me with the related code?

Thank you!

This problem occurs because the DAQmx starting VI is execution of each loop. This restarts the task more before she can finish out the last set of data. In most of the applications you will start the task once and let it go until it's over. Some applications require to start and stop periodically, so you should use the task to stop DAQmx before reusing the VI to start.

I think that there is a fundamentally better way to create your application. If I understand this right, you want a sample of the wave in saw teeth for each pulse of the "external" release trigger. Is this fair? If this is the case then what you really want is to use an external sample on the VI of DAQmx Timing clock. This is similar to how this example is implemented: https://decibel.ni.com/content/docs/DOC-11195

Also, I think what you're trying to do is to repeat the same output samples several times. If this is the case, then you want to use a property node to regenerate the samples. In other words, you just send a signal sawtooth with 480 samples and the DAQ hardware will repeat these samples repeatedly until you stop the task: http://digital.ni.com/public.nsf/allkb/DD750D84BAD703E386256E6E005B41AC

Jeremy P.

Tags: NI Hardware

Similar Questions

  • pattern buffer problem: "no ground has been set" alert but the layer is active. Please... What do I do?

    pattern buffer problem: "no ground has been set" alert but the layer is active. Please... What do I do?

    Try to reset the preferences keyboard or the manual way by reading this: to the area from the bottom.

    http://www.creativepro.com/article/Photoshop-tips-trashing-the-preferences-file

    Can bookmark this link too.

  • XNET buffer problem

    I'm tasting a CAN signal to 5 KHz. The signal is sent to every American (approx.) 240 (~ 4 KHz). I chose the mode of Signal waveform with ResampRate with 5000, to make me a resampling of the signal received at the rate of 5 KHz.

    I get a read buffer overflow (-1074384885) if I try to wait 1000 values available at each iteration (timeout - 1). The program works, if I change the timeout to zero instead (i. e. read an immediate return, if data are available or not). Number of values awaiting seems to have a value of 4294967295 most of the time.

    What is the problem with timeout read here? Why block playback doesn't work? Is sampling or resampling kill my stamp?  I use successfully '1000 values/1 timeout' with DAQmx Read. I want to synchronize DAQmx Read and XNET read at 5 KHz, while I get AI 1000 / ENJOY pairs with each read call.

    Adjusting the size of the queue in waveform input mode suffers from the same problem... you enter the size of the queue in the samples (of the resampled data), but it must be recalculated in a memory frame buffer in the firmware of the "same size", i.e. the same amount of time. If the cadence is not data (or data wrong), the calculation of the size of this internal buffer gives incorrect results and so the size of the internal queue is incorrect.

  • TCP write buffer problem...

    It is a real newbie question, but it's here...

    I connect to a device using the TCP vi.

    Here's the problem... If I write "12345" (5 characters) everything is good. Then, if I write 'ABC' (3 characters) the unit receives a "ABC45' (5 characters). Its like writing

    buffer is not being reset. It still contains what has been written previously. The device I'm talking dislikes CRLF pairs, so this isn't an option.

    On a note related... I use the TCP vi for that. It's just a simple connection TCP\IP.

    Should I stick with the TCP VI or use instead of VISA vi?

    Several related, on a note... LV has a null (\0) character? I was told that that the device use the null char to determine the end of the command.

    Maybe that's my problem.

    I found the null char. String constant value display hexadecimal 0 x 00.

    I'll try that.

  • Buffer problem and cases of ring series

    Hi all

    I had an interesting problem and have a moment that is difficult to find a solution and thought a pair of fresh eyes can help!  I read data during the series using VISA.  That's going well.  I do this continuously and then adding in a string.  This string, I look for new lines and pull them out of the buffer series chain.  I have then look at the lines to see if they have the appropriate orders and, if so, analyze these commands to control a box structure.

    Now, here's the interesting part.  When I started, I wrote a vi to take in an arbitrary multiline string in and analyze data and sentences, and it works as expected, but when I do it with serial data direct and the ring, the case statement buffer does not.  Also, when I probe the parsed string that will control the case statement, it LOOKS right, but the case statement will not accept it.

    Any thoughts would be greatly appreciated, I'm quite confused as to what is happening here.  I have attached the 2 vi.

    Gurus?  Masters?

    Thank you!

    Jim S,.

    I see a few problems.  As previously validated you should use greater or equal? instead of superior?.  The biggest problem is that you have a string constant value '\n', but the constant itself is not configured for '-' code display mode.

  • buffer problem

    Hello, I am REALLY new to labview and probably a beginner programming all together.

    I have a problem that is probably already answered, but I don't know yet what to look for.

    My problem:

    I'm getting data from an instrument once per second, and I read it every second. For example, it will read 1234 (not really) and the other second the instrument will send it again and I'll read 1234... but sometimes (like give once every 10 minutes or take) it will read a part of the old data that I read and I'll get something like 4123...

    I read somewhere something something of the handshake? I don't know if this is the problem?

    Sorry I'm really new to this. I played with things visa stamp, but its very new for me.

    So if you could give me some links or two and point me in the right direction would be great! Thank you!!

    So I solved the problem. I tried to put RTS/CTS flow control. I don't know if this is supposed to be obvious or not, but it's working now. Thanks for the help!

    The only other problem is sometimes starts with 4123 and will remain that way... but if it starts with 1234 first, then he will continue to work. But I can live with that for now.

  • Keyboard problems - Windows 7 RTM on Thinkpad x 301

    Greetings,

    The fighting had thereby a few days and haven't seen all the other notes on this subject.

    I installed Win 7 (business) RTM about 3 times - both 32 - and 64-bit and is the version gives me a problem with keyboarding. Basically, if I type REALLY SLOW, all right. But whenever I go back to normal typing speed, I'm getting erratic behavior. Sometimes while I'm typing, the cursor will jump to a place earlier in the same line and insert new text from there, or sometimes it jumps to the line next, or worse yet, I use it via Remote Desktop on my primary computer running Outlook, it will send the message in the middle of a sentence. (A bit annoying...!)

    It's as if I'm hitting certain types of combination, but I was not able to get fairly constant to understand. It could also perhaps be a sort of full buffer problem after - x-strikes. So here's a question - if you have no job, can you confirm that beta Lenovo drivers you have installed?

    I tried a little, and later a clean 64-bit settling without adding anything else yet.

    Other keyboard problem and some missing OSD indicators, I like the performance and ease of use. But if I can't get the keyboard works, I'm back to XP...

    (Note that I test - I reinstalled XP preload, and kbd was fine - is not material)

    Thanks for all the ideas...

    At this point, I REINSTALL ALL the detached (yet pre-release at the time, in late September) did was install drivers and keyboard.  However, I need to agree with poster above - we need Lenovo to specify exactly what drivers are needed and any requirement of installation sequence.   Somehow, I think this is what makes the difference in my case, but I'm still just guess.

    but so far, Win7 on my x 301 now works...

    Good luck to all-

    Anthony

  • Oracle buffer

    Hello

    I'm quite new to Oracle and have not even now where to start reading about this specific (as I think only attributed to a specific buffer) problem.
    Loading data with SSIS in oracle works very well for the first 90 000 lines but the destination oracle still fails to about 98,000 lines.

    So I wonder if I need to adjust the settings of my stamp?

    [buffer settings | http://metalray.redio.de/dokumente/send.JPG]

    Published by: metalray on May 19, 2009 04:01

    You get to have too many DBMS_OUTPUT with SERVEROUTPUT ON debug messages in SQL * more or DBMS_OUTPUT. ALLOW within PL/SQL.

    BTW, looks like you have an exception handler that is not something useful.

  • Help! Nothing has worked

    Hi guys, hoping someone out there might have a solution because I tried everything and can not solve a buffer problem preventing streaming on airplay

    was working fine earlier in the evening and just started buffering

    His 2nd gen, wifi is perfect and continuous in an instant on the phone

    I have reset the appletv that normally works, she is set to standard def only and tested 3 devices to ensure that this is the tv and not the phone

    the content is appearing on the screen and buffering without playing (I mean the show is buffered until 5 minutes before the end and it will not play)

    have restarted phone and wifi and tv just in case, and nothing works

    any ideas?

    Thanks in advance for any help and advice

    First, to be clear, when you AirPlay (not mirror) your phone, ATV download flow directly from the internet server.

    Thus, it seems that ATV has a problem with his internet connection. What is the source of the video, iTunes, Netflix, what? Is limited to this source of problem, or it also affects YouTube, Vimeo, etc. ? Using a VPN, RAM or other service to access content outside your area?

  • Satellite P500 - keys open 'find' / 'search' - number NOT used

    * information system *: BIOS Version/Date TOSHIBA V1.60, 26/05/2009: Vista SP1: windows explore 8: 64 bit os: laptop Toshiba Satellite P500: computer is less than 1 mth old

    * Problem *:
    1 keys not 'use' numbers... when any number on the numeric keypad is indexed it activates the field 'Search' or 'search' to the program I use.
    2. keypad digital won't "unlock" - light is always turned on.

    Example: If you are using IE8 the field 'search' active that if you pressed Ctrl + F or in other cases (using software), the window opens as if you clicked the icon key windows + F.

    I guess I have activated a hotkey of somekind... or...?
    I can't associate this problem with any program installation or update - had not done anything when I first realized my number of buffer problem.

    Windows Vista SP1 - explore 8-64 bit os - computer toshiba satellite P500 laptop. Computer is less than 1 mth old

    + Thank you for your help +... I really miss my keypad use and it is frustrating to have close the active window/tool "Search/search"

    I'll probably need the KISS method - I am not real computer savvy.

    > 1. Keys not 'use' numbers... when any number on the numeric keypad is indexed it activates > field 'Search' or 'search' to the program I use.
    > 2. Keypad won't "unlock" - light is always turned on.

    Maybe your first question has something to do with the second point and the fact that you can not unlock or disable the numeric keypad.

    Have you tried to activate and deactivate the keypad or by pressing the NUMBER lock using?
    Check it!

  • Synchronized not regenerated multifunction AO AI

    I am trying to build a VI that reads and writes a signal simultaneosly to use as a test of the device. I want the signal to be non regenerative and I want to read 80kS/s with at least 4096 samples.

    I built my VI begin with the standard model of producer-consumer and the example AO AI multifunction located under "hardware input output/DAQmx/synchronized/multifunction" but with minor modifications to make it non-regenerative. This however does not work because there seems to be a discrepancy between the two signals after the first few iterations. Initially the signals overlap, but then I get a period. For example if the sample rate and of the samplesize 1000 superimposed signal for a short period when yields but then a delay of environ.25 seconds appears. There are also various errors of buffer all indicating that the buffer has been closed or crushed before that samples could be read. If there is someone who would know how to solve this problem, I would be extremely grateful.

    I'd appreciate also all tips on how to be able to update the sampling frequency and size in real time.

    Best regards

    Felix Turner

    Hi Felix,.

    Welcome to the forums EITHER!  The part of the synchronization of your code seems pretty good assuming tasks of HAVE and AO are running on the same device - you are triggering one task out of the other, so they should start at the same time (if they are the same device, the time will be the same for each clock so you shouldn't get any drift over time).  Another way to synchroinze the two tasks (because they're going at the same rate) would be to simply share the sample between tasks clock.

    A few problems I see with the code:

    I think that problems of buffer problems come from the fact that the tasks of HAVE and AO are in the same thread.  DAQmx Write is a blocking call, so in your code it prevents DAQmx called Read until enough space became available in the buffer output to write the desired number of samples (1000 in your case).  In the meantime, looks like the analog input buffer is completely filled.  You could try to increase the size of the buffer, but you can also consider the two tasks running in parallel loops.

    In addition, samples of reading (-1) will return some data are in the input buffer.  It would probably be a different number of the number of samples that you write by loop iteration, so the data may appear sync when it is read.

    With respect to the number of samples to read and write by loop update, it is editable running so everything you need to do is put the control inside the loop (you can put a local variable outside of the loop to the initial settings).

    The PCI clocks rate, I / ao sample is not modifiable at run time, but what you can do is to use a meter to generate a sample for both tasks clock (just use the internal output as the sample for each task clock).  This example shows how you can change the rate of a performance counter on the fly.

    Put it all together, here's what I'll try:

    I would put both DAQmx tasks in parallel loops. Instead of sharing a trigger of departure between the two tasks, use one of the counters to generate a variable frequency sampling clock to use.  The tasks of HAVE and AO must begin before the meter.

    You should also probably use the number of samples to read the DAQmx Read entry so that each iteration of the loop will be matched with the data written in the previous iteration of loop AO.  If you are not careful when implementing the variable number of samples to reading parameter, you could end up with a race condition where single loop updates to read samples and the other is not updated until the next iteration.  Usually Of functional Global Variables are used in situations like this, but another idea might be to adjust the size of the buffer AO so that we can ensure that the loop AO will always run before the loop to HAVE it.  You can place the control inside the loop of the AO and the local variable inside the loop to HAVE it.

    Feel free to post if you have any questions!

    Best regards

    John

  • Difficulty to read the instrument of series and acquisition of data simultaneously.

    Greetings,

    I have some trouble getting my VI read from my data acquisition and instrument of the series at the same time.  If I run the Subvi simultaneously (i.e. subANG runs in a window and subVEL is running in a second window) both return the correct values and behave as I expect.  However, if I call the Subvi in a society mother VI and try to run them both in the same loop structure subANG gets stuck and won't be reprobed with a signal change.

    I also tried to use a stacked sequence or plate to separate the execution of subVEL and subANG, but I still get no response to subANG.

    The point is is that, if I run Parent.VI in a single window and then creates a copy of subANG (call it '--copy' or other) and run it in a second window, Parent.VI behaves properly and will update the readings as they appear in '--copy '.

    I enclose 3 files.

    (1) subANG.VI - this bed an an inclinometer RS232 signal.  The signal is refreshed every 10ms or more.

    (2) subVEL.VI - this bed raw tension of a channel on the acquisition of data, calculates the average then that converts into a pressure difference and finally a speed based on the pressure and temperature inputs.

    (3) ParentVI.VI - they simply call and displays the Subvi

    My guess is that it's a buffer problem, but I am confused.  Someone out there in Labview Earth knows why this might be happening?  Suggestions welcom.

    It is not an instrument of series.  It is a UEI PowerDAq with their typical A/D and the cable.

    I found away to make it work by placing subANG and subVEL in some time different loops side by side in ParentVI.

  • LiCor series - hex 0xBFFF006c read errors

    Hi all

    I tried these last days develop a series VI to read the data of a 820-LiCor-CO2 gas Analyzer. I know what is sent to the device to a request to send data to the computer and how to analyze these data once it gets in return. Its manual settings are Baud: 9600, data Bits: 8, parity: None, of Stop Bits: 1 and flow control: No.  I had problems with the hexagon-0xBFF006C "a time-out error occurred during the transfer. A character not read in the material before the next character arrived. "In the database read/write vi provided with labview, this error occurs each time series. In mine, I joined, I would get this error once every nine or 10 times by operating once every time. Sometimes the error would be to present the first time that I pressed the race, but after I click OK, the next run will work fine until about the tenth times.

    Does anyone have any idea why this could be implemented? I really just need to be able to read the pressure, temperature and CO2 with precision as well as several times without problem.

    Thank you very much!

    Ok. So I solved my problem with a co-worker, but he had a miserable time. I think that the VI attached work a LiCor-820. I think that you can fix the buffer problems of overflow to everything in a while loop with an error handler. Basically, the error handler can prevent display errors, and at the same time, it can also make a stop or continue the condition for the while loop. I chose to continue after deletion of the read buffer until it wasn't a mistake. I took a loop because the data on the first launch is usually just a partial reading of the data set is past the LiCor. I know that this probably isn't the most elegant solution, but it works for this situation so far.

    Thanks for the comments and suggestions of each.

  • Can't get netgear wireless-N 300 USB adapt WNA3100 to work continuously, only work occastionally

    I have problems with the N-300 USB Netgear WNA3100 wireless card to work without interruption. Example: by clicking on any video on sites such as youtube or similar, video will stop constantly to the buffer. I just got this computer well tuned up and it worked fine afterwards at (Staples, where the update has been made.) Since bring it back I have continued to have the same 'video-stop-to-buffer' problems that I had before its finalization. Please advise I would be very grateful.

    Update your netgear firmware.  How instructions are available on the website of netgear.

    If this does not help, at least you have eliminated a problem of portntial.

  • Diablo 2

    Diablo 2 won't work, its installed but will not fire place i ned a patch?

    Hello

    Here is a link that should prove beneficial to get a resolution to your inquiry.

    Card game

    http://us.Blizzard.com/support/article.XML?locale=en_US&articleid=20767

    Support Diablo Forum

    http://forums.battle.NET/Board.html?forumid=12014

    Patch for Diablo 2

    http://us.Blizzard.com/support/article.XML?locale=en_US&articleid=20758&rhtml=true%3Frhtml%3DY

    -Try to download from battle.net.

    http://social.answers.Microsoft.com/forums/en-us/w7install/thread/ec352f34-890F-4C8E-8894-976e3d3dd318

    Windows - Cleanboot isolate 3rd party interferences

    Doesn't appear that the game is compatible on the Windows 7 website.

    1.) make sure that you are running at least v 1.12 so you can use the now-legit "NO CD * fix, from the CD often causes a read buffer problem in W7and to have all of these files on your hard drive will result in increased performance.

    2.) , YOU MUST run Diablo II in compatibility mode for * Windows XP SP 2 * (running SP1 or 3 will cause errors during the game)

    3.) run the shortcut as an administrator (current run as a local user causes W7 limit its * AUDIO * functions... because he thinks that the game attempts toexclusively access your audio device) and while you're there, check the box that says * disable desktop composition *. This will allow the 3D effects of Diablo II return correctly. It temporarily disables Windows Aero and other Visual effects until the game was left. These effects are not compatible with the game.

    4.) pass your Diablo 2 folder and change game.exe for the same parameters (run as admin, Compat. mode of XP SP2, disable the composition of the bureau)

    I hope that this information is beneficial.

    Thank you

    Aaron
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

Maybe you are looking for

  • I have Cloud and Outlook 2016

    I have Office 2016 on my computers that installed Office 365. And so I have my calendars and contacts on Outlook configured to synchronize with I Cloud. I know that many people have the same problem I have in what FEI an Office Update installed in Au

  • Satellite L555-10R connect with TV

    Hello Should what kind of cable I connect my laptop with TV?

  • Pavilion p7-1254: I have added a second hard drive then how closely I put it to the top and use it?

    A year or two ago the original HD died and I took it to a shop and they replaced and now I did know they put in a Western digital 320 GB which is full now. so, I got a seagate 2 TB and have it instaled in the case and now I need to know how to set up

  • ROOT\SWSKNDISMP\0000

    Hello Have a strange problem in a XP Pro machine to work.  User connects, all programs loading completed, I click on my computer and then it freezes for several minutes.  Right-click on my computer, same thing.  Try going to start/run, same thing. I

  • How to remove pxx.exe, pxw.exe, and sshnas21.dll error?

    Can someone help me remove these errors of my Matthew? (error pxx.exe, pxw.exe, sshnas21.dll) It has been occurring after that I tried to download the product adobe on an unknown site.