USB 6008 DI sampling frequency

Hello

I would like samples N to a digital input on 6008 channel. In the port of GOT it, it is possible to put samples/channel and sampling frequency, but I couldn't find a way to do the same for the channel of DI.

If I use MAX to read the N samples on request, I can increase or decrease the number of sampels to read but rates of mutation has no effect.

using the:

DAQmxErrChk (DAQmxCfgSampClkTiming (g_TaskHandle, "", samplesPerSecond, DAQmx_Val_Rising, DAQmx_Val_FiniteSamps, sampsPerChan));

also gives me error.

I don't know who do :-(

Concerning

RB

Hi RB,.

Digital I/o on the box USB-6008 are "static", meaning that they are controlled by the software. There is no sample clock to set the time a sample is read/written. Your software provides synchronization for DIO.

Measuring mode 'Samples on request' refers to avoiding.

Hardware timing (a sample clock) is available on most of the products OR providing DIO. As a low-cost product, the USB-6008 housing does not hardware timing for DIO.

Best regards, Topp

Tags: NI Software

Similar Questions

  • Reading USB-6008/DAQmx sampling

    I use LabVIEW Student Edition 2009 with an acquisition of data USB-6008 on a Windows 7 computer.  I must confess that I am rather self-taught in LabVIEW and may lack in fundamentals.

    I wrote a code to move motor back with a sine wave with the 'Signal to simulate"VI and VI"DAQmx Write. "  I think that this part of the code is OK but its probably sloppy.

    The part that that concerns me is the "DAQmx Read" part - I use this to get a feedback of the motor position on an analog scale 0 - 5V via the port of AI1.  I also use this DAQmx Read to get another feedback voltage from a force sensor that feels the force in a piece of material set by the engine.  I want the information to all-terrain such as graphs or tables with the last 30 seconds, and then a value of information, but that's all I want to see since this cycle repeats for hours.  I also need to process this information - if the strength of the material gets high, I need to stretch less etc.  So far, everything is working fine, but now I want to use the "peak detector" VI for expressly that the "peak" of the sine wave is part of a certain range of strength and the '' Valley '' falls into a second range of force and clearly since I read this information as a single integer/sample there is no 'memory' of the last seconds in the form of a table of examples past or a waveform or something like that I can't detect the peaks.

    So my question is - should be sampling this information differently to temporarily store information (such as a waveform or something?) or should I use individual samples to build a continuous array for the last 30 seconds?  In other words, what is the best way to read this information in a way that will make it easy to detect the peaks on the final seconds, but not to store hours of endlessly repeated information?  I also want the release of LabVIEW and feedback from the system graphics to match so that the signal sent to the engine for the same positional signal back to LabVIEW from the engine.  I should add that I do not know if the system works in real time or on a little late, but nothing like over delay of 30 seconds.

    I have attached a code that I use to calibrate my system - is not the same as I mentioned earlier, but things 'DAQ read' are the same and you get the idea with the rest of it.  I can also reach more detailed code if it would help.

    Yet once again, I'm sorry for my skills of coding bush-league and thanks for any help!

    -Chris

    If you always use a waveform chart to display your data and your happy with length of time of the chart, you can use the 'Historical data' property node for recover your data from 'short term' gathered.  From there, you take the data and make a type of waveform data using the 'build' primitive waveform.

  • Sampling frequency for two different routes for acquisition of data USB-6009

    Hello

    I use a box USB-6009 and incorporating the "daq assistant" to change the sampling frequency.  I'm trying to find a way to set the sampling frequency to two unique values for the two separate channels.  I tried implementing two assistants daq and different for each channel sampling frequency setting, although it does not work.  Is it possible to set the sampling frequency for all channels, and then reduce the rate for another channel - or an alternative?  I would be recognizing any input on this matter, thank you!

    -Anthony

    All tasks on a DAQ card using the sample clock should use the same clock.  Therefore, you cannot have two tasks on the same sample of DAQ card at different rates.

    Alternatives would be:

    1. to combine all channels in a single task and to accept additional data

    2 get an additional DAQ card to use at the same time

  • HAVE sampling frequency is divided by the number of channels + 1 for simulated ENET-9213, WLS-9213 and USB-9213

    Hello

    In the code in the example attached, I create a task with a single channel of AI.

    I get the maximum sampling frequency using DAQmxGetDevAIMaxSingleChanRate (or DAQmxGetDevAIMaxMultiChanRate), both return the same value of 1351 s/s.

    When I try to configure the sample calendar using DAQmxCfgSampClkTiming at the maximum sampling frequency clock he does not accept the rate and returns the following error. Note that the error message shows 2 channels, even if only a channel has been added.

    OUTPUT:
    DAQmx error:
    Sampling frequency is greater than the maximum sampling frequency for the number of specified channels.
    Reduce the sampling frequency or the number of channels. The increase in the conversion rate or
    reduce the time of the sample can also mitigate the problem, if you define one of them.
    Number of channels: 2
    Sampling rate: 1.351351e3
    Maximum sampling frequency: 675.675676

    Why the device driver thinks I have 2 channels in the task, when a channel has been added?

    Please find the code to reproduce this problem attached.

    Kind regards

    whemdan

    The MathWorks

    Hello w,

    By default, the ENET/WLS/USB-9213 in NOR-DAQmx module has the AI. AutoZeroMode the value of the DAQmx_Val_EverySample property. This causes NOR-DAQmx acquire the channel of the internal path of the unit (_aignd_vs_aignd) on each sample to return more specific measures, even if the operating temperature of the device moves over time. If you need the sampling frequencies higher than this allows, you can call DAQmxSetAIAutoZeroMode(..., DAQmx_Val_Once) (who acquires the formatting string when you start the task) or DAQmxSetAIAutoZeroMode(..., DAQmx_Val_None) (which disables the setting entirely).

    Note that for measures by thermocouple with cold junction compensation sensor of the 9213 NOR, NOR-DAQmx acquires channel built-in CJC (_cjtemp) on each sample as well, for the same reason.

    Brad

  • Frequency of maximum output with USB-6008

    I have a digital circuit containing 3 exits, 3 inputs digital and analog 1 entry in labview with my USB-6008. When I connect to the entrance (via the DAQ assistant) analog, the output frequency is reduced to a maximum of 27 Hz, but I need 50 Hz. is possible to do?

    Ah.  You'll need a DAQ better than the 6008, to do.

    There is no train generation feature buffering or the pulse on the 6008.  The outputs are all timed by the software, you cannot build a table and tell the 6008 in the output array.  Out of the 6211 must be able to produce this signal.  Series X-series Renault will do what it takes; the USB-6341 is probably your best option.

  • The sampling frequency is divided between channels USB-6211

    I use a USB-6211 DAQ card.  The jury is announced with a rate of 250 kech. / s.  I started to take action with 2 channels and could not get the frequency of sampling of 125kHz, then when I tried to make measurements on 5 channels, I could get a maximum of 50 kHz sampling frequency.  This figure of 250 kech. / s is really the sum on all channels, or is there a way to get that channel?

    I have only a simple Laview program with a while loop, 1 assistant DAQ entry with 5 channels, assistant DAQ 1 exit with 1 output channel, box 'Relaxation and door' to catch a progressive input signal, a smoothing filter and graphics.

    250 kech. / s is an aggregation rate as shown on the first page of the document specifications.  This means that the device has a single A/D converter that is shared by all channels under analysis.  According to th etime to the multiplexer and all time for the internal amplifier, your maximum rate may be slightly less than 250,000 / N where N is the number of channels.

    Lynn

  • Sampling frequency of HAVE is incorrect for simulated ENET-9213, WLS-9213, and USB-9213

    Hello

    ENET-9213, WLS-9213 simulation and devices USB-9213, I'm able to correctly get the sampling frequency of I = 1351 samples/s using DAQmxGetDevAIMaxSingleChanRate, which is incidentally on the value of spec'ed of 1200 s/s.

    However, when I create a task and add a voltage channel and then HAVE the sampling frequency of the task of query, I get a sampling rate of only 9 samples/s. I tried the same code with other devices and I get the sampling frequency corresponding to the device data sheet, it seems THST this problem is limited to 9213 devices.

    Why sampling returned by the task using DAQmxGetSampClkMaxRate rate returns than 9 s/s.

    And why the rate of conversion of DAQmxGetAIConvRate only 18 s/s.

    I enclose the test code which may be used to reproduce this problem.

    Kind regards

    whemdan

    The MathWorks

    Hello

    When I tried this with a USB-9213 simulation, I used the Sample clock Max Rate, as well as the Rate.vi of AIConvert:Max property node.  I could see that for 1 channel, I could spend up to 675.67/s, and I couldn't for 16-channel get79.49S/s (which total is equal to 1271 S/s, which is in the specifications).  The multichannel and single channel, I could get an AIConvert Max Rate of 1351.35.

    Something that could happen is that you do not explicitly set this device runs in mode high speed.  You'll want to set the property Get/Set/rest AI_ADCTimingMode channel at high speed, and you should see much better results in this way.

    Something else to note - I use DAQmx 9.0

  • Data acquisition with USB-6008 using C++

    Hello

    I am trying to use USB-6008 to collect analog data without using Labview, since I can't afford the lincence. I searched in the C++ provided with product samples and found "Simple example of analog input.

    The compiler I use is codeblocks instead of visual studio (once again for monetary reasons). The code seems to works since when I run it with the USB-6008 box connected, he wrote "gains 1000 points.

    I have 3 questions relating to the use of this code:

    1. where are stored the 1000 points?

    2. How can I modify the code to specify the time acquisition and the frequency of acquisition?

    3. How can I change this code sample points simultenously with 8 analog inputs?

    Thank you for your help,

    I'll try to add any clarification if necessary.

    Albany

    Your questions are answered in help for c programmers.

    1000 points are in the variable array of points called 'data '.

    The sampling frequency is set to sync.

    The number of points read is defined with the function of reading.

    Read channels are defined with the function channel set. To read multiple channels, use syntax such as Dev 1 / ai0:3 for the first 4 channels.

  • How can I improve the rate of acquisition with daqmx and usb-6008?

    Hello

    I am trying to acquire data of analog voltage with a USB-6008. I'm under Labview 8.5 student on an HP laptop with a 1.33 Ghz cpu and 736MB RAM, apparently. I tried using the Daq assistant and the low-level Daqmx functions. My best results come with a task set in MAX for my analog input, and using the function 'Daqmx read' the 'unique double 1 d sample' value in a while loop. I insert the values returned in a table which built in the while loop, and then when I'm done, I check the number of samples in the table. In the test VI attached, I also use the time to Get before and after all loop. The best sampling rate I made using this method, is around 40samples/second. I have attached a VI below that illustrates this concept. In my actual application, the data acquisition code runs at a time while loop with 1ms, parallel to other code that controls the device I'm collecting data of. The sampling rate is roughly the same for my test below VI and my application program.

    The 6008 datasheet gives the sampling frequency maximum 10 kHz. I'd be happy with 2 to 2.5 kHz, or as soon as possible; I'm sure that I can achieve a little more than 40 Hz. My first idea was tied to the hardware, but the 6008 cannot make acquisitions NI hardware.

    My question is: How can I implement a faster sampling of analog voltages to a USB-6008 in LAbview? If I can't do it, is there another way I can taste the data more quickly?

    Thank you

    -SK-

    To the best of my knowledge, the USB-6008 can do timed equipment acquisition. Don't forget that this is a multiplexed device, so if you add 8 channels so the maximum you can set is 10 k/8

    If you are new to LabVIEW, I suggest that you try this sample program first

    \examples\DAQmx\Analog In\Measure voltage. llb\Acq & Graph tension-Int Clk.vi

    Amit

  • AO. MaxRate, AO. MinRate, AO. Properties of voltage. RNGs for hardware DAQ USB-6008

    Hello

    in one of my report, I use the AO. Property of Voltage.Rngs to see if the selected DAQ card takes in charge the application voltage range. This works very well for my PCMCIA card as well as a PCI card. Now run the same VI with a USB-6008 device, this property gives all the return values. In addition, the report of AO.max.rate and AO.min.rate of the '0', the output is-200197 error properties. I use DAQmx as it is supposed to support the same functions for all DAQmx devices. Can someone please tell me what wrong here and how can I get around this?

    Best regards

    Gabs

    AO.min.rate and AO.max.rate are 0 and error-200197 back because the USB-6008 case supports the outputs analog hardware timed.  The description of error is "device does not support this property."  There is an entrance to the knowledge base for this question.

    By selecting 'Use Waveform' uses the synchronization of the sample clock.  The waveform data type specifies a delta t, which is used to set the sample clock frequency.  It is not supported on the box USB-6008.  You shouldn't set your calendar of sample type or explicitly assign the "On Demand".

    The DAQmx driver supports hundreds of different devices.  Not all combinations of properties are valid for all devices.

  • How to acquire the signal to very high sampling frequency

    Hello world

    My name is Luke Ho. I am trying to acquire the signal with Labview (Sthelescope). The signal comes from sensor acoustics, then filters and amplifiers to adapt to ADC rank (0 - 5V). Thus, the maximum frequency of the signal is 40 kHz.

    According to the Nyquist theorem, I sampled at least 80 Khz signal.

    Is there a sampling frequency devices like that? or y at - it another way of better? I used the Arduino before, but it was about 10 kHz.

    I need your advice.
    Thank you all and have a nice day.

    holucbme wrote:

    Thanks for your recommendation

    But is it possible without USB Data Acquisition, it is quite expensive for me.

    This is the cheapest option to NEITHER. I tried to look for options to other companies, but more I found in the same price range, or not answering is not your condition of sample rate.

  • NEITHER USB 6008 AI acquisition and generation of pulse

    Dear users of LabVIEW,

    Greetings for everyone. I am a beginner of LabVIEW and I have a problem that I solved partially. I would really appreciate your help and suggestions that I searched for days without a bit of luck. The problem is as follows:

    I am the acquisition of tension HAVE (continue) 4 to 8 accelerometers. In the meantime, I send you a digital output signal each time when you click on the sampling frequency (i.e. 1000, 2000, 3000,...) If the sampling rate is 1000). In other words, try to send a signal of output digital (at a frequency n Hz) at intervals of 1 second (depending on the material). To make the digital output signal begins to blink a LED every one second. In addition, I need to write signals (voltage) AI and the LED blink timestamps PC (software) separately. All stages of the above are followed in my .vi program, but the real hardware/software level operations kill my timestamps. In other words each LED flash timestamps are not accurate, when I use LabVIEW measurement file express VI (the difference is not at least to the third decimal). In addition, the timestamp is kinda OK when I disable the file LVM write VI. Onemore thing I've noticed is that physically the LED blinks every second two times, I feel it's because of the shift register and loop delay of a second. Is there a way to control the speed of blinking (i.e. Boolean State must change to every 500ms without delaying the inside while loop).

    Results and comments:

    LabVIEW 2011 .vi, timestamp of files with or without generator of LVM (express VI) files are all attached. Please note that there is a considerable amount of drift in the consecutive timestamps when the file LVM generator is used, on the other hand there are derivative of 0.001 ms when the file LVM generator does not. The reason for horodateurs PC have is about aligning the various measures or observations or events to global time scale.

    Please give me any suggestions or help me do at least accurate to milliseconds in VI of witten. Finally, is there any USB DAQ module relatively inexpensive which allows to send an impulse to directly from channel impulse of output digital channels when the "n" sampling frequency Hz is obtained by level of material which could all be accurate, so that the software timer is completely reduced to a minimum. Although there are very material sophistiated of NOR, but our goal of this project is to build and test the system profitable.

    Thank you and I really appreciate your time and effort inavluable. Have a great weekend!

    Just change the samples to the constant playback at the entrance of the DAQmx Read.vi from 1000 to 500.

    Lynn

  • How to specify the sampling frequency? Must use "measurement & Automation Explorer '?

    I use to measure the input current analog OR cDAQ-9171 (chassis only location USB) and NOR-9207. I have 2010 NOR-installed DAQmx and LabVIEW.

    How can I specify the sampling frequency?

    If I use M & A Explorer to create the task, I can specify the flow rate (Hz) on the Configuration tab-> sync settings.

    For the acquisition of data NOR, it is mandatory to use M & A exploring?

    If I don't want to use M & A Explorer, how can I specify the rate (Hz)?

    Hello

    You can specify the sampling frequency with "DAQmx Timing.vi" located in the function palette DAQmx (read context-sensitive help on how to use wisely).

    You do not have to use M & A exploring (MAX) to create a task.

    A simple and quick way is to use DAQ Assistant (same configuration as in MAX) to configure your measurement.

    Another is to use blocks of DAQmx function to manually build your application code.

    In my experience Assistant DAQ is ideal for simple tasks (one measure), with regard to the more complex measures (synchronized the analog and digital inputs).

    I tend to use function blocks because they give you more freedom about code execution.

    Note: You can also build DAQmx code from a wizard configured DAQ task.

    Best regards

    Matej

  • Using of two NI USB-6008

    Hello

    I would like to know if its possible to use two devices acquisition of data USB-6008 in the same VI.

    I suppose it should be possible and should not affect my sampling rate, I'm good?

    Thank you

    You are right. You can use two devices in the same vi (infact many devices) as long as you manage tasks for devices separately if you want different sampling rate.

  • Rate analog output USB-6008

    Hello

    I just started using an NI USB-6008 box. At this point, I don't need to fill all the specific tasks other than learning to use the device. I used a fair bit of LabVIEW but never with this kind of material, and I would like to help to understand it please.

    In particular, I have attached a VI in which I try to get an analog signal through the USB-6008 and read again (also with the USB-6008 - I wired the pins together). However, I do not understand what is happening when I run this VI. I expect the output a sine signal of 10 Hz for 1 second, 0.1 seconds record and see 1 full cycle of the sine wave. In practice, I read about 10 cycles and constant tension then. Presummably, this means that either the reading continues for more than 0.1 second, otherwise the output signal is more than 10 Hz.

    I also tried to use the related calendar DAQmx screws with the output pin to try to adjust the output rate (samples/s) but everything that I've tried return errors. I also tried to open some examples NOR, but these errors returned as well and I still just try things on mine.

    Did I miss something obvious here, but any help would be appreciated!

    Edit: I had to update this post & attached VI I had made mistakes. The default values on the front panel show what I see after the execution of the VI.

    Orbital Hi,

    As far as I know, you will need to use the DAQmx Read and VIs write in loops and functions of synchronization to determine data rates you want.

    I also did a quick search and found a white paper which you may find useful: http://www.ni.com/white-paper/9541/en/

    Kind regards

Maybe you are looking for