Trigger an Analog Signals Acquired Continuously

Sto acquisendo un segnale periodico tramite una DAQmx e devo triggerrare questo segnale.
Il mio problema sta nel fatto che devo poter impostare da front panel 3 parametri:
1 livello del trigger
2 isteresi
3 hold off

La scheda in questione non dispone di circuiteria per hardware analog trigger. Sostanzialmente questo significa che non e' possibile far partire l'acquisizione in seguito all'evento hardware scatenato dal superamento di soglia di uno dei canali analogici.
L'unica cosa che puo' pensare di implementare e' un conditional retrieval software. in altre parole, bisogna programmare l'applicazione per far partire una acquisizione bufferizzata continua in background e monitorare in parallelo il buffer di dati acquisiti per verificare quando si verifica la condizione di soglia desiderata con relativo ciclo di isteresi e decidere quindi di prendere i dati successivi e farne log a video o su file.
Questo Esempio puo' essere usato come punto di partenza per sviluppare il codice. E' necessario sostituire il clock esterno che questo esempio usa con il clock interno della scheda (Timing configuration) e quindi implementare il codice per gestire isteresi e holdoff.
Saluti
AlessioD
NI

Similar Messages

  • How should i do?when i use the sc2345 for analog signal acquired!

    please help me!
    I have to use the sc2345+NI6221 for analog signal acquired. but i don't have a analog input module such as SCC-AIXX.
    So I want to pass the signal to the DAQ device. how should i do to connect the wire on the sc2345?
    how can I use the sc2345 for a pass connector?
    Thank you very much and look forward to your reply...
    Solved!
    Go to Solution.

    What kind of signal do you want to acquire?
    If it does not need any conditioning, then, you can connect the signal to 6221 with a terminal block such as SCB-68.
    Best regards,
    NISH AE Haiping.Fei

  • Analog Signal Acquiring Problem

    Hi, I'm using a DAQCARD-AI-16XE-50 for acquiring 6 Analog Signals Channels @1000Hz. At the first time I used the program that labview has as default by following "Labview->Daq solutions->Program the input scaling myself->custom daq solutions->Analog input->Acquire continuosly to spreadsheet". I can use this program on my laptop (Toshiba Satellite 4090CDS @300MHz and 64Mb RAM but not in my desktop Pentium IV @2,6GHZ. Do you have a clue?
    Thanks
    Maria

    Hi Ben, I'm a new user of Labview and what I did is to use the default program for acquiring analog signal that Labview has in Labview->Daq solutions->Program the input scaling myself->custom daq solutions->Analog input->Acquire continuosly to spreadsheet.
    I have been using this program for over a year and I've acquired lots of data with no problems at all in my laptop and my AMD k6-2 @ 450MHz old desktop and now that I have improved my computer to a better one is not working!
    I just want to save some data @1000Hz of sample frequency. Normally I get around 79200x6channels to after analyze it with Matlab.I don't mind saving it after all the proces of acquiring is finished, so if you think that could be the solutions tell me what do I have to ch
    ange in the file. But again, I don't know how to use labview, i'm new on this.
    I've copied it to an image. Hope this help!
    Thans again,
    Maria
    Attachments:
    program.JPG ‏101 KB
    configured_channels.JPG ‏54 KB

  • Long term analog signal acquire

    hi.
    i got NI-USB6259 with signal express 2.0, and i need to acquire (and save to a file) 4 analog inputs at 200KHz for at least 20 seconds.
    the device by itself canot acquire such mass of acquisitions.
    i had a labview base software that can acquire the signals and writes the buffer contant to a file, each time it was full.
    but how do i do that with signal express?  

    Hi Ofir,
    One thing to keep in mind is that the performance you will be able to get out of this type of acquisition is system dependent.  Because you are acquiring at a fast rate on multiple channels, the buffer that DAQmx allocates in your PC memory will be filling up at a very fast rate.  Depending on your system, it would be likely that you would run into an overwrite error (DAQmx error -200279), where samples are overwritten in PC memory before they can be retrieved by DAQmx and written to file.  Ways to prevent this error are to sample at a slower rate and increase the number of samples to read (in a continuous acquisition, this is the number of samples that the DAQmx Read will retrieve from PC memory on each iteration).
    In general, the TDMS format is going to be your best bet because it is a binary format and is optimized for high-speed acquisitions.  Once the acquisition has completed you can right-click on the log file and either convert it to an ASCII file or export to Excel.  There is a KnowledgeBase article here with some pointers on how to optimize SignalExpress for acquisitions such as what you are trying to do.
    Regards,
    Andrew W
    National Instruments

  • How to acquire analog signal and send a TTL pulse at the same time based on PXI 6123

    Hi,
    I am using a PXI-6123 data acquisition card, as the picture show in the attachment ,I want to acquire the analog signal of ai0 through reference analog window and at the same time send a TTL signal to trigger my camera. I have tried two methods, one is using the DAQmx Export signal.vi another is using DAQmx connect terminals, but when the data acquisition card acquire the analog signal, the DAQmx Export signal.vi and the DAQmx connect terminals sometime can send an TTL pulse ,sometime can not.
    I don’t know why?  or some other method that can achieve my arm is appreciated.
    Regards
    chunlei
    Attachments:
    method export signal.vi ‏21 KB
    method connect terminal.vi ‏36 KB
    Send a TTL pulse.JPG ‏288 KB

    Hi,
    Have things changed over the years?
    I need to syncronise a digital output (Modul NI9474) and an analoge input (AI-Modul NI9203) module. I need to measure time intervals from a flank in signal A to a flank in signal B. I would like accuracies of the order of 1 ms. Currently, the signals are not synchronised, with errors of the order of 2 times the block length (block size x sample rate), sometimes much higher. The best I got so far was a block size of around 20 with a sample rate of 1 kHz.
    If I use the master and slave settings on the RTSL settings, my program doesn't run properly.
    If I use digital signals for input and output, I can syncronise them with RTSL settings and everything is good, but I can't always do that.
    Also, if I do anything in the GUI (such as scrollowing something or going to another window), my output gets screwed up properly.
    1. What can be done to synchronise AI with DO?
    2. Is there something that can be done to avoid messing up the output when something happens in the user interface? (I know that I am messing up the outputs as they make some valves switch and that is loud).
    Thanks in advance!

  • How to input/output a digital signal and acquire an analog signal at the same time?

    Dasylab, version: 8.0.04
    Acquirement Card: PCI1002L
    When I use DasyLab to acquire the analog signals is no problem without digital inputs and outputs,
    and when I use DasyLab to input or output a digital signal is no problem also, but when I do that at the
     same time, DasyLab tell me the rate is too high and stop.
    so, I searched the manual book1 (user guide) for that, it showed me :
    To internally equalize measurement time and system time in the analog input, digital input and counter
    hardware modules, use the following settings:
       Synchronization: PC Clock
       Sampling rate: <= 5Hz
       Block size: =1
    the problem is, if I set the Sampling rate to 5Hz, the speed of the acquirement datas is not enough for my
    application.
    so, how to improve it? who can give me a example programm for me. thanks!
    by the way, I come from China, my English isn't good, I'm sorry.
    Allen, China.

    Hi,
    Have things changed over the years?
    I need to syncronise a digital output (Modul NI9474) and an analoge input (AI-Modul NI9203) module. I need to measure time intervals from a flank in signal A to a flank in signal B. I would like accuracies of the order of 1 ms. Currently, the signals are not synchronised, with errors of the order of 2 times the block length (block size x sample rate), sometimes much higher. The best I got so far was a block size of around 20 with a sample rate of 1 kHz.
    If I use the master and slave settings on the RTSL settings, my program doesn't run properly.
    If I use digital signals for input and output, I can syncronise them with RTSL settings and everything is good, but I can't always do that.
    Also, if I do anything in the GUI (such as scrollowing something or going to another window), my output gets screwed up properly.
    1. What can be done to synchronise AI with DO?
    2. Is there something that can be done to avoid messing up the output when something happens in the user interface? (I know that I am messing up the outputs as they make some valves switch and that is loud).
    Thanks in advance!

  • How do I set a threshold from an analog signal (4-20ma) coming in on a cfp AI 110, to trigger an alarm on my UI?

    I have the alarm set, indicator set,  just need a digital trigger from an analog input. I realize I could use an external switch into a digital input, but would rather use what we have. We are using this analog signal for other purposes as well. This application is for controlling a machine. Thanks.....

    Hi Bob,
    The way you have your Case structure setup now is that the “7” case will only get executed if the value from the wire is exactly 7. This same applies to the “8”. Also, there is no default case, so if value does not match any of the cases then your indicator will not change.
    You indicated earlier that you need the indicator to be ON when the value is below 7mA and OFF when above 7mA. You will want some like this:
    Alternatively could just use the Not function inside the Boolean palette to achieve the same functionality without the case structure.
    You will want to check out the LabVIEW Training Page.
    Message Edited by DiscoBall on 03-27-2009 12:12 PM
    Message Edited by DiscoBall on 03-27-2009 12:13 PM
    Joshua B.
    National Instruments
    NI Services
    NI Support Resources
    NI Training Resources
    Attachments:
    compare.jpg ‏27 KB

  • Acquire analog signal with NI PXI 1042 with RT

    HELLO,
    Do you have an example of this program ??
    I ACQUIRE a analog signal on the enter of the PXI and then i must to write it on the RT computer !!
    Thank you for your help!

    Hi,
    You can find examples in the LabVIEW "NI Example Finder". You can access it in the LabVIEW help menu. Click on "Toolkits & Modules" then "Real-Time" to find RT examples.
    Best regards.
    Benjamin
    Application Engineer
    National Instruments

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

  • Time Coded Analog SIgnal

    Hello,
    I am relatively new to LabVIEW.  I am  working with a device which sends out an analog signal (4-20mA) that is time coded with 6 pulses.  I need to program LabVIEW to read the values of the 6 pulses, or really 5 because the first pulse is an identifier, see the attached pdf file.
    The signal starts with a 20mA signal for 2 sec; this is the identifier signal.  There is a pause for 2 sec and then the first of five signals, which are transmitted for 2 sec each with a 2 sec pause.  At the end of the sixth signal there is a 30 sec pause (4mA).  The identifier pulse will always be 20mA but the five other signals can vary in amplitude.  I need assistance in reading these five signals; from here I can scale the mA value to what I want.
    I am working with LabVIEW 8.2 and I am using an ENET 9219 module.  I can acquire the signal graph it, display the value etc and I can also trigger off the first pulse, but the rest is proving to be difficult.
    Thanks for your help!
    Brian
    Attachments:
    analog signal.pdf ‏37 KB

    To get an idea of what the signal values are take a look at the spreadsheet and the short code to generate the sample data.  At the end of the last pause (30Sec) the signal repeats again, starting with the 20mA identifier pulse.  This devise is a fluid monitoring sensor for hydraulic oil.  The idea is to have this continuously read data and display all 5 signal values.  Display does not need to be instant, as with temperature and or pressure readings.
      I tried to use the Get Waveform Subset, but experienced an error.  I was trying, as a simple test, to see if I could manually trigger the start of the recording when the 20mA pulse came up.  When I trigger how do I get the subset to start from 0 on the time line?  If I could start from 0 every time I could read from the approporate time (t) to read the value at y.
     Thanks.Brian  
    Attachments:
    SampleData.xls ‏29 KB
    short code1.pdf ‏36 KB

  • 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

  • Is there a VI availible that will allow one to interact with an analog signal

    Hello all,
     I am new to the sight and look forward to participating. I have a project that I’m working on and I would like to ask for your thoughts and direction if you’re willing. I have a few weeks left before completing an electronics program degree and Labview is one of the classes. The project I have chosen is to illustrate the differences between a micro controlled system and Labview controlled environment. I will be  acquiring a signal through a ultra sonic distance sensor. The analog signal will be produced after which  acquired  through a SCB – 68 connector block and converted using the pci-mio-16E. The sensor operates at 40 kHz emitting a 5v pulse (burst) then falling to gnd for a short period followed by a 5v rise and staying high for a period of time waiting for the return of the frequency. This time period represents 3 inches to 27 ft in distance.  I would like to interact with this signal through the distance period (portion) and output a string displaying a numeric value of the distance on the front panel obtained from an array built from different periods of the signal.  I am not clear on what Labview function offers this type of control.  I am hopeful in utilizing a vi or some type of trigger that allows me to build an array produced by some math functions.  Any help would be appreciated.
    Thank you, dhitch

    First thank you for your response, I will have an opportunity to make a capture tomorrow in class.  I believe I have run across the waveform measurement VI in my searches and am sure it’s a very good choice. The trigger VI you suggest, going by the name, should be my ticket. Would you imagine a delay or decreasing time after the capture, allowing the trigger VI time to respond to an output configuration be required?
    If I remember correctly the sampling rate capabilities are 500K samples/ second with 12 bits of resolution and as I say that it seems some of the capabilities rely on the processing speed of the computer. I guess I will kick the tires tomorrow hey.  There are 2 class periods remaining to finish our projects @ 2 hrs / class and my anxiety is a bit high. Wish me luck and thank you so much.
    dhitch

  • Synchronize Motion velocity with DAQ analog signal

    Hi Everybody
    I am acquiring analog signals using hw trigger and external clock with C and A signals of a 1024 counts TTL encoder.
    Now I want to measure the rotation speed of a shaft. I have a Flex-Motion board with which I want to read the velocity (or the same encoder), but I don't know how to synchronize each scan of the analog signals with the velocity signal for that instant.
    I can´t use RTSI bus because my Motion board doesn´t have RTSI connector.
    Software and hardware:
    LabView 6i (v. 6.0.1.b3)
    DAQ-Board: PCI-6023E, NI-DAQ 6.8.1, MAX 2.0
    Motion board: PCI-FlexMotion-6C, NI-FlexMotion 5.0.1
    Thanks a lot for your help.

    Hi chia,
    with the hardware configuration that you have, I think it´s not posible to synchronize both boards due to you cannot share the same clock source (not RTSI on the motion board).
    http://zone.ni.com/devzone/conceptd.nsf/2d17d611efb58b22862567a9006ffe76/66e6f4ee7e0848d686256a55006...
    Sorry for the delay :-)
    Regards
    DiegoM.

  • Input analog signal with trig signal on DAQPad6020​E

    I would like to record an input analog signal in continous with trig signal on falling edge. The frequency trig is 3.87hz (258ms)with 5V level. In fact I want to record the input analog signal every 258ms.
    I use a DAQPad6020E and the VIs "AI-Config", "AI-Start" and "AI-Read" with a "digital A" trigger type (PFI0/TRIG1 on block connectors) and record datas in a file.
    I use the following configuration:
    - sampling rate= 100000 S/s (max rate DAQPad6020E)
    - minimum scan= 25200 pts
    When I read the datas I notice that the gap between the first point of the first acquisition and the first point of the second acquisition is 1016ms and not 258ms like the trig.
    I change the configuration:
    - sampling rate= 10000 S/s
    - minimum scan= 2520 pts
    The gap is now 516ms (it correspond to two trig)
    An other configuration:
    - sampling rate= 155 S/s
    - minimum scan= 40 pts
    The gap is 516ms (it correspond to two trig)
    I use also the VI "AI-Wave" but the results are the same.
    I don't understand what happend. Maybe it's due to the card limits ?
    Thank you for your answer.

    Hello,
    A trigger is an external stimulus that initiates one or more instrument functions. Trigger stimuli include a front panel button, an external input voltage pulse, or a bus trigger command. The trigger may also be derived from attributes of the actual signal to be acquired, such as the level and slope of the signal.
    A trigger is not a clock.
    If you want acquire with a specific clock, I advise you to use external clock. Instead of using your signal as trigger, use it as external clock.
    Have a look at "Cont Acq & Graph Ext Scan Clk - D trig.vi" example. This example is provided with LabVIEW (Help >> Example Finder).
    Here a tutorial about external clock acquisition :
    http://zone.ni.com/devzone/conceptd.nsf/webmain/7d​8eaea1d87cfb2686256802007b8c52?OpenDocument
    Regards,
    Isabelle
    Ingénieur d'applications
    National Instruments France

  • Triggering an analog signal using USB6008

    Hi I'm trying to use the start trigger with DAQmxBase acquiring analog signals with the USB 6008.
    When i configure the trigger as Start Digital Edge I become an answer, but only starting at an rising edge.
    I want the acquisition to start at a define level, so I've tried with Start Analog Edge, but the acquisition is stopped.
    Can someone help me how to configure better than i do?
    Thanks.
    Regards
    Patrick
    Patrick Etoumann

    Hi!
    It's not possible to configure an analog trigger with an USB 6008 -> only digital trigger is available!
    If you want to start on a predefined level then is the only option to do this with an analog-software trigger!
    http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=C16B1501B4D9168DE034080020E74861&p_...
    regards
    ThSa
    http://www.newgistics.com

Maybe you are looking for

  • How to spell a word, one letter at a time, one letter per clip

    I can't figure out how to do this. I just purchased PE and I'm creating a small clip with a song as the audio. I'm an iMovie '11 user trying to utilize PE. So is there a way to do this? I have add a clip, add the letter B, I copied and pasted that cl

  • Windows 7 x64 on T500 (ger)

    Hi, since yesterday I'm installing and configuring windows 7 x64 german at my Lenovo T500. After fresh install it seems to miss not soo many device drivers - so I installed the bunch of Lenovos windows 7 beta program. The following I don't get to run

  • Cannot upload songs to iTunes Match

    Hi all, I have the account for something more than a year. After a year of uploading tracks and updating my Library i managed to keep only the songs i am interested in and removed all the duplicates. That was a good time to clear my itunes match and

  • IN SM51- Need to change Application server hostname as small lock

    Dear All, In my SAP R3 4.6D system setup is like 1. R3 Database server (CI+DB) with one application server(DI). In Application server SM51 transaction screen application server host name is  shows as Caps lock. But DB server hostname is in small lock

  • Want t-codes

    Hi I want T codes for following- 1.Vendor list for company code. 2.Material code list with price mentioned in material master.