Generar onda cuadrada asimetrica NI PXI-5412

Hola,
Estoy empezando a manejar el AWG PXI-5412.
Me esta resultando dificil entender como generar una forma de onda (o secuencia) totalmente personalizada para mis necesidades.
La verdad es que los ejemplos de NI, en mi opinion, son bastante complicados, y poco aclaratorios.
La cuestion es que, lo que busco es una forma de onda tonta como esta:
No tiene por que ser cuadrada, y no tiene por que ser exactamente asi, pero, creo que con este ejemplo se me entiende perfectamente.
Estoy mirando y tratando de enterder el ejemplo que ellos llaman "Fgen Arb Sequence.vi", pero no se si voy por buen camino.
Cualquier comentario se agradece.
Saludos.

Similar Messages

  • Testing a function generator using PXI-5412

    I want to test a function generator example by reading it from a PXI-5412, but I dont know what do I suppose to read the input from.

    I don't understand. The PXI-5412 is a function/arbitrary waveform generator and it cannot read anything. It is an output only device. To check the output, you can connect it to a scope.

  • Setting up a PXI-5412 Trigger

    Hi,
    I have a PXI-5412 FGen and a PXI-5105 Digitizer. I was wondering if anyone could explain how to internally and/or externally set up a trigger. The idea is that I'm sending a signal with a pulse repetition frequency (PRF of 500Hz for example) from my Fgen to one of the channels on my, but I would like the digitizer to acquire at that same PRF so that my signal is not all over the place.
    Both these PXIs are installed on a PXI-1044 chassis which I'm assuming was correctly set up!
    I know this should be relatively simple, but I don't know where to start. I've been seeing a lot of the NI-TClk VIs in the examples and discussions forums. Should I be looking to use those? And will I only be using one set of VIs for the Fgen or do I have to play around with the scope as well?
    If need be, I can provide more details on the way I set up the Fgen and the scope.
    Thanks,
    Marc

    Hi Marc,
    You're on the right track. TClk is one of the ways to synchronize your cards, and makes the most sense for your application.  You will need both a NI-SCOPE and NI-FGEN session with NI-TCLK tying the two together. Refer to this example:
    NI-TCLK Synchronize AWG and High-Speed Digitizer
    Let me know if you have further questions.
    Cheers,
    Aaron
    National Instruments

  • Generating DC using PXI 5412

    Hi ! All,
    I program the PXI 5412 for AWG & FGEN application.
    I can generate various waveforms like sine, triangle, square, ramp & noise.
    I'm trying to generate a DC signal of say 5V amplitude.
    I'm able to get it correctly for 0V. But for any non-zero value, I cannot see the rise in amplitude of the DC signal in the CRO.
    I've wired the "Standard Function"  constant to the output mode terminal of the  niFgen Configure Output Mode.vi
    What is the solution for this problem?
    I'm able to capture all the other waveforms at desired amplitude with desired offset too.
    So kindly clarify me regarding this.
    Regards,
    Partha.
    - Partha
    LabVIEW - Wires that catch bugs!

    I haven't used this device, but for a quick and dirty fix I'd try
    setting a square wave of the desired amplitude with a period twice as
    long as your anticipated work session, then add a reset routine on the
    edge transition to start the waveform over (just in case you are
    working overtime ).
    Paul Bade

  • Retardos de ondas cuadrada

    Hola a todos, estoy realizando un programa el cual me permita establecer el retardo entre ondas, para este caso la cuadrada, estoy utilizando el simulador de ondas (express) como square, y el Timing and Transition Measurements para conocer el periodo, duty, frecuencia. Pero al ejecutarlo me sale este error:
    Error -20308 occurred at Timing and Transition Measurements -> analisis
    frec ampl.vi
    :4"  (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.
    Estoy trabajando con el Labview 8 y windows XP.
    Si alguien me pudiera colaborar para corregir este error o como poder establecer el retardo entre ondas estaria muy agradecido.
    GRACIAS y envio el programa que hice.....
    Attachments:
    analisis frec ampl.vi ‏193 KB

    Hola, gracias por utilizar el Foro de National Instruments.
    Fíjate que el error que te marca es porque si la señal a la entrada del VI no contiene suficientes bordes para completar la medición entonces genera este error. En este aso simplemente eleva la frecuencia del número de data points de la señal que es pasada a este VI que estas usando.
    Vi tu ejemplo y a partir de 16Hz no tienes problemas, pero mira aquí te mando un ejemplo que te funciona y es más o menos el mismo, que te parece si lo checas y para que no tengas problemas.
    Gracias por utilizar nuestros productos y cualquier cosa que necesites, sube tus dudas al foro.
    Para una respuesta mejor y en español, tenemos un foro especial diseñado en español, por lo que te sugiero que para un mejor servicio en la comunidad de habla hispana usemos ese foro.
    Que tengas un excelente día y te mando un saludo
    NorSa
    AE LATAM
    NorSa
    NI Applications Engineer Latin America
    Para Soporte entra aquí
    Attachments:
    Square_Wave_Measurements[1].vi ‏100 KB

  • Advice on arranging modules in a 2-chassis PXIe system

    Hello,
    System contents
    We have a system that consists of:
    2 PXIe-1085 chasses, connected via a PXIe-8384/PXIe-8360
    15 FlexRIO cards (PXIe-7962R + NI-5734), to acquire data at 10 MHz
    1 function generator (PXIe-5412)
    1 timing card (PXIe-6672)
    Other cards (switches and low-speed I/O)
    Use cases
    In one mode of operation, we need 60 FlexRIO channels to listen at all times. When any one channel exceeds the threshold, all 60 channels must be simultaneously acquired and logged to disk (i.e. every FlexRIO card must be able to trigger acquisition in in all 15 cards)
    In the other mode of operation, we need to generate a pulse from the PXIe-5412, and simultaneously acquire from all 60 FlexRIO channels from the instant the pulse fires.
    Question
    Essentially, we have 17 timing-sensitive cards (15 FlexRIOs + 1 function generator + 1 timing card), but only 16 cards can fit in one chassis (because 2 slots are ocupied by the embedded controller and the MXI-Exprress card). So, one of these need to be on the other chassis. The two obvious options then are:
    FlexRIOs plus the function generator on the 1st chassis, timing card on the 2nd chassis.
    FlexRIOs plus the timing card on the 1st chassis, function generator on the 2nd chassis.
    Does it matter which option we go for? Do we get any performance benefits and/or ease of coding either way?
    Thanks in advance!
    Solved!
    Go to Solution.

    If all you care about it the clock accuracy, there is an input on the back of the PXIe-1085 for an external 10MHz clock and an output of the 10MHz clock.  So everybody can use the same clock.
    But you care more about triggering.  So I see two real options:
    1. Put everything that must trigger each other in the same chassis.  This would mean putting the timing source in the second chassis and using the reference clock I/O on the chassis to share clocks.
    2. Get a second timing module.  The module should have PFI lines so that you can share trigger signals.  I would still use the refernce clock I/O on the chassis just to make sure everybody is using the same clock.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • External clock for PXI-6143

    Hi,
    I am trying to configure PXI-6143 to use an external clock exported from an arbitrary waveform generator (PXI-5412). I followed the example code (Fgen DAQmx Synchronization.vi) and use one of the RTSI trigger line for exporting the clock, but couldn't get it to work. When I run the attached code, it returned an error saying not enough samples were collected by the AI task, but the samples are returned correctly if I just let PXI-6143 use its internal clock. Could someone point out what goes wrong in this code, please?
    Thanks!!
    Solved!
    Go to Solution.
    Attachments:
    sync_fgen_ai.vi ‏51 KB

    Sorry, just realized that I posted the wrong code.
    Attached is the correct version with the clock source configured to one of the RTSI lines.
    Thanks!
    Attachments:
    sync_fgen_ai_working_with_internal_clk.vi ‏53 KB

  • Low Amplitude Signal on PXI-4461

    I am curently using two PXI's to output an analog signal through LabVIEW 2009 to an oscilloscope:
    PXI-4461 is running the attachment (labeled appropriately) below.  It also produces the green line on the graph.  It appears correct on the oscilloscope.
    PXI-5412 is running the other attachment (labeled appropriately) below.  It produces the yellow line on the graph.  This amplitude is measured correctly (or so it shows in the margin of the picture), however it gives me a "Low Signal Amplitude" warning and displays the wave much smaller than the "correct" version from the 4461. 
    *Note:  I suppose it is possible that the PXI-4461 (green) is wrong and the PXI-5412 (yellow) is right, but since the PXI-5412 (yellow) produces the error, i am lead to believe that it is the problem.
    I could use some help figuring out what might be causing this inconsistency and how might I go about remedying this issue.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    If someone helped you out, please select their post as the solution and/or give them Kudos!
    Solved!
    Go to Solution.
    Attachments:
    PXI-4461 Function Generator.vi ‏87 KB
    PXI-5412 Function Generator.vi ‏23 KB

    This has nothing to do with LabVIEW.  It is all oscilloscope related.  The reason the yellow signal is smaller than the green is because your scales are different.  Look at the bottom of your oscilloscpe: Ch2 says "500mV per division" while channel 3 says "1V per division".  You probably get a "low signal amplitude" because you signal is less than "2 divisions" and the scope sugests you to change this.  There should be a button named "Autoscale" on your scope which you can hit if you want. 

  • How to generate a single cycle of a waveform?

    I need to generate a single cycle of a waveform. Is this possible?
    The help document for function "niFgen_ConfigureOperationMode()" says, "NI signal generators support only Continuous operation mode." I guess this statement is pretty clear but it sure shoots a hole in my plans. We just bought this arb assuming it can do this. Is is really not possible to generate just one cycle of a waveform?
    My arb is a PXI-5412.
    thanks!

    This is possible with your device.
    You can do an Arbitrary Sequence of the waveform you want, then take an external pulse and use triggering to send that sequence however often you desire.
    Look for the "Arbitrary Waveform Mode" topic in the NI Signal Generators Help under Start > National Instruments > NI-FGEN > Documentation for more information on this mode.
    Thanks,
    Joel C
    National Instruments

  • DAQmx- create channel- no channels found

    Hello,
    i am new to labview. So maybe my question is easy...
    I want to generate a signal. That's why i am using the DAQmx-create channel.vi . I i created a control to chose the channel, where the signal is generated. But no channels are found.
    i am using PXI 5412 and my device is visible in MAX. So i don't know what is the problem. Can anyone help me?
    Thanks,
    Ratta
    Solved!
    Go to Solution.

    The 5412 is an Arbitrary Waveform Generator. It does not use DAQmx. It uses NI-FGEN.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How can I make the marker event pulse width longer in NI-FGEN?

    I want to generate a marker event on PF0 line using NI-FGEN.I can set the marker event pulse width but when I was trying to make the pulse width units as 65 I was getting an  error-1074115931. 
    How can I make the marker event pulse width longer without using script as I am using PXI-5412 which is not supporting Script.
    Can anyone help me out in doing the same?

    Unforunately, as you mentioned, the PXI-5412 does not support scripting mode. This will limit you to 1 marker using sequence mode. However, the PXI-5421 and PXI-5422 would allow the functionality. 
    As far as making the pulse width longer, and as the KnowledgeBase Article that you linked to discusses, I don't think it will be possible to create a marker as long as 1us - 10ms using just the Marker properties and without using scripting. You can still try to do this with property nodes and see if you can get a usable result. Start with an example such as "Fgen Arb Waveform Marker" and use the "Marker Position" value to set the start time (you would want 0 here it looks like), and then "Marker Event Pulse Width Value" to change the pulse length, but again I am afraid you will probably reach the maximum of 640 ns here. If you're not able to get this going with the property node, you will need either a FGEN card that supports scripting or another card that does Digital I/O to accomplish this. 
    Thanks!
    Stephanie S.
    Application Engineer
    National Instruments

  • Generating single cycle sine wave using pxi5402

    Hi,
    I'm a relatively new user of NI hardware, had some experience with cRIO systems but not PXI
    I've got a PXI chassis with a PXI5402 fgen card, I'm trying to generate a single, double and triple cycle sinewave (user selectable) but have very little experience with creating waveform files, is there a guide to doing this or is there a vi which lets me create a (relatively) custom waveform, I'm using the 'fgen function generator.vi' example and was hoping to build on this, I'd like to be able to continually transmit my waveform or set a specific number of transmissions
    any help appreciated!

    Hi there, 
    I belive that what you are trying to achieve would be best achieved using the arbitrary function mode, unfortunately this isn't supported by the PXI-5402. As it is a  A PXI-5412 would be better suited to this task. 
    That is not to say, however, that this is impossible. I believe you can achieve single cycle generation using list frequency mode. http://zone.ni.com/reference/en-XX/help/370524M-01/siggenhelp/mode_frequency_list/
    This forum post explains a little more: http://forums.ni.com/t5/PXI/PXI-5402-Burst-generation/m-p/2163496
    Although the forum above mentions using multiple frequencies, list mode allows you to set a duration of signal generation allowing you to choose the number of cycles to generate through timing. 
    I recommend modifying the Fgen Sweep Generator.vi example to generate only one frequency for a specified duration. 
    I hope this helps. 
    Tim, CLD, CTD
    National Instruments (UK & Ireland)
    "No problem is insoluble in all conceivable circumstances"

  • Does anyone know what TClk error -250043 means?

    I need help finding this error code.  I have no idea what's wrong with this VI.  It was workig just fine last night and now I'm getting this unknown error.  Any suggestions?
    A little more info:  This is running on a RT PXI with 2 PXI-5412 AWG's and a PXI-6541 HSDIO. 
    Solved!
    Go to Solution.
    Attachments:
    CTS State Machine.vi ‏62 KB
    TClk error -250043.jpg ‏40 KB

    The PXI-1002 does not have different segments, so this is not the fault here.....
    Are there any changes on the system like update of OS components or something like this?
    Another thing you can check if all kinds of synchronization are messed up. There should be examples available to synchronize devices without TClk, but using e.g. a shared "master clock". Maybe your synchronization lines in the chassis or the SMC of one of the devices is damaged. So please check if it is a certain device creating the issue. You should swap slots for confirmation if the slot or the device is the problem.
    hope this helps,
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • -18004; An error occurred accessing the LabVIEW Run-Time Engine DLL.

    Hello,
    I have this error when i want to get a VISA session refnum from a viSession handle.
    This error occured when the specified class is IviFgen.
    The device concerned is a PXI-5402/PXI-5412 (i need to get the model with a property node - Inherent IVI Attribute... from the refnum)
    It also occured during a cast (if the class specified is niFgen).
    Could somebody help me ?
    Thanks !
    Attachments:
    ErrorLVRT_TestStand.png ‏11 KB

    Hi Ggraindo,
    This error occured during deployment? Which is the LabVIEW adapter version that you are trying to use, is it the 9.0.1? Do you have other LabVIEW or TestStand versions installed in your computer? This error only occured when you try to used the class IviFgen, or even just with a simple VI?
    What is the result of the error cluster from LabVIEW?
    Also, can you post a simple exemple to reproduce this issue?
    Regards,
    Rémi D.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    >> Les rencontres techniques de NI - Mesures et acquisition de données : de la théorie à la mise en ...

  • Help! LabView signal express

    Hola!, tengo un pequeño problema y me gustaria que me ayudaran!, estoy realizando  un espirometro de turbina! y estoy generando una  onda cuadrada y la estoy viendo desde el labview signal express , esta onda cuandrada va de 0 a 5Volt, y necesito  contar la los pulsos y integrarlos para obtener el grafico adecuado! ..... si me pueden ayudar se los agradeceria!

    Hola,
    ¿Está utilizando SignalExpress Limited Edition o versión completa? Si utiliza la edición limitada que no puede utilizar las funciones matemáticas de análisis y procesamiento de señales.
    Are you using SignalExpress Limited Edition or Full Edition? If you use the limited edition you cannot use mathematical analysis functions and signal processing functions.
    Saludos,
    Abel Souza
    NI Brazil
    Abel Souza
    Engenheiro de Aplicações
    National Instruments Brasil

Maybe you are looking for