Help DAQmx and USB 6009


I had a look at your VI and found a few things:

Reference leaks - if you "Throw" EXE"set to true, you launch an executable every 100ms and creating a process .NET oppose every 100ms. You must close these references otherwise your application will proceed in memory.

In your VI Leitor, you're constantly read/write a file on the drive - just open the file outside of the loop, write data inside the loop lines and then close the file outside the loop. If you need to start a new file, you can close/open a new file when you need inside the loop. Generally, it is best to file i/o outside of the loop of data acquisition - you should look at the architecture of producer/consumer for how to do this.

You also keep the picture of data in memory, which means that more your application runs, it will use more memory and this causes the slowdown.

You use a lot of Boolean read/write property nodes and update your cards - it is generally considered bad practice and you should look appropriate methods for communication between the screws (for example, events, queues and registrants).

Tags: NI Hardware

Similar Questions

  • Sinusoidal linear encoders Heidenhain 11 (micro) App and USB-6009

    Hello, I need to read the two linear encoder sinusoidal signals App 11 Heidenhain (micro), described on page 37: http://www.heidenhain.com/fileadmin/pdb/media/img/208_945-28.pdf

    I have been using a standard oscilloscope and merged the two signals on a X - Y axes screen two, to display a circle to inspect if the glass scale is OK.

    If the glass scale is OK, then the circle is relatively stable in size and position when you move the receiver along the scale.

    Now, I would do the same test with a USB-6009. Is this possible? The two signals should be treated as current input analog? In this case is 11 specifications USB 6009 operator?

    Thank you

    Luke


  • 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

  • Device USB-6009, not found problem

    Hi all

    So my VI and USB-6009 worked fine until recently.  I noticed the VI was read or graphing correctly the analog input channel information.  My firmware is up to date, but I noticed a problem.  In Isdaq, he will recognize the USB-6009 case is connected, then when I start my VI and to stop it, I double check Isdaq for my device and it doesn't recognize any device.  I have to unplug the daq and reconnect to Isdaq to recognize the usb-6009 case again.  But whenever I start my VI, it does not collect all the data and makes the unrecognizable device.  Do you know what could be the problem?  Is attached the VI I ran in case you want to watch.  Its working fine so far.

    BTW, I'm under Labview on Mac OS X

    Thanks for the help!

    Hello Solis,

    I recommend you to make changes to the parallel tasks to use the cluster of the error to force the order of execution, given that NEITHER-DAQmx Base is not multi-thread safe (review NOR-DAQmx Readme). Please check if this alleviates the problem.

    Best regards

    M Ali

    Technical sales engineer

    National Instruments

    www.NI.com/support

  • PID control using USB-6009, need of simple video or example vi

    I have a new usb-6009 and have tried all the videos on the NC

    Web site for practice. However with the version 8.6.1 I can't use

    the pid simple vi which is used on the video. (its too old 5 x v)

    I just need a PID simple vi to 8.6.1.so that day, I saw many complexes of vi

    for the demo of pid... I'm creating control tools... too to choose...

    any help looking for a simple vi or video? - as the demo shown

    the NI USB-6009 Web site...

    Concerning

    JJ

    Well, I did a simple proportional control for box usb-6009

    with a time inside the while loop... don't know if it's the

    Gourmet addresses... my sub PID vi is very simple...

    But it shows how to use labview and usb-6009 for case

    a loop very simple return PID...

    Concerning

    J

  • generation of signals USB-6009

    Hello!!

    Can someone suggest me how to generate a pulse of 3V/0V to output pin (a01) to change the transistor...

    requirement is: 1ms - 3V and 400ms-0V permanently...

    With the help of NOR-USB-6009

    Thanks in advance!

    The short answer is that you cannot do with the USB-6009 case. Outputs analog device are timed software and 1 ms pulse is too fast for the outputs timed software. According to the computer, OS and other software activities and perhaps the phase of the Moon, you can only expect rates to update AO 100 Hz to a few hundred Hz and there may be considrable timing jitter at these rates.

    You must obtain a DAQ device with hardware timed AO.

    Lynn

  • Problem of analog sinusoidal input USB-6009

    Hello

    I am a newbie to Labview. I'm using Labview 2009 and USB-6009. I tried to use USB-6009 to display the input sinewave of function generator signal. First of all, the perfect sinusoidal looking at the frequency of 1 kHz, but when I changed the frequency of 10 kHz, the sinusoid turned into a triangle wave. When I test the input signal, I put the 48 kHz sampling and Terminal configuration is CSR. Is there a problem with USB-6009?

    You really need to spend some time to study sampling and Nyquist theorem-not LabVIEW. To faithfully reproduce the shape of the sine wave, you must go to a sampling rate 10 times higher than your input frequency. With the 6009, i.e. limit the entry less than 5 kHz.

  • Device driver in Linux and ready to compile application user for USB-6009

    Hello

    I intend to use the acquisition card to USB-6009 data under Linux platform. To do this, I need driver linux for acquisition card data USB-6009 and some read-compilation-and-program to use "user application" which can take samples of the card, to implement some buffering or write to the file. It would be beneficial if I could also get sample code to generate a sinusoidal low frequency signal, using the D-to-A converter available on the Board of Directors.

    Also I need installation instructions for the NOR-DAQ software under standard linux environment.

    Thank you for your quick and detailed response,

    Adeel Malik,

    Research engineer,

    Institute of telecommunications research,

    Mawson Lakes Boulevard,

    Mawson Lakes,

    South Australia, 5095,.

    Australia

    Mobile: + 61 0404 030 071

    E-mail: [email protected]

    Hello Adeel,

    You will need to install the libstdc ++. so.5 Library.  A Google search has a few useful discussions that give more information on the procedure to follow if you are not sure:

    Let me know if you have installation problems - you can also try to contact redhat support if you are having problems.  If you have problems, please post so we can document the troubleshooting procedure to help all customers who may experience this problem in the future.  Thanks for posting!

    -John

  • Digital and analog inputs simultaneously - NI USB-6009 and NI USB-6212 - ANSI C

    Hello

    I'm reading at all times and at the same time analog and digital inputs. Digital and analog samples must be sampled at the same clock and acquisition should be started (triggered?) at the same time (I don't want, after some time, analog reception more digital samples - the opposite is also true).

    I found an example (in C source code) "National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Synchronization\Multi-Function\ContAI-Read dig Chan" and tried to run with two USB cards: NI USB-6009 and NI USB-6212. Unfortunately, the two results by mistake, as described below:

    DAQmx error: the requested value is not supported for this property value.
    Property: DAQmx_SampTimingType
    You asked: DAQmx_Val_SampClk
    You can select: DAQmx_Val_OnDemand

    Task name: _unnamedTask<1>

    State code:-200077
    End of the program, press the Enter key to exit

    -Is it possible sync analog and digital acquisition in the paintings?

    -If so, how?

    Thank you

    Hello tcbusatta,

    Two of these modules, USB = 6008 and USB-6212, support only timed software inputs and digital outputs.  This means that you cannot define material timing (like finished sampling or continuous) for these modules.  Digital lines can be retrieved or written once to each call DAQmx read.

    This means that you will not be able to get any type of synchronization tight between the analogue and digital channels.  You will need a Board such as the NI USB-6341 in order to synchronize the AI and DI closely.

  • Can I synchronize and AI on USB-6009 with meter?

    Hi all

    I use USB-6009, LV 8.5 under windows XP. I want to generate signals synchronized with Amnesty International. I know that I can not use the sample as DO clock clock. But can I use the card counter to synchronize and AI? And can someone give some similar examples? Thank you!

    Best wishes

    Bo

    The unit will display whenever you call writing DAQmx. It is more complicated than that. And synchronization is practically based on the flow of data and when you want to generate the digital output from the analog input.

  • inputs and outputs analog digital usb 6009

    I'm having a problem with my USB 6009 in labview programming.  I try to read continuously from the analog inputs while having an event focused on digital output within the same program/vi.  Basically, I need to taste all the time the analog inputs while having an event defined by the user (button control) to signal the digital inputs to turn on then after awhile.  The event of digital output must be independent of the analog sampling system.  I was throwing the "error already allocated resource" in most of the vi, I wrote to try to achieve.  What is programmatically possible with usb 6009?  I am at my wits end trying to do this and any help would be greatly appreciated (by myself and my boss).  Thanks in advance for your answers.

    RJ


  • How to open and close an electronic shutter with LabView 8.5.1 using an NI USB-6009 case?

    Also, I need to set up a timer so that the shutter is open for 15 minutes and closed for 30 minutes.  It has to do 500 times.

    The USB-6009 case is a relatively new device, and LabVIEW 8.5.1 is a fairly old software. You should check to be sure that you have the corresponding to your version of LabVIEW (DAQmx) drivers that support of this material. It sounds as if you put it in place to MAX and control the output manually, which is a good sign. I don't have access to the version 8.5.1 and I do not exactly remember which functions he supported, but the attached picture shows a simple diagram in a new version of LabVIEW that would do what you want. Of course, you should test with shorter and less iterations because it takes more than 2 weeks to complete! Add any controls, indicators and the error checking you want.

    Rich

  • USB-6009 HAVE and AO

    Hello

    I have a USB - 6009 DAQmx. I want to measure an analog input with the highest possible sample rate (48 kHz). At the same time, I need an analog output in voltage from 0 to 5 Volts, lets say 2 minutes of the ramp. Both of these tasks require no synchronization of relatives. With respect to the specification, the highest rate of the AO is 150 Hz. It's ok for my application.

    So far I use the internal clock of the device, and the OD does not work with a timing of software. Is it possible of ramping regardless the voltage output and at the same time reading analog input? If not, is there a work around for this device?

    Thanks for the tips!

    Kind regards

    HI Blook,

    your VI test seems ok. Of course, given that the AO is in sync SW and you run it on a Windows platform may be you will see some jitter on the output. But you said, you don t need a thight synchronization, so it shouldn´t be question.

    For what concerns the way in which LV manages data acquired from a multiplexed DAQ card, that should be kept in mind

    that the timestamp of the waveform is generated from the driver on the PC and not directly on the map. This means that even if the sample of both channels are acquired in two different

    moments (like you supposed to separate by the time of the ADC) this will be transparent to the SW and they will be considered granted exactly at the same time.

    National Isntrumetns offers also simultaneous of sampled acquisition card (and not multiplexed) to overcome this problem.

    Best regards

    André

  • Using the DAQ USB-6009 meter and an analog input voltage at the same time.

    Hello

    Currently, I'm reading the two channels of voltage with the USB-6009. It happens that one of the channels is the output of a digital coder, and it would be much easier to use it directly to the PFIO entry that is defined as a counter. The problem I am facing right now, it's that I can't use the DAQ Assistant to use the analog voltage to a channel and the digital channel counter at the same time. Once I put the DAQ Assistant to read the input from analogue voltage, I won't be able to add analog inputs. And as I put the DAQ Assistant to use the PFIO as a counter, I can add more entries to read analog voltage is.

    I wonder if it is possible to solve this problem using the lower level data blocks? Another solution would be to read two channels in analog input voltage and that the use of Matlab to process data resulting from it, since I was not able to do the counting to work simultaneously with the acquisition in Labview to impulses.

    Hope you guys can help out me.

    Thanks in advance.

    Using a simple wizard of DAQ is incorrect. You need one to acquire analog inputs and one for the meter.

  • How to get USB-6009 DAQmx device instead of a USB device

    I undertook a LabVIEW app from a Windows XP laptop work a windows7 (32 bit) laptop. When I connected the USB cable from the laptop to my Flow Bench machine, that contains an NI USB-6009, he appeared in MAX under USB devices and not, as he always did before, under NOR-DAQmx devices. If the USB-6009 case is not recognized in my application.  When I tested the example Acq & chart voltage-Int Clk - SW Trig Restarts.vi, when I try to navigate to this device in this example, the search box is empty - no DAQmx device not found!

    How can I get this device 'live' under NOR-familiar DAQmx devices instead of strange USB peripheral area? What is going on?

    Thank you!

    Finally, you looked in the right place. As indicated in the page file or the file read me download, this version is not supported on windows 7. Download a newer version. Click on the 'Support' link at the top of the page.

Maybe you are looking for