Fehler nach "Samples per Channel"

Hallo,
Ich verwende das cRIO System NI 9074 mit AD-Wandlermodul NI9239. Hier sollen Daten kontinuierlich gewandelt und anschließend gespeichert werden. Allerdings gehen hierbei immer nach einer Sampleanzahl von „Samples pro Channel“ Daten verloren. Dies wird auch im in LabVIEW angezeigten Graphen sichtbar. Bei einem Sinussignal am Eingang ist dann ein Sprung erkennbar.
Der Speicher des FIFOs ist großgenug, zumindest wird mit kein Überlauf angezeigt. Kann mir irgendjemand weiterhelfen? 
jukr
P.S. Ich verwende LabVIEW 2010
Attachments:
FPGA.vi ‏77 KB
PC.vi ‏365 KB

Hi Jukr,
it is useful to write forum posts in english; you will get many more replies :-)
I don't expect the error to be caused by the measurement. Maybe there are some parts in the network streaming that are not stable enough?
Just have a look at the following example and compare it to your network connections. You might find it useful!
Reference Example for Streaming Data from FPGA to cRIO to Windows
If the example won't help you finding the error, please attach your project.
Have a nice day,
Stefan Egeler
NI Germany

Similar Messages

  • Multiple channels acquisition and Number of samples per channel

    Hi,
    I'm a new labview user and I need some help in trasposing an old traditional NI-DAQ acquisition software in a NI-DAQ-mx one.
    I followed the tutorial (#4342) but I found a problem with Analogue 2D DBL Multiple Channels Multiple Samples DAQmx Read Vi.
    I'm trying to acquire 8 voltage signals from a NI-USB-6341 device. When the Number Of Samples Per Channel I set is below the number of channels (8), the software acquires only a number of channels equal to the number of samples per channel I set.
    Is that a normal behaviour?
    Thank you
    Daniele

    This is my code. The problem is the same with or without the code for the scan backlog indexing.
    Tomorrow I will try with the code from the example.
    Thank you
    Daniele
    Attachments:
    acq code.jpg ‏119 KB

  • Sample clock vs sample per channel per second

    Referring to this link http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/dbe7ac32661bcf9b86256ac000682154?OpenDocument
    What's the difference between sample clock and sample per channel per second? Looks the same to me.

    The sample clock is the clock that sets the timebase for channel operations on the board.  The samples per channel per second is the actual rate at which data can be transferred on a particular channel.
    Alex A.
    Applications Engineer

  • How to use ni-6008 and build a four channel data acquisition at a rate of 250 samples per channel and display all the data in a waveform chart

    how to use ni-6008 and build a four channel data acquisition at a rate of 250 samples per channel and display all the data in a waveform chart 

    Hi kdm,
    please stick in one thread for the same topic!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Sample per channel and sample to read

    Hello everybody
    I am new in LABVIEW and I have some difficulties with something.
    I don t know exactly what is the difference between the sample per channel et the sample to read. I believe knowing that the sample per channel is the size of the buffer which is more big than the sample rate but I don t know what is the sample to read.
    I ve tested with different sample per channel and sample to read. Sometimes I have an error and sometimes know and I would like to know why. If you have any example for I understand better, it will be great.
    I really need to understand this part for my project
    Thank for your help
    Romaric GIBERT
    Solved!
    Go to Solution.

    Hi Roro,
    As you mentioned, when acquiring continuous samples you can specify the sample buffer size by placing a value at the input "samples per channel" on the timing vi. The "number of samples per channel" input on the read vi which automatically names a control/constant with "samples to read" specifies the number of samples you wish to pull out of the buffer in one go when reading multiple (N) samples. This link may provide a bit more clarification. I have also attached a good example from the NI example finder which you may find useful to explore. I'm assuming you are using the DAQmx driver set so please let me know if this is not the case, but the same principles should apply either way.  
    This therefore means when sampling at a given rate, you need to ensure you are pulling data out in big enough 'chunks' to prevent the buffer from overflowing (which may well be causing the error you are seeing). Conversely if your sampling rate is slow and your read vi is having to wait for the number of samples to read you specified to be available, it may throw a timeout error. You can avoid this by either increasing your sampling rate, reducing your samples to read or increasing the timeout specified at the read vi input (-1 means it will wait indefinitely).
    Let me know if this helps and how you get on.
    All the best.
    Paul
    http://www.paulharris.engineering
    Attachments:
    Cont Acq&Graph Voltage-Int Clk.vi ‏27 KB

  • Samples Per Channel Matter when Taking Continous Samples?

    So noob question of the day. I have been playing around with the lightbulb feature. Anyways, I notice my array size is greater than my samples per channel input. Does the DAQmx sample clock even look at the samples per channel input when set to continous?

    Did you check the help file for the DAQmx sample clock function?
    "samples per channel specifies the number of samples to acquire or generate for each channel in the task if sample mode is Finite Samples. If sample mode is Continuous Samples, NI-DAQmx uses this value to determine the buffer size."

  • Buffer size and samples per channel

    I have a question regarding the allocation of the output buffer. I have
    a digital I/O card PCI-6534 and I use the driver NI-DAQmx 7.4.0f0. I
    would like to generate a digital output using different clock rates.
    For example, I need to write 500 samples at 1000 samples per second and
    other 500 samples at a rate of 10000 samples per second. the simplest
    solution is to prepare two different waveforms, write the first one on
    the buffer and generate the output. Then I can load the second waveform
    on the buffer and generate the second output. In order to minimize the
    delay between the two output sequences, I would like instead to write
    the buffer once. I tried to set the buffer size to 1000, and the number
    of samples per second to 500, but it doesn't work. There is a way to
    set independently the buffer dimension and the number of samples which
    have to be generated?

    I can post the whole thing but I'll talk a little about it. It's a producer consumer loop with a continuous analog input sample from external clock program in the producer loop. Right now the consumer loop has a simple write to spreadsheet VI in it but eventually I want to average each revolution (well, two since it's a four stroke but that's neither here nor there) of pressure traces and spit out a single curve.
    The wiring is simple. I have a voltage supply feeding the encoder and the quadrature A input on PFI 8 of the 6212 DAQ. I also have the Z index plugged in but nothing else to it. The analog input is a BNC right to AI 0. I can make a diagram if you want one. I've scoped the rotary encoder output and it looks great, very square with small relative rise times.
    Attachments:
    Yanmar Program V2.vi ‏46 KB

  • Acquire, display, and write data at 50 samples per second

    I have a vi running on a PXI which samples data using two 4220's (all 4 channels) and one 6031 (only 6channels).  I am acquiring data at 100 samples per second, but only need to write the data out at 50 samples per second.  The data needs to be displayed at a minimum of 10samples per second.  The problem is that the VI can not get 50samples per second writen to the file, it writes about 20 to 30samples per second.
    I dont know if the issue is displaying the data which is holding up the writing at 50samples per second or if it is something else in the VI.  I have moved the writing of the data to the outside of the while loop, but this did not help enough to reach 50samples/sec.
    Is it better to change the waveform data types to dynamic waveforms?  Would this increase speed of operations?
    Galen
    Attachments:
    ATM_FrictionTests_v1.2.vi ‏375 KB

    Galen,
    Looking at your vi, I would recommend writing to your file in a different way.  The function you are using is actually opening, writing, and then closing the file every time you call it.  This greatly increases the amount of resources being used.  Take a look at the Cont Acq to Spreadsheet File.vi example and note that the file is only being opened and closed once.  The data is being written to the file during execution of the program, and then closed when the app is done running.  The example is done in traditional DAQ but you should be able to do something similar with DAQmx.  Try this and let me know if it helps. 
    Regards,
    LA

  • Error -201402; how do you programmat​ically determine 'Samples per file' size

    Error -201402 - The samples per file is not divisible by the file write size. The error also give a suggested value to use, which is helpful, and i have amended by code to suit this value.
    I am writting to a tdms file in chunks, such as the first 2.5-5 seconds save the data (sampled at 1M samples per second per channel) to tdms files named initial.tdms, initial_0001.tdms (need to be able to split the files due large data size) then capture the remainder, such as 150 seconds of data (sampled at 1000 samples per second per channel) into a single file, remainder.tdms
    Example Inputs to the vi will be:
    Initial sampling rate = 1M
    Initial acquire time = 2.5 seconds
    Remainder sampling rate = 1000
    Remainder acquire time = 150 seconds
    What I want is to be able to programmatically set Logging.SampPerFile and maybe Logging.FileWriteSize to improve maintainablility and code reuse (I have a number of difference sequence patterns to generate/ capture.)
    I am also developing this code on a debug system which may have a different hard drive volume sector size so need to be able to derive the FileWriteSize based on this value, but don't know how to get/view this hard drive info.
    How do I go about this?
    Cheers,
    Helen
    CLD, CTD

    Thank you for your help.
    The Get Volume Info does indeed give me the Sector Size, however i still had problems with working out what multiple of the sector size to use.
    Based on "Samples per file - must be EVENLY divisible by the file write size" and "File write size - must be EVENLY divisible by the sector size" I have derived te following code snippet which ensures that the calculated SampPerFile is divisible by 4 (2 lots of evenly divisble by).
    Whilst this appears to work I wonder if anyone could comment/ suggest any pitfalls etc.
    Regards,
    Helen
    CLD, CTD

  • How to Extract the Freq List, Cycles per Freq and Samples per Cycles of sweep waveform

    How to Extract the Freq List, Cycles per Freq and Samples per Cycles of sweep waveform
    I want to extract the freqency distribution, cycles per freqency, and samples per cylce of swept waveform, in order to output the same of swept waveform with I have acquired by NI DAQ card, tks!
    owen wan
    Attachments:
    Untitled 1.vi ‏2333 KB

    Look inside the palette called Signal Processing - Waveform measurements.  There are a lot of functions here that you can use to get the information you desire.  For instance, the Extract Tones function will output an array of clusters, with each cluster element giving the frequency, amplitude, and phase of the signal component.  Go through the entire arry to see each frequency component of the complex waveform.
    Also, in the Waveforms palette there is the Get Waveform Components function that will give you t0, dt, and Y components of the waveform.  1/dt should give you the sample rate.  See attached VI.
    - tbob
    Inventor of the WORM Global
    Attachments:
    WfmInfo.vi ‏4658 KB

  • Open a HDR 32 bits per channel file in photoshop elements.

    Photoshop elements 4 with a hdr 32 bits per channel file in rgb mode opened and being converted to 8 bits using the built in hdr conversion dialog.

    If you want to open RAW files with JavaScript I would recommend you record the process with ScriptingListener.plugin and use the resulting code.
    It is possible with the Document Object Model, too, though.
    To see the properties you can refer to ESTK Help > Object Model Viewer or Photoshop-CS6-JavaScript-Ref.pdf.
    But if Muppet Mark’s advice applies maybe you can stick with AppleScript for this.

  • Speakers Rated at 100W at 8Ohms, Receiver 120W per Channel Question

    I've read up on the latest midrange AV receivers and I've narrowed it down to two with a preference for one more than the other.
    My preference is the Pioneer VSX-1019AH-K since it is very highly rated in terms of overall sound and video output to the TV.  The only drawback is that it is rated at 120W per channel.  The older Onkyo speakers that I have and would like to continue to use are only rated at 100W max power at 8Ohms.
    Currently my second choice would be Onkyo's TX SR607 received decent reviews.  It is only rated at 90W per channel which works for my speakers, but I've read that the video output to the TV is a little lackluster. 
    My question are:
    1.  Will I be blowing out speakers if I choose the Pioneer?
    2.  If you answered "yes" to number 1, does this happen under normal listening volumes or would I have to "turn it up to 11" in order to damage my underrated speakers?
    I generally keep my volume level's down since I live in a townhouse community and I want my neighbors to like me.
    Thanks, any input would be helpful.
    Mike

    You could possible blow them but you would have to turn them up pretty loud to start pushing 120W through them.  The rated power is a little misleading, it may do 120watts but thats usually in 2 channel mode and rarely will go that high in full surround.  Most surround sound recievers at 75watts or higher will do just fine.  As for the SR607 it is quite a nice reciever for more info:
    http://www.soundandvisionmag.com/features/3168/first-listen-dolby-pro-logic-iiz.html

  • Why does PS show only 256 color Steps in a 16 Bit per channel workflow

    Hi forum-members,
    I am a bit confused about the way PS (CS5) acts with colors when editing pictures (RAW-converted) in RGB 16 bit per channel mode.
    (please don't mind, if I am using some wrong English expressions here - since the PS at my work is German)
    --> I would expect, that I would be able to select from a variety of 65535 (=16 Bit) color steps for every R - G or B channel ... bus PS still let's me select just 256 (=8 Bit) colors per channel (in the color palette on the right - also the "color pickup tool" will show 8 Bit values - the image certainly has 48 bit color depth).
    Why am I asking? I will get a display capable of displaying 10 bit colors per channel in PS (NEC PA241W, ATI FirePro V5800, DisplayPort --> 30 Bit colors in Adobe PS) next week. And thus I need a better color resolution (which would mean: 16 Bit in PS) to avoid banding-effects.
    Does anybody know why I can't select more colors here or how to change this behaviour?
    Thank you very much in advance for your answers!
    Blendax74

    Hi Mark,
    I already managed getting it to work :-)
    First I did not succeed and I had to reinstall my system (because of driver issues of the remaining nVidia driver - my old card...).
    After reinstallation and performing all necessary steps (as descripbed here: http://www.amd.com/us/Documents/48108-B_ATI_FirePro_Adobe_10-Bit_FAQ_R5_Final.pdf) I now get 30 Bit color ...
    ... which is AMAZING! You really can see the superior quality in almost every picture. Colors are very accurate and especially in dark shadows or skys you get a much better color rendition (now its indeed hard to see the color values of a color gradient anymore...).
    Also have a look at this page related to 10 Bit output: http://www.amd.com/US/PRODUCTS/WORKSTATION/GRAPHICS/TOOLS/Pages/tools.aspx
    And don't forget to download 'ramp.psd' from the page above - it's a good tool to proove wether everything has worked - if you're really running on 10 Bit you will not be able to see any banding within this picture (with 8 Bit you'll see a few vertical bars... moving up to 10 Bit will result in a smooth gradient)
    As with every good news there are also some annoyances (at least till now, since I think it's "only" driver problems ... so there's a good chance, things will change further in the future):
    - First of all: 10 Bit per channel ONLY works with the "professional grade" graphics cards (ATI FirePro), don't try this with a Radeon type card - it simply won't work. Similarly nVidia adds 10 Bit support on display port only on the QuadFX series (very expensive!). And I just can speak for ATI FirePro cards, since this is, what I am using here. Since the cards are physically identical to the "gamer" versions I think this is a way to promote their "professional grade" cards by the vendors. (BTW: all supported ATI cards are included in the pdf mentioned above)
    - ATI: with the latest ATI driver (8.7xx) will loose some abilities (OS is Windows 7, 64 Bit): first, you will loose your Aero display features, since there's some background process running that prevents Win7 from using Aero. I guess, this could be due to a lack of alpha blending capability of the driver (or hardware?) when used in 10 Bit mode. If you don't need 10 Bit it can easily be turned on and off (+ Reboot), so that the effect is NIL in "normal" operation mode.
    Second I recognized some trouble using certain apps: especially playing BluRay get'S trouble, for HDCP is not detected anymore - the BluRay player tells, that HDCP is not supported by the monitor. Again, the error is gone if switching back to 8 Bit mode.
    - There's no way to select the "new" colors in Adobe PS (this is - in my opinion - a bug in Adobe PS and should be fixec someday). I "worked around" this by generating a 16 Bit RGB picture with a smooth gradient --> now you can pick even the finest colors using the pipette tool... which works fine.
    After all: working with 10 Bit p.C. is a great pleasure! Of course you need 16 Bit RGB pictures (which are huge sized) to get the plus in color rendition - but I am well willing to pay the price - the images are just looking great (and the PA241W is the right tool to get there - a very well made monitor! Really worth the price - equally addictive like Eizo's GC series).
    Hopefully I could help you - please don't hesitate to reply if you need further assistance!
    Best regards
    Roland
    P.S.: Yes, this forum is WAY better than most on the net - very reliable and professional support! With support of "real" Adobe engineers - congratulations, Adobe! Very much appreciated.

  • Cannot Change From 16 to 8 bits per channel

    I have never had this happen before:  I cannot change the image I am editing from 16 to 8 bits per channel.  Also odd is when I click on an adjustment layer I have created it is not highlighted in blue. 
    Thanks

    See if your in quick mask mode.
    Icon at the bottom of the toolbox and look at the top left of the document window and see if it says quick mask.

  • Set variable samples per chanel from counter

    Hi, all. I have to set variable samples per chanel for sample clock. I want to take that samples from counter input with different number of edges for every second (different speed of metal plate). What can i do for that task? Is there a god example for this problem?
    Thanks.

    Hi, GerdW. Thanks for reply. I want Sample Rate and Samples per Chanel to come from couter. CI is a metal plate with 52 tooth. The speed of metal plate is 500 cycles/min but it is not constant ( may be 490-520). For example rate of cycles is 500/60=8.33 cycles/sec. Rate of edges (tooth) is 8.33*52=433 edges/sec, but when speed goes over or under 500 the rate is different. How to put that variable samples in sample clock on AI?
    P.S. Matlab script is to calculate max samples per chanel for mean function in while loop. In the picture control "Speed cycles/min" is that 500 cycles/min speed. I have to put in that control the variable rate of edges. Other solution is to set 1 sample per edge, but i have problem here to .  

Maybe you are looking for