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

Tags: NI Hardware

Similar Questions

  • Incorrect value for analog output USB-6008. Cannot not out more than 3V

    I use USB-6008 analog IO, but the analog output (AO0 or AO1) can go up to 3 - 3.5V. The output can follow accurately the value of 0 to 2, 5V, but then he start the values adjusted trolling and not can not spend you 3.5V exponentially.

    The only strange thing the entire circuit is that I connected all patterns (analog source and I/O 5V) between them, but I don't see what affect the output.

    Kind regards

    ISSOKO

    Thanks for the quick reply Ana.

    It is not the Council NOR, nor the Council of motorization. Apparently, the interface for motor control (motor spirit C: solutions - cubed.com), load the analog output. A tension following actually isolated op amp output USB-6008 and solved the problem.

    Best regards, ISSOKO

  • Input/output USB 6008 test failure

    OK I am posting this for the third time, but whenever I go back to the home page of the forum, I'm not able to find my post. If by chance I created duplicates than apologies.

    IAM in train to test the USB-6008 case I just got and decided to hang the analog of the analog inputs and see using labview VI.the wiring was done as:

    http://i284.Photobucket.com/albums/ll5/bigdawg6/USB%206008%20wiring_zpss2b7hql9.jpg

    the problem is that the labview VI did nothing, so I go to NI Max and try to see in test panels. But I get 1.4V constantly my same analog input value when I'm changing my analog value:

    http://i284.Photobucket.com/albums/ll5/bigdawg6/AIO%20screenshot_zps9beiimbj.PNG

    the analog output works very well since I plugged it to my multimeter and I can see the tension that I see on this Panel of test:

    http://i284.Photobucket.com/albums/ll5/bigdawg6/AO0%20screenshot_zpsqpei37bw.PNG

    I created an entry/exit of the tasks; screenshots of them are:

    http://i284.Photobucket.com/albums/ll5/bigdawg6/task_ao_zpsykmvczew.PNG

    http://i284.Photobucket.com/albums/ll5/bigdawg6/task_ai_zpsix5se9yg.PNG

    I am quite frustrated with all this since I'm unable to access my actaul draft. I know that 1.4 V value is from the device itself; as in the manual it says 'internal resistance divider can cause the Terminal to float at about 1.4 V when the analog input terminal is configured as a CSR', but the funny thing is that I use it in differential mode so I don't know what to do and any help is appreciated.

    BTW, I did a google search and there are other tutorials onlune who seem to do exactly what I do and they seem to work very well; so I don't know what else to do.

    Please don't host images on some odd third-party site. Attach them to your message.

    I don't understand what you've done. The 6009 can produce only a signal of CSR in order to set up the differential input makes no sense. If you want to measure something different, try a simple battery.

  • Simple examples of analog output USB-6343

    I've tried passing by 'find' examples and does not know how to find what I want.

    I'm doing a simple analog output on a USB-6343.  Examples of waveforms say they work with the USB-6343, but I really don't want a waveform, just analog of output does not exceed 10 Hz speed of renewal.  Some of the more simple examples show that they work with the pcie-6343 but do not list USB-6343.

    I worked with USB-6009 in the past, but when I try to use an analog output task that uses 1 sample on request, I get the error "not buffered operations clocked by the hardware are not supported for device and channel type.»  Set the size of greater than 0 buffer, do not set up the timing of the sample clock or the value Type of sample On Demand time"

    I tried samples N, 100 samples to write to 10 Hz - the same error.  Samples of continuous - same error.  1-sample - timed HW - same error.

    There is a series of examples of I/O for the X series?  Is it possible to search the device examples rather than go through all the examples and by checking the list of devices individually?

    Is 'size of the buffer' the 'writing samples"in MAX?

    After contacting the support I was provided with the names of the more simple examples for analog i/o:

    Analog output-Gen power Update.vi

    Analog Input-Acq & chart voltage-Int Clk.vi

    They are found in the getting started screen of

    Click 'Find examples' near the lower right corner

    Filter the results to material by clicking on the menu drop down for the material in the lower left corner and selecting USB-6343 (only connected equipment will be displayed)

    Don't forget to check the box "limit results to material" below.

    In the center pane, double-click 'Material Input and Output'

    Double-click DAQmx

    Path for the analog input - double-click Acq & chart analog measures - double click on tension - tension-Int Clk.vi

    Double click on analog generation - double click on Power - Gen Update.vi of analog channel output voltage

    The examples are for the single data point.  Samples and exit multiples are produced by putting the writing or reading VI inside a loop.  The beginning and the clear functions should be out of the loop.

    Additional information, I need technical support was how material-filter results and identification of more simple examples which were not obvious from the examples of names.

  • Arbitrary analog output USB-6281

    Hello, I am very new to LabView and national instruments. I'm trying out a sinusoidal signal with noise with my usb-6281. I can't find how to do this in labview 8.2. I see how a normal sine wave of the express signal and the measuremtn Explorer & automation of output, but I would like to do a program in labview to run it. and not only a sine wave but a noise. Can someone point me in the right direction for this? is it still possible with the 6281? I should mention as probably as a sinusoid is not really necessary, I am controlling a variable voltage attenuator and want to change mitigation maybe 5 times per second, so the speed is not essential. I could even run it through a script of voltage levels. but I don't know how do either. Thanks in advance for your help.

    Hi F11Raven,

    The DAQ Assistant is packaged with DAQmx, which is the driver needed to interact with your USB-6251. You can download the latest version of DAQmx here. After installing, you should be able to use the DAQ Assistant in LabVIEW.

  • Want a ramp of output voltage over time and measure input 2 analog USB-6008

    Hello

    I want to produce an analog voltage output signal that increases over time with a certain slope, which I'll send in a potentiostat and at the same time I want to read voltage and current (both are represented by a voltage signal) that I want to open a session and ultimately draw from each other. To do this, I have a DAQ USB-6008 system at my disposal.

    Creation of the analogue output with a linear ramp signal I was possible using a while loop and a delay time (see attachment). Important here is that I can put the slope of the linear ramp (for example, 10mV/s) and size level to make a smooth inclement. However when I want to measure an analog input signal he's going poorly.

    To reduce noise from the influences I want for example to measure 10 values for example within 0.1 second and he averaged (this gives reading should be equal or faster then the wrong caused by the slope and the linear ramp step size.) Example: a slope of 10 mV/s is set with a 10 step size. Each 0.1 s analog output signal amounts to 1 mV. Then I want to read the analog input in this 0.1 s 10 values)

    Because I use a timer to create the linear ramp and the analog input is in the same loop, the delay time also affects the analog input and I get an error every time. Separately, in different VI-programs (analog input and output) they work fine but not combined. I searched this forum to find a way to create the ramp in a different way, but because I'm not an experienced labview user I can't find another way.

    To book it now a bit more complicated I said I want to measure 2 input analog (one for the voltage of the potentiostat) signals and one for the current (also represented by a voltage signal) and they should be measured more quickly then the bad of the analog signal. I have not yet started with because I couldn't read on channel work.

    I hope someone can help me with this problem

    An array of index. You want to index the columns for a single channel.

  • How stable is the long term outputs analog USB-6008?

    The USB-6008 datasheet do not specify the stability long term of the analog inputs and outputs.

    I'm looking for stability compared to the ambient temperature and time (several months to a year), mainly for the outputs or the D/A reference voltage.

    Is there any information available?

    Thank you.

    The precision specification takes into account the evolution both because of the temperature and duration (stable).  Thus, for the period of a year that we guarantee these specifications, which list you is correct.  However, apart from the period of one year since the calibration, this specification may be is more inaccurate.

  • USB 6008 analog i/o has stopped working

    Hello

    I have been using a USB-6008 for a few weeks now and it has worked well. I've been using the outputs digital, analog inputs and outputs this morning and they worked very well. I worked on something else for an hour or two and then resumed using the 6008, find the analog pins have stopped working. The show output analog on 1mV any value I send to them and the analog inputs always read - 10.3, despite limits MAX being set to 0 and + 5 (and me only using 0 - 5V on them). I tried all the inputs and outputs, in all ways (CSR, diff) with the same results. The digital outputs all work very well. Yes, he is grounded properly. Yes, the wires have continuity. My multimeter don't lie about me, either.

    I took the MAX test panel to solve the problems. The unit passes its tests of self-control, and my Labview program does not return errors by contacting the 6008. I don't connected the 6008 which could exceed the voltage or the current limits of entrances and exits. In fact, all I did was unplug it when I stopped using it as soon as possible and then reconnected it when I went back to work. The material to which it is connected has been turned off during this time.

    Any ideas? Thank you.

    Problem is solved. If anyone finds this is interested, the problem was at the level of the material, that the 6008 has been connected. I'm covering, among other things, to a PIC Microcontroller. I just changed the oscillator on the PEAK, and inadvertently changed parameters parameters of the ADC as well. This caused the pin used as my reference voltage (connected to + 2, 5V output of 6008) to transform itself into a digital camera of output, a value of 0. This short-circuit the + 2, 5V output of the 6008, causing it to close.

    Lesson learned: check your material carefully, even if it does not make the difference in a first time!

  • USB-6008 LABVIEW 8.2. SINGLE CHANNEL WITH DBL INPUT VOLTAGE OUTPUT COMPARISON

    I AM WRITING A PROGRAM THAT USES A SIMPLE USB-6008 ANALOG INPUT CHANNEL. I WANT TO READ CONTINUOUSLY THE VOLTAGE FOR 60 SECONDS. I WANT TO COMPARE A TENSION FOR THE PREVIOUS OF THIS SAME CHANNEL VOLTAGE, MAINLY FOR THE PERIOD OF TIME MAX VOLTAGE GIVEN, THEN GET A FINAL VOLTAGE READING. THE OUTPUT OF THE VI IS A DBL. I WANT ONLY TWO TENSIONS OF EXPORT TO EXCEL. TO SAVE TIME, I KNOW HOW TO EXPORT. CAN SOMEONE HELP ME WITH THIS ONE.

    VI needs an register shift related to the Max & Min function. The current value would be the entrance is and the entrance of x is the left shift register. The max value gets wired for the shift register to the right. Don't forget to initialize it. The output of the shift register is the max you would write and the value of the DAQmx Read out of the loop of wire will give you the last reading.

    Your waiting for 45 seconds makes no sense since you said that you wanted to read continuously. You also said that you wanted to read 60 seconds and all this logic is missing. A simple function of time elapsed, it's all you need.

  • USB-6008 turning outputs ON and OFF

    I'm new to LabVIEW. This is the first time I tried to write a VI that communicates with an external device. Everything I'm doing adjust tensions and put on or off the two analog outputs for a USB-6008. I don't read all the entries or do something with the outputs digital, I want to just turn out analog ON and OFF.

    Here's what I have so far.

    It does the job of setting that puts the analog output to the USB-6008.

    The only thing left to do is to make an executable file. I don't have any idea on how to do it again.

    I'm sure a true guru LabVIEWw could have done better, but it does the job.

  • NEITHER USB-6008 outputs in series to generate 10 V

    We wonder if it is possible to connect the AO0 the AO1 as a series voltage source that generates 5 + 5 Volts?

    The datasheet is not say, do or not, but he says they are independent.

    Worst case being short, one of the outputs short-circuit if the ground is common?

    http://forums.NI.com/T5/Multifunction-DAQ/how-to-combine-two-analog-output-voltage-from-USB-6008/TD-...

  • 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.

  • LabVIEW think my NI USB-6008 has only analog inputs

    I am using an NI USB-6008 box to run a route of analog input and analog output.

    If I do a constant material DAQmx channel and out the finger tool and pull down... and it offers me 8 analog inputs on Dev1 and nothing else. I've nothing else connected to this computer, but the box USB-6008. A USB-6008 doesn't even have 8 analog input channels.

    I'm a bit confused.


  • 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

  • rate real output analog OR-6351

    Hello

    I am trying to create a generator of arbitrary signals on both channels DAC on a NOR-6351.

    Everything works fine - with the exception of the fact that I'm not sure what is the real rate of analog output.

    This is quite crucial for me, I have calculate my wave based on Fourier transformation fast discrete - to get the correct frequency, so it is important to know the rate of real output.

    The card has a rate of update AO 2.86MS / s,. The property timing - real sample clock frequency product also these 2.86 MHz.

    When I then try to use the same frequency to generate two analog outputs, it always tells me that it uses 2, 86 MHz, even though the notebook loads says only he can produce 2 ms/s when using two channels.

    So my question is, how to determine the actual flow of outputs analog?

    And what is the rate of real output of the DAC?

    Concerning

    Jørgen

    I just had a scope attached, while generating a sine function at 300 kHz, the rate of 2.86MS / s.

    The scope read 300 kHz, which must mean that the DAC will actually to 2.86MS / s, otherwise the resulting waveform would have been to close to 200 kHz.

    I have this will mark it as resolved, although I have not yet crazy understand why it is able to output at this frequency.

Maybe you are looking for