Generate a harware trigger from incoming analog signal at specified level

Hi
 I want to generate a hardware trigger at the counter out of my DAQ device from a incoming signal. As soon as the incoming signal crosses a specified voltage I want to  get a trigger at the Counter out of my DAQ device.
Thanks
Manish 

Dear Manish,
If I understand you correctly you want to create an analog trigger on a counter output line. Which DAQ device are you using?
You can't do this directly in hardware, but it can be done with the Analog Comparison Event line. Create an analog input task with an analog trigger. (There is an example of how to do this in the Example Finder. In LabVIEW go to the Help Menu and click Find Examples. Browse Hardware Input and Output>>DAQmx>>Analog Measurements>>Voltage>>Cont Acq&Graph Voltage-Int Clk-Analog Start.vi.) Before this task route the Analog Comparison Event line to a PFI line using DAQmx Connect Terminals.
Then perform a counter output task with a digital trigger. (Example Finder. Browse Hardware Input and Output>>DAQmx>>Generating Digital Pulses>>Gen Dig Pulse Train-Continuous-Dig Start.vi.) Wire the PFI line that you connected to the Analog Comparison Event into the digital trigger source input.
Hope this helps! Have a great day!
Sincerely,
Marni S.

Similar Messages

  • 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

  • Determining Analog Signal Frequency with Prebuilt VIs

    Don't know what is wrong with this code.  Am trying to determine the frequency of a signal from an analog signal (paddlewheel flowmeter).  As a starting point, I'm using a simulated square wave with the "Timing and Transition Measurements" VI and am getting following error:
    ~~~~~~~~
    Error -20308 occurred at Timing and Transition Measurements -> frequency_determination_example.vi
    :3"  (waveform index 0 of 1)
    Possible reason(s):
    Analysis:  The waveform did not cross the mid reference level enough times to perform this measurement. Check the signal length, reference levels, and ref level units.
    ~~~~~~~~~
    However, there seems to not be any options in the "Timing and Transition Measurements" VI to set mid reference levels.
    Any insight into why this simple problem is occuring would be appreciated.  Attached is my program's simple code.
    -tsippel
    Attachments:
    frequency_determination_example.vi ‏101 KB

    Hi,
    Dennis was right (without looking at the code). You generate one (1) square wave, if you had generated 1000 sampled you'd get the correct answer.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

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

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

  • How to trigger from analog input channel

    I am using a BNC-2110 into a 6062E card. And I am sure this question has been posted several times but I was unable to find a clear answer. I am trying to use the devices ai0 channel as my trigger source. I tried using a voltage source in the trigger reference, and that almost works but it only works for several loops before coming up with an error. If someone knows what I may be possiblely doing wrong or where to find this information, any assistance would be great.
    - there is always an easy way, but it is always the hardest to find

    Hey Henry,
    The BNC-2110 is just the connector block. What card do you have the is interfacing this block with your computer? (should be a PCI or PCI-express card). Are the GPS receivers outputting digital signals that conform to TTL compatible logic levels (are the signals 5V or 0V with no more than 1.6mA of current)? If they are outputting a digital signal, then you can send these signals into any of the PFI lines to act as a trigger (or to the trigger lines). 
    For example, if you would like to perform an analog acquisition each time the trigger hits and have an X series card, you can open up example finder (help»find examples...) and then open Hardware Input and Output»DAQmx»Analog Measurements»Voltage»Cont Acq&Graph Voltage-Int Clk-Retriggerable.vi. Then make sure your Trigger Source parameter is set to the same PFI line that you are sending your GPS signal to (on the BNC-2110, the trigger connections are really just PFI0 and PFI12, but these are common lines to use for triggers, but any PFI line will work). If you have an M series card, and cannot do retriggerable analog input, you can reference this example for how to use counters to workaround this limitation of our M series cards: https://decibel.ni.com/content/docs/DOC-6801
    If your GPS signal isn't digital, and is some arbitrary analog square wave, you can use an example like this: https://decibel.ni.com/content/docs/DOC-4657 to use the analog value to trigger you're reading (you just need to set the appropriate window for your analog signal in the VI).  I hope this helps!
    -Nathan H
    Software Developer
    National Instruments

  • How to catch an analog hardware trigger from the PFI0/TRIG1 pin?

    I have a PCI-MIO-16E-4 DAQ Board, a BNC-2090 Connector Block and LabVIEW 6.1. How do I configure a VI like the example 'Acquire N - Multi-Analog Hardware Trig.vi' to accept an analog input trigger from the PFI0/TRIG1? What parameters do I give to the AI Config, AI Start and AI Read VIs? The parameter 'Trigger channel' only seem to accept channel numbers, so what channel number do I have to give to make it undestand that I want to catch the trigger using the PFIO/Trig Channel?
    Thank you.

    Hi,
    look into Help!
    AI Start needs on "analog chan and level" the string "PFI0" to use PFI0 for analog trigger input. In the example it is the control "trigger channel".
    Unfortunatly the help is not complete. "analog chan and level" is a cluster of two elements, the channel name and the level. The level is not explained in help.
    Waldemar
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

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

  • How can analog signals are measured every several counters from Quadrature Encoder using USB-6221

    how can I sample analog signals every counters from quadrature encoder using usb-6621?

    There is a well documented example of what you are trying to do at :
    http://zone.ni.com/devzone/explprog.nsf/webmain/DD85F07A7CA99F8F862568690062DE54?opendocument
    Don't be afraid because of the BNC-2120. It is just used in this example to simulate the pulses from a device. So it is not needed in your case. Obviously, you will need to change the number of increments/rev according to your encoder to get correct RPM values.

  • 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

  • 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

  • How can I delay analog signal?

    I have an analog signal, the frequency is less than 1kHz. I want to get a delayed analog signal. Is it possible to realize analog delay generator using labview (daq card is PCI-6115)? I hope I could specify the delay time.
    Any suggestion will be greatly appreciated!
    Stephen

    Hello Stephen,
    It is possible to institute a delay an analog output. This is best done by specifying a trigger and then beginning the output when that trigger occurs.
    Below is a link to an example program developed for LabVIEW that waits a specified number of seconds and then triggers analog output to begin. This code performs analog input as well, but for your program you could remove that portion. The trigger that is used is RTSI pin 0. After a specified period of time, the RTSI pin 0 is set to 1 and then the analog output begins.
    Analog Input with Delayed Analog Output
    Take a look at this example and
    try to build from it for your code. If you have any further questions on this issue, let me know.
    Regards,
    Scott R.
    Applications Engineer
    National Instruments

  • 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

  • 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

  • Help - Font Book and font Library doesn't work

    I've just updated to a new iMac on Yosemite, and Font Book doesn't work. Neither does putting fonts into the "Library" There is a range of fonts that ARE working that are already in either place, but some (that worked up until two days ago in my old

  • Custom Event for Purchase Requisition Create, Change & Delete

    Hello Experts, I want to create a custom event which triggers on Purchase Requisition Create, SAP provide's standard event's for purchase requisition release but not for create. What are all the steps and how to create a new event. Thanks in Adavance

  • Badi for FB01 post

    Hi friends Someone knows a BADI or exit for document post/fi? I mean in FB01 transaction. Best Regards

  • Adobe Viewer issue

    I have been experiencing of redownloading my folios each time I open Adobe viewer. Is this a known issue? My clients are experiencing the same thing. Thank you in advance. Joe Canon

  • Super/subtype allowable values

    When I run the Database design transformer in Designer6i for a table with subtypes and sub-sub types (so one table which contains the sub- and supertypes, not more than one table) I get a table definition where the field 'table alias_type' is added.