How to use an analog signal to conditionally generate a TTL (or a square function) signal?

Hello world

I am using PCI-6229 and try to develop a code that can generate a TTL/place function signal from only one analog entry satisfies following conditions: 1. crossing a certain value (for example, 0 V); 2 slope edge of fall. The time delay between the point of passage and newly generated signal TTL/square will be essential to my measurement, and may not exceed 1 millisecond. Any suggestion on this subject? Thank you in advance!

You are using the measure called Excel add-in? That's what this forum is for. Otherwise, you should post to the multifunction DAQ card and speak the language you are using.

Tags: NI Products

Similar Questions

  • How to convert an analog signal into digital signal

    Hello

    How to convert an analog signal into digital signal, such that each sample of the analogue signal corresponding to 1.2V will be represented as '1' digital signal and other samples of the analog signal (which are not 1.2V) will be represented (converted) ' 0' in the digital signal.

    And how to view the wavefroms or graphical indicators signals.

    Thank you.

    If you have 1000 samples and you want to convert to digital, you get 1000 digital values.  Attached, that's what I mean.

  • How to create an analog signal of a text or a binary file?

    I'm trying out an analog signal of a file on a map of NOR-DAQ 6251 with labview 8.5. I found examples on the construction of a waveform, but I'm stuck at how read a text file and do a 1 d table to enter my amplitudes in the buildwaveform.vi and I can't find all the information on how to do it. Help or direction is appreciated.

    Thank you

    David

    What if all you want in the file corresponds to the values of Y, then a text file with a value on each line can be read. Read from a usable spreadsheet file. It will return a 2D you can then use array index to get a column or if you select Transpose, the array returned by 1 d would be used.

    If you want to create an example, use a 1-d array constant in a VI and pass it to the writing on a spreadsheet file.

  • How to use % symbol for parameters in conditions in Discoverer

    Hi all

    In fact, I have to add four settings in that
    two param should be % (average for select all) as a default.

    That is to say that we use LIKE '%' in the query.

    the problem is when I enter a value for a parameter, it should train for this value,
    and if I need anything, I should enter the "%" symbol,

    so, for what Iam confused how to use this,

    Although I tried with a few options, it receives satisfactory results.

    someone will help me please to achieve this.

    Thank you in advance

    Published by: user10271105 on Sep 17, 2008 03:37

    Hello

    You can create a parameter and give % as default. If you set the condition to use AS and when the default is used for the parameter, then the query contains LIKE '%' and everything is selected.

    If you are using a list of values with your parameter, then you must add the '%' to your list of values so that the user can select this value.

    However, this method will not work if some values in your database contains characters of percentage, because the condition LIKE 'ABC DEF %' will return as well as ABC % DEF ABCXYZDEF.

    Unfortunately like escape syntax is not available in discoverer, so you have to invent a value that the user can enter for all, for example ALL the default value for the parameter.

    Then use a similar State to:

    question LIKE: param OR item = DECODE (: param,'* ALL *', item)

    Rod West

  • How to measure differential analog signals

    I read the hand signals and measure single-ended and differential, but I still don't know if a method is appropriate for my applications. Basically, I connect a BNC to one of the analog channels. The NLC has the real signal in a single thread (internal male) and land in the other thread (external shielding). I connect different components to different analog inputs so that they cannot share the same field (or the negative terminal). What is the best way to acquire this kind of data. It seems incremental settings on Panel (BNC-2090) different records between, say, ai1 and ai9. I don't want that because I want to record the difference between the two wires that are connected to the ai1.

    Who said that a differential signal is connected to two different BNC? You need to look at the manual? The diagram in figure 2-2 is quite clear on the connections on the way in which the shield is connected in differential mode.

  • How can I use my PXI-6115 meter analog signal trigger to generate pulses of frequency

    I work on a PXI-6115 DAQ card and want to using the analog signal to trigger the counter it's generating frequency pulses. The manual says the analog trigger is supported, but I can't use an analog signal to trigger the start of work, in the test, I use the counter 0 to generate pulses and use the signal input port analog trigger PFI 0, can someone tell me what it is? My test VI. & error message appears in the attachment.

    Best regards

    If you read the error you can see digital triggers are the available trigger only when you use the output of the counter.

    You can work around this by setting up a dummy analog input task which will trigger an internal digital triggering when he sees the right analog trigger.

    See this thread for more details:

    http://forums.NI.com/T5/LabVIEW/DAQmx-start-trigger-analog-edge-VI-keeps-returning-error-200077/m-p/...

  • Compare two analog signals.

    How to compare an analog signal to another analog signal to see what signal has a higher value? I want to display the result on the façade with LED indicator.

    This will make a simple comparison of A > B. If your code is more complicated then you must set up a system of producer-consumer. You can find examples of this in the supplied examples.

    Here's a sample:

  • How do I output a digital signal to an analog signal

    Hi all, I use a PCI 6221 with LabVIEW 2010 (no add-on) with the CB-68LPR connection block and I want to use an input signal analog of voltage of between 0 V and 5 V of an LDR to change the brightness of an LED, so I can maintain a stable lighting for a webcam capture feature level image and treatment system.

    I can get the analog input voltage of the LDR (set up as a voltage divider circuit) using the DAQ assistant, via the channel of Ain 0 on the use of pins 68 (AI.0), 67 (AI GND) and 14 (+ 5 V) and write it in a graphic and digital display but I don't know how to write the value to a PIN that can be used for PWM I think assistance from pine 40 PFI 13 P2.5 and a digital (GND pin 13).

    I looked at the example of code that was written to produce a PWM signal, but these programs don't signal to a device/circuit, they are just "nothing stuff" that the PWM signal to a graph.

    Can someone help me or direct me to tutorials/code examples which are of real-world applications?

    Hello

    PWM can be done in DAQmx using a task of the meter output.

    I think that example 'PWM-Counter Output.vi' goes quite a long way to do want you want I think. It is located in the LabVIEW examples of shipping.

    I also found here:

    http://zone.NI.com/DevZone/CDA/EPD/p/ID/1710

    This could be useful a read thus:

    http://zone.NI.com/DevZone/CDA/tut/p/ID/2991

    Let me know if it's of any help.

  • Reading of analog signal using DAQPad-6016

    I'm reading an analog signal using DAQPad-6016.  An entry is on the ground, the other is Vdc.  I can't operate at MAX and I'm confused becaue MAX alone gives me an option for differential reading, but the list of pins give enough information on how to connect in a different way.  Is there a reference as well?

    Hello, Bernadette.

    This link should have what it takes to equip themselves properly: http://www.ni.com/gettingstarted/setuphardware/dataacquisition/analogvoltage.htm

    After that you have put work in place, specifically see step 11 for check the connections of the device.

    I hope this helps!

  • How to generate analog signals?

    Hi all

    I'm trying to generate analog signals to simulate the position of the valve. I also want to simulate the position of the valve 0 - 5V (analog signal).  I've implemented the numeric position of the valve by using the toggle switches, but I want to implement analog signals.

    You can help.

    Thank you

    You can just use a random number generator.

    Since you have no generator hardware signals of NOR, I'm not sure why you are posting to this Board. Generic questions of LabVIEW. Post to this Board.

  • Using Labview and PXI-4461, how can I AO0 output Signal Square and AO1 output waveform

    I am using PXI-4461 and Labview, boredom, generating 2 signals simultaneously.

    How can I get AO0 out square and exit AO1 SignWave?

    Help, please. (The example Code would be nice)

    Thank you.

    Create two signals and make a table with them.  Use DAQmx Create Virtual Channel to create two channels.  First waveform will be sent to the first string, second waveform on the second channel.

    I understand not all as calendar, clock frequency, amplitude, trigger and other parameters.  You can add these things.  This is just a basic example.

  • How to use 1-channel analog input for start/stop aquire sample second channel input analog?

    I have a little problem. I've just been programming in labview for 2 weeks.

    I'm trying to figure out how to use my channel of analog input on the USB-6009 case for start/stop (reference trigger and start) presented to the second analog input channel samples.

    I need the first analog input string to operate continuously and control sampling on the second.  When the second channel will start sampling program brings a new graph each time and saves it (I have all this that figure out).

    How can I configure the trigger so the lance program presented in for the second channel when the 1 channel reached above 2V (e.g.) and stop when it falls below 2V.

    I use a pressure force sensor on the first channel that gives me straight (up to) 5 V when it is pressed and nothing when it is not...

    Thank you.

    Grand... Thanks for the information!

    But can't I then make a 1 channel instead and wait until that meat of the max element value?

  • How to use 'LIKE' operator/substr/instr with if condition?

    Hello

    How to use 'LIKE' operator/substr/instr with if condition?

    I can use the following function:
    <? xdofx:InStr('ssStatus','Open',1) = '0'? >
    which returns true or false depending on ssStatus as Open *.

    But when I try to use <? If: xdofx:instr('ssStatus','Open',1) = '0'? > calculating <? end if? >

    It gives an error.

    Any suggestion? OR a solution?
    Thank you.

    Published by: user12427117 on March 10, 2011 20:42

    Published by: user12427117 on March 10, 2011 20:46

    You can try to use

    0? >

    Use contains to AS

  • How to use the search otherwise condition as

    Oracle 9i

    Hi all

    I work in the management of control here, we have a table named as OE_ORDER_LINES_ALL and the name of the column called UPI, and its length is 16 tank.

    Now the customer has the UPI with 13 tank and now, I need to check if all the IPUS are in the table.
    I have almost 600 of the UPI and I can't able to use as an operator. Y at - it one option other than as an operator.

    For example

    Resemble UPI this 050 009714373007G, but the customer gave this G 009714373007.

    Is there a UPI then I would use like this

    "Select upi in oe_order_lines_all where the upi as ' 009714373007 G %.

    If there is more than 2 UPIs how to use the search condition

    Any help is highly appricatable

    Thanks and greetings
    Srikkanth.M

    If you know that you will benefit from a number of values of UPI 13 characters and you should look for if there are rows in the table that match the 13 first characters

    select upi
      from oe_order_lines_all
     where substr(upi,1,13) IN( '009714373007G', <> )
    

    Justin

  • How to use the Page number in the IF condition

    Hello

    I have an obligation to change the output based on Page numbers. Can you please help me how to use the Page number in IF condition.

    Thank you

    Can u send me a sample xml and RTF file to my email in my profile identification, so that I can have a look.

Maybe you are looking for