Analog signal from PXI

Hi everybody,
I have a problem: I cannot acquire 6 analog signals with a PXIe 8135 with 4MS/s. I use two boards with 4 MS/s, 16 bits and 8 Analog Inputs. I use a subVI of SAMPLE CLOCK for configuration with this parameters, Continuous SIGNAL, SAMPLE RATE = 4MS/s ( see attachment ). With one signal is ok, but with 2 signals, i have an overload Memory Message.
Where is the problem in the VI?
Thanks for your help.
Attachments:
acq_and_graph.zip ‏165 KB
acquire&loggdata.png ‏230 KB

Quickly looking through your code now, try removing the "Number of Samples analog".  Since you are using Continuous Samples, you are just limiting the buffer and also limiting how many samples you can read at a time.
But you might want to think about using Finite Samples.  You know how long you want to log for and you know your sample rate.  So why not just do the simple math and tell DAQmx to get that many samples?  You can use the DAQmx Task Done? VI to see if it is done.  That would be much simpler than checking the time that has elapsed.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines

Similar Messages

  • How can i acquire analog signals from PXI 4472 card?

    Regards
    Aks
    (Appreciate answers by giving KUDOS)
    Hit the stars.............. sky is not the limit.

    There are a lot of shipping examples for DAQmx. Once you open the example finder (Help>Find Examples), use the 'hardware' listbox at the bottom to find all of the examples that pertain to a 4472.
    Message Edited by Dennis Knutson on 10-28-2008 07:30 AM

  • How do create an analog signal from a text or binary file?

    I'm trying to output an analog signal from a file on an NI-DAQ 6251 card using labview 8.5. I've found the examples on building a waveform, but I'm stuck at how to read a text file and make a 1-D array to input my amplitudes into the buildwaveform.vi and I can't find any information on how to do so. Any help or direction is greatly appreciated.
    thanks,
    David
    Solved!
    Go to Solution.

    If all that you want in the file is the Y values, then a text file with a value on each line could be read. The Read From Spreadsheet File can be used. It will return a 2D that you can then use the index array function to get a column or if you select Transpose, the returned 1D array would be used.
    If you want to create an example, use a 1D array constant in a VI and pass it to the Write to Spreadsheet File.

  • Analog signal from Laser Power Meter

    Hello,
    First, I have to say that I am new using Labview.
    Probably for some of you the question I am going to ask is pretty easy, hope you guys can help me solving this.
    I am trying to acquire an analog signal from a Fieldmate Laser Power meter, the specifications from this meter are shown in the link below:
    http://www.coherent.com/downloads/FieldMateDataSheet.pdf
    I need to get the signal and save it in MS Excel files. My big issue is with the acquisition of the signal from the meter to the NI Board. I am using an NI SCB 68.
    Hope you guys can help me.
    Thanks.

    The SCB68 is just a shielded connector block, not a DAQ device.
    Use NI's MAX utility (Measurement & Automation Explorer) to find out what DAQ card you have installed in the PC.
    There are also plenty of analog acquisition examples that ship with LV, Search Examples in Help.
    -AK2DM
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    "It’s the questions that drive us.”
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

  • Can DVB-T Integrated tv tuners receive analog signal froma cable?

    Hello , i have an HP Pavilion DV-7 1020el with an integrated DVB-T tuner , so my question is can it receive analog signals from cable or only digital. I live in a region where digital broadcast isn't available , only analog ( Romania)
    When i try to scan for channels i dont pick up anny channels at all . I have been to Italy and there i could pick up channels , but there they have digital DVB-T signal , so am i doing something wrong or my tuner just cant receive analog signal from regular cable tv.

    Did you get a response to this from HP?
    I ahve the same query.

  • Route signal from pxi 6602 to RTSI

    Hi,
    I have a problem to export pulse from pxi 6602 to RTSI0. The code is simple as follows:
    DAQmxCreateTask("",&taskHandle);
      DAQmxCreateAOVoltageChan(taskHandle,"AO/ao0","",-10.0,10.0,DAQmx_Val_Volts,NULL);
      DAQmxCreateAOVoltageChan(taskHandle,"AO/ao1","",-10.0,10.0,DAQmx_Val_Volts,NULL);
      DAQmxCfgSampClkTiming(taskHandle,NULL,1000.0,DAQmx_Val_Rising,DAQmx_Val_ContSamps,2);
      DAQmxCfgDigEdgeStartTrig (taskHandle, "RTSI0", DAQmx_Val_Rising );
      DAQmxWriteAnalogF64(taskHandle,2,0,10.0,DAQmx_Val_GroupByChannel,out,NULL,NULL);
      DAQmxCreateTask ("", &countHandle0);
      DAQmxCreateCOPulseChanTime(countHandle0,"TimingIO/ctr0","",
       DAQmx_Val_Seconds,DAQmx_Val_Low,1,0.5,1);
      err = DAQmxExportSignal (countHandle0, DAQmx_Val_StartTrigger, "RTSI0");
    //  err = DAQmxConnectTerms ("TimingIO/Ctr0Gate", "RTSI0",DAQmx_Val_DoNotInvertPolarity );
      DAQmxStartTask(taskHandle);
      DAQmxStartTask (countHandle0);
    the lines at DAQmxExportSignal(..) and DAQmxConnectTerms(..) both generate big negative number, I spent hours and no answer. In fact I have to use the counter to trigger other boards in my project, I plan to use the route signals a lot.
    Sincerely,
    Taishan

    Hello Taishan,
    Thanks for contacting National Instruments. 
    When you are using DAQmx with a PXI system, much of the signal routing can be handled implicitly by the driver.  From your code, it appears that you want to use a counter output to start an analog output task.  Please let me know if this assumption is incorrect. 
    When used while configuring your analog output task, the following function will cause the internal output of Counter0 to be routed automatically over the PXI backplane to the analog output device.  I have assumed that your PXI-6602 is in slot 2 of the PXI chassis. 
    DAQmxCfgDigEdgeStartTrig (AnalogOutputTaskHandle, "/PXI1Slot2/Ctr0InternalOutput", DAQmx_Val_Rising);  
    The tutorials Getting Started with NI-DAQmx and Learn 10 Functions in NI-DAQmx and Handle 80 Percent of Your Data Acquisition Applications are great starting points for programming with the DAQmx API.  Since you are using C, Using NI-DAQmx in Text Based Programming Environments, is a great starting point for comparing the LabVIEW API to the C API for DAQmx. 
    Please post back if you have any questions. 
    Regards,
    Browning G
    FlexRIO R&D

  • Program to write signals from PXI 5105 using labview 2011

    Hello
    I am new in using labview. I need help in writing program to continuously record the signals form PXI 5105 using LabVIEW 2011.  I prepared a program using help examples. It is recording the signal using pxi 5105 into the file after trigger. I tested the code using waveform generator with -100mV to 400mV, 1 kHz, sine wave. I have also attached the waveform of signal from the excel file recorded by the program. I have following queries
    (i) Is the program correct to continuously record the triggered signals. Have I used the while loop correctly?
    (ii) why some part in waveform is missing.
    (iii) What should be the value of millisecond multiple ( I used zero)
    I want to use above program for strain gauge signal measurement. Where I have to record the data at 20Ms/sec sample rate for 1 milli second after trigger.
    thanks
    Attachments:
    Signal recording programme.vi ‏85 KB
    recorded_signal.png ‏38 KB

    Hi,
    Sorry but I've only got LabVIEW 2010 so I can't open your file. If you can post a 2010 version I can take a look.
    vinod_p wrote:
    (iii) What should be the value of millisecond multiple ( I used zero)
    If you are talking about the "Wait until Next ms Multiple" function then "Wiring a value of 0 to the milliseconds multiple input forces the current thread to yield control of the CPU." (from the context help for the function - press <ctrl>+h). Is this the behaviour you want?
    Normally the ms multiple function is used to synchronise loops as it waits until the next multiple (be it 10ms or 10s) before continuing the loop.
    -CC
    "If anyone needs me, I'll be in the Angry Dome!"

  • Why is the Analog signal from the FPGA is distorted?

    Hi,
    I am using the PXI-7831R board with LabView 2010. I'm trying to transmit TDMS files from the computer hard drive via the analog output of the 7831R.  I've used the "Basic DMA output - R series" example and replaced the generated signal with a TDMS file. When I tried it on a synthesized pure sine file, it transmitted the positive part of the sine wave (which was a little distorted) but instead of the negative part I saw 0V DC. When I tried to use a "real" TDMS file (that I sampled earlier) the signal came out completely distorted. In both cases I used a graphic output in the host VI and checked that the data coming from the file is ok. Can anyone help me with that?
    I would also appreciate some explanations on the "Update Rate" block (I suspect that he's the one causing all my trouble) - how am I supposed to use it and is it mandatory?
    Thanks in advance.

    It sounds like when you are using the sine wave, you are clipping the data.  I am assuming that this is because you are sending it negative values.  R-Series cards can not handle fixed point values, so try to offset the signal so that the lowest point of the signal is at 0.  See how that works for you.  As far as the Update Rate goes that controls the speed of your loop.  If you do not set it high enough, the loop will simply run as fast as it can.  I hope you find this helpful.
    Brandon Treece
    Applications Engineer
    National Instruments

  • Acquiring analog signal from PC mic

    Hi Guys,
    Is it possible to acquire a signal (audio) from a laptop mic and display it in Labview? I know this can be done with a DAQ card but I was curious if I could bypass that and just use the mic in my laptop. 
    Thanks.

    Here is a higher level example, for LabVIEW FDS:
    http://decibel.ni.com/content/docs/DOC-4834
    -AK2DM
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    "It’s the questions that drive us.”
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

  • Where can I found hardware to get analog signal from VCR and work with labview and then sample this signal in very high frequency?

    I am trying to build a Digital Video Recorder using Labview. The problem is that I found that Labview sample the signal in the order of milisecond. I wanted it to be in the order of microseconds. Also I am looking for a cheap Hardware solution if it is possible

    Your question does not make a lot of sense to me, so I will just point out a few things.
    1. The PCI-1411 works well with VCR signals. It has a BNC connector as well as a S-Video connector. The price is under $1000, so it is fairly reasonable. The amount of time you save getting it to work with LabVIEW is worth any extra cost.
    2. The PCI-1411 is sampling three colors at 30 frames per second, with an image resolution of 640x480. This is the best resolution you are likely to get from a VCR signal. The sampling rate for each byte in the image is about 28 MB/sec. This is in the microsecond range that you are looking for, I think. If you are only interested in the raw signal instead of the image, you could look at the high speed digitizing boards NI sell
    s that acquire at higher rates.
    If this information isn't really what you were looking for, perhaps you could clarify your question.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • I have a trouble reading signal from PXI-6251

    When I want to capture data coming from a loadcell, it shows a graph which has maximum value of 10.5v and the real value is at the minimum. This happens frequently and the graph jumps from real value to 10.5v and then back again to real value. A sample screenshot is shown below, can anybody tell me what is the problem. Also it should be noted that DAQ and board have already been checked with another setup and they work very well so I'm pretty sure that the problem is on developer side!
    Regards,

    Are you performing any processing on your data?  Are you performing a continuous or finite acquisition?  Do you see this behavior in the Test Panel as well?  How is your load cell wired?  Typically load cells need external excitation.  If this is the case for your load cell, what is providing the excitation?  If this is a bridge-based sensor, then this document would be good to review.  Hopefully this helps!
    Regards,
    h_baker
    National Instruments
    Applications Engineer
    Digital Multimeter Resources

  • Filtering Analog Signals

    I am currently using a PXI 6025E board to read an analog signal from a weigh station. The items that are being weighed are in motion so the signal contains some vibration from the item being in motion as it crosses the scale. I would like to be able to filter the analog signal so that I just get the pure weight and not the noise from the vibration. What is the best way to filter the signal using LabView?

    Another method is the store a number of results and calculate the
    average of these points.
    Do sample fast to get more data and you will get a better result.
    The method with the best results depends on the noise expected, on its
    spectrum and amplitude distribution.
    Median is fine if you have a lot of good data and a few wrong ones far
    away from the 'real' result..
    AVG and Lowpass is fine for symetrical noise.
    DC / AC is fine in the same case, but the parameters cannot be chosen by
    yourself.
    Good Luck
    Urs Bögli
    preston johnson schrieb:
    >One method is to use a "median filter" this is a statistical median
    >of the data you have collected over a brief period of time.
    >Presumably, you will have a good number of cycles from the vibratory
    >motion. Use th
    e statistical function for median. This will sort the
    >data from most to least and produce a number in the middle of the
    >list.
    >
    >A second method is to use a low-pass filter to filter all data above
    >say 1hz.
    >
    >A thid method is to use the DC and RMS function and take the DC output
    >of the function.
    >
    >Try all three to see which produces the best result.
    >
    >Sincerely,
    >
    >Preston Johnson
    >
    >

  • Why use FIFO to read analog signal?

    Why must we use FIFO to obtain analog signal from FPGA? I can use a normal method of calling the FPGA using Read/Write Control and the results in a waveform chart is much more smoother. 

    I've uploaded 2 real-time VIs with and without FIFO. MQ convert is the subVI in my computer. Do have a look at it...
    My waveform chart is done that way so that I can easily export to excel ( i think) but this is a different problem in a different topic http://forums.ni.com/t5/LabVIEW/3-Waveform-Chart-to-a-Single-Excel-but-in-Different-Spreadsheet/m-p/...
    Attachments:
    Real-Time With FIFO.vi ‏397 KB
    Real-Time without FIFO.vi ‏391 KB
    MQ Convert.vi ‏19 KB

  • How do i send an analog signal to trigger another program

    I am trying to send out an analog signal from labView that will start Bioware. How can I do this?

    Hi Orbz,
    There are 3 Send modes in Logic:
    • Pre Fader (original signal is sent before it reaches the channel strip's fader etc.
    • Post Fader (sent before volume fader adjustments)
    • Post Pan (send before volume fader and Pan/Balance adjustments).
    Click and hold on the Send slot in your synth channel strip and select Post Pan fro the drop-down menu.
    Funnily enough I've just finished writing a tutorial about this very topic!! It's not published yet, but will appear on the macProVideo.com blog in the coming days...
    http://www.macprovideo.com/blog/

  • MyRIO input analog signal measurement

    Hi everyone,
    I want to know that how to measurement the input analog signal from a signal generator to the input pin of myRIO. Is it like using myDAQ to measurement? or need to use other Labview function panel? For example, how to trigger the input signal on Labview?
    If someone know this, please give me an answer.
    Cheers,
    Johnson

    Hi Johnson,
    The minimum software required to program the NI myRIO processor with LabVIEW is the following:
    LabVIEW
    LabVIEW Real-Time Module
    LabVIEW myRIO Toolkit
    All of this software is included in an Academic Site License. Additionally, the full myRIO Software Bundle can be downloaded from ni.com and activated with a valid serial number.
    You can write programs quickly using I/O-specific Express VIs directly from the LabVIEW palette, which includes an "Analog In" function which you can use for your signal generator input:

Maybe you are looking for