Synchronization of AO and output counter, arming and triggering the sequence of events

Hi all

I'm trying to synchronize a counter (used as a digital pulse) and analogue of a custom waveform output read from the file on a USB-6211. The goal is to always have these running until I hit 'STOP' and to be able to change the position of the pulse relative to each other. I created a VI by combining and modifying the Cont.Gen.Wfm.Int - Clk.Non - Regen.VI and the Continous.VI Gen dig Pulse Train and I'm now able to produce the two signals to the desired frequency, but I can't seem to get the "Initial period" to work correctly. The values that I come home do not seem to match what is happening LeRiz, and the spacing seems to vary from run to run (within each series is constant). In a previous post, Alfred has suggested:

"Trigger counter outputs out of the trigger to start AO and adjusting the setting 'Initial period' should give you what you are looking for."  Don't forget to start the tasks of meter in the software before the tasks of the AO (if they are armed and ready to go before the start AO is sent). »

(link here)

I tried to use the controls and the propertynodes (perhaps incorrectly), but it doesn't seem to make a difference.

I think what happens is that my arms and firing sequence is not done correctly. I read on as much information as I could about the outbreak and armament, but I don't know that I understand correctly. Most of the examples I found using an external trigger or perform analog input tasks finished. Does anyone have a suggestion on how to start my two tasks in the proper order? Is something else is wrong here?

Thank you

Gabe

P.S. I have attached the VI and a sample waveform read.

Hi Gabe,

This is a cleaned of the VI version that should work (you need not adjust the initial deadline on the right fly?).  Instead of reading a file, I made just a simple square wave of 50% to be used for the test.

Best regards

Tags: NI Hardware

Similar Questions

  • Please advice how to disable and enable the sequence.

    Database 11.2.0.2
    OPERATING SYSTEM: AIX 6.1
    Please advice how to disable and enable the sequence.
    Kind regards
    Nathalie

    NATHALIE wrote:
    Database 11.2.0.2
    OPERATING SYSTEM: AIX 6.1
    Please advice how to disable and enable the sequence.
    Kind regards
    Nathalie
    huh?

    How can I ask a question in the forums?
    SQL and PL/SQL FAQ

    When all else fails, read the instructions very well. ACTIVATE & are documented (or not)

    http://docs.Oracle.com/CD/E11882_01/server.112/e26088/statements_2012.htm#SQLRF00817

    -----------------------------------------------------------------------------------------------------------------------------------------

    Thank you guru I'll follow your instructions...

    If Google also giving the same statement then not more GURUS!

  • im not not to add the device to sync to FF. and im not given key synchronization (just installed and on the original computer), why not not?

    I have read the forums and reset FF nothing helps.

    All your devices running Firefox 29?

    https://support.Mozilla.org/en-us/KB/how-to-update-to-the-new-Firefox-sync

    What is different about the new synchronization?

    The new synchronization is easy to do with a Firefox account. No pairings more codes or the recovery keys. Simply log in with your email and password and you're ready.

    https://support.Mozilla.org/en-us/KB/how-do-i-set-up-Firefox-sync

    Part 2: Connect additional devices to Firefox Sync

    All you have to do is sign in and let the sync to do the rest. Take note of the email address and the password used in part 1. You will need to connect your other devices.
    Connect another computer to Firefox Sync

       Click the menu button new fx menu , and then Sign in to Sync.
       Click the Get Started button to open the Create a Firefox account page.
       Click on the Already have an account? Sign in link at the bottom of the page.
    
  • Drag and drop the sequence on the timeline - picture only

    Is there some modifier you press everything by dragging and dropping a sequence of a location that will ditch the audio component?  It's a bit embarrassing that the sequences that do not yet have all the sounds end up with empty audio clips on the timeline.

    or y at - it another way other than drag / drop?

    Disable the timeline source patch for audio of the incoming clip:

    MtD

  • Import and stabilizer the sequences of the Pro Pre AE CC CC.

    Greetings to you all, sequelae and premiere Pro cc experts.  I have a question that is probably very easy to answer, but for the life of me I can't understand it.  I have some pictures that was bad shot that gave me and that runs approximately 60 minutes in length.  I need to stabilise about three minutes of this film in the middle.  How can I go to enter only three minutes in aftereffects to stabilize?  I have to cut images and restore while these three minutes?  When I try to import now in aftereffects and apply the function to stabilization, he tries to analyze the entire 60 minutes.  In addition, any help you can offer on how best to stabilize images in general would be appreciated.

    You can cut the first layer and then copy and paste this layer in After Effects. Or you can use the import Premiere Pro sequence option in AE.

    Alternatively, you can apply stabilizing Warp in first and move AE entirely.

  • Sequence number, where my work went. Spent all the day and closed the sequence now it disappeared.

    I am new in this version of the Prime Minister. I made all my changes saved the file and then closed the sequence how do I get it back?

    Help @!

    Because you say you're new - have you looked in the project corresponding to all your media window? There should be a file with a different icon that is your sequence. Double-click to open again.

  • Can I need separate videos to allow a user to 'Play All' (from the beginning to the end) and select certain sequences (ceremony, reception which the sequence chosen start and end at the rest of the video and not the sequence, speech etc.)?

    Hi - I'm obviously new to yet, but that's what I want to do.

    In a wedding video, I want them to be able to:

    1 play the movie from start to finish.

    2. Select a sequence (say speech) who plays since the beginning of the sequence to the END of the whole video.

    So do I need 1 video for the room, as well as 4 sequences - reception, cake, speech, dance?

    Colin

    You can use separate videos or a single video. The only video is easier for your desired navigation. You will find more people asking how to get the 'chapter' or the video scene at the rear to a menu when it ends and also have a game all. So ignore the advice on those.

    Simple video:

    Your single video goes on a timeline. 'Play all' is a button in the timeline, and the timeline has an end action of "last menu."

    Menu of chapter has 4 buttons (plus a fifth to return to the main menu), going to each respective chapter marker. There is no action to end on chapter markers, so when a new chapter is reached, he continues to play as the piece all the.

    Several videos:

    Each video goes on his own script. The end of video action a timeline is timeline two video etc. Play all is a button that goes to the timeline one. The chapter menu also has a button go to chapter one, and it works identical to the play all. Each of the chapter buttons go to their respective chapter deadlines.

    Still may have some problems with a certain time lag, but I do not think that they affect either of these workflows. Don't rely on the preview again; burn a test disc and play on a DVD player.

  • How to add collapse and expand the listener of events on a treeview

    Hi all:

    I want to do something when the item reduced treeitem or developed, but both clicking on the icon of the element tree and double clicked on tree can reduced or developed tree item.so how to listen to collapse and expand your event?

    Thank you very much.

    TreeItem has an extended property, add a listener to it.

    item.expandedProperty () .addListener ((observable, wasExpanded, isExpanded)->)

    do something based on the change of ownership of expansion

    );

  • After the passage of a different program and vice versa, Premiere Pro will play is no longer the sequence

    It took me a while to limit this problem. Quite randomly, my sequence would not apply.  I finally reduced to this.  I hope that the 28/01/16 update should fix, but it didn't.

    Summary:

    -commutation of Premiere Pro to a different program, while a sequence is stopped and then backward, tilt will cause Premiere Pro is no longer playing the sequence.  .

    Follow this exactly to reproduce the problem:

    (1) create a new file with a new sequence inside

    (2) create a minute long clip of anything (bars + tone, color matte, text, etc.) and drag it into the timeline

    3-hit game

    (4) setback (this is important!, see below)

    (5) to switch to another program, either via alt - tab or open another program so it gets the focus.

    6) move to Premiere Pro

    7-piece struck again, sequence no longer will play is not the expected behavior.  PP must be rebooted to solve the problem.

    If you do not hit 'stop' to step 4 and let the sequence to keep playing:

    -When you pass on Premiere Pro and then return, you can press the stop button.  When you click the button new play things will work as expected.

    My configuration: win 7 + Premiere Pro 2015.2 release, build 9.2.0 (41), i7 Proc/32 GB memory

    My solution (sad), it of that if I need to go to another program for a bit, make sure to hit 'play' in Premiere Pro before moving on to another program and let it in the background.  When I come back I can play and stop as usual.

    Hey thanks, that the explanation is logical. "Mallocing everything in desperation" will be my new go to words to describe my state of mind sometimes.

    Fixed it!, but it was something else. :

    I tried to uncheck "allow applications to take exclusive control it" box and rebooted, verified that the box was always checked... but the first has always had the same problem. The stop/play button icon changed as you noted, but the timeline not yet played.  This led me on a path of futzing with different combinations of audio material.

    Difficulty of summary:

    -First, change the 'default' output to some other active sound output (even if it is not physically used), then change it back.

    (1) in the first Audio hardware preferences, I changed "Default Output" for "Realtek Digital Output" (which is enabled in my sound control panel, but nothing is physically connected).

    (2) I went back to the first, and he could still play the timeline after alt-tabbing to other programs and return.  There was no audio since obviously I have nothing plugged on my outputs digital.

    (3) 'Exit by default' Changed in first preferences Audio equipment Audio back to "Speakers (Realtek High Definition)", tried the stuff of alt - tab again and as if by magic it worked like the good old days (early 2015).  Even still, it still works very well even though I have the checkboxe "exclusive control" ticked off now (parameters of sound from speakers in the Panel).

    Notes:

    -I don't know if step 2 is required.  Things are working fine for me and no matter what I change, I can't do things in the State 'broken '.

    -At some point, in the sound control panel, I changed one of the outputs digital to be default, but that doesn't seem to make a difference at first. Whether or not this has finally made a difference affecting the steps above, I don't know.

    BTW, audio installation is:

    Audio is Realtek High Definition Audio, version 21/08/2013 6.0.1.7023 (hardware Audio first output by default is "Speakers (Realtek High Definition Audio)"

    I have a 3 GB Evga 780 also graphics card, but no HDMI outputs are used/activated.

  • Find the bold, italic and underline the character of a string

    I have a VI to find bold, italic and underline the sequence of character in a string, but it is very slow.  I want to speed up this VI, an idea?

    Jean-Marc

    You feel the joy of the knots of property, whenever you access one, LV feels the urge to update the control it references.  You can speed things up greatly (factor 4 on my machine) by postponed Panel updates on the VI during the Subvi execution.  I probably shape another factor of two with the code, but this simple correction goes a long way.

  • Synchronization of analog and digital output with the external sample clock

    Hello

    First of all sorry for my English, I will try to explain what I want to do.

    I want my PCIe-6321 to send two custom signals (modification sawtooths) on a mirror controller. I would also like to generate output with my card at the beginning of each tooth of saw. Everything must be synchronized with an external k-clock signal of 100 kHz. The idea is that whenever the PCI receives a trigger to external clock, it sends two analog output voltages and when he received 1024 clock ticks it will also send a pic of triggering TTL. What I do is first prepare the map and after that in a loop sending and modifing the output values of the two signals and at the same time send a digital signal Boolean in each arch, so when's done it 1024 iterations of the loop I send an event to the digital port. Attached you can see.

    The problem is that I don't know how to synchronize both. Can I use the sample clock just to the analog output? I can use sample for the two outputs clock, or do I need to use the output of the meter? If don't know how to use it here.

    If I do nothing else bad/wrong, I would be grateful for feedback.

    Thanks in advance,
    Pablo

    I don't know how but I find the solution. I'm generating more than a positive value (as I was triggered maybe very fast the oscilloscope has been absent there). If I put the sample clock of digital output to use the sampling/ao/Dev1 clock that it doesn't, but if I put to use the same source as the OD (terminal where my external clock is connected), but the trigger to start the DO to be Dev1/ao/StartTrigger this works. I don't really know why, but it does.

    Thank you for your patience and your help. I put here the final code.

  • different output for max() with prescription and over-the-counter

    with t1 as 
    (SELECT 'case2' AS promo_id, to_date('8/20/2012','MM/DD/YYYY') as promo_start_dt, to_date('8/24/2012','MM/DD/YYYY') as promo_end_dt, '30' as qty from dual
       UNION
      SELECT 'case2' AS promo_id, to_date('8/26/2012','MM/DD/YYYY') as promo_start_dt, to_date('8/27/2012','MM/DD/YYYY') as promo_end_dt, '40' as qty from dual
       UNION
      SELECT 'case2' AS promo_id, to_date('8/27/2012','MM/DD/YYYY') as promo_start_dt, to_date('8/29/2012','MM/DD/YYYY') as promo_end_dt, '40' as qty from dual
      )
      select t1.*, max(promo_end_dt) over(partition by promo_id) max_val from t1
    
    promoid    promo_start_dt    promo_end_dt  qty     max_val
    case2      8/20/2012       8/24/2012           30     8/29/2012
    case2      8/27/2012             8/29/2012           40     8/29/2012
    case2      8/26/2012            8/27/2012           40     8/29/2012
    
    but why this below query is giving different output, the below query should also return the same output, adding order by promo_start_dt is giving different output
    
    with t1 as 
    (SELECT 'case2' AS promo_id, to_date('8/20/2012','MM/DD/YYYY') as promo_start_dt, to_date('8/24/2012','MM/DD/YYYY') as promo_end_dt, '30' as qty from dual
       UNION
      SELECT 'case2' AS promo_id, to_date('8/26/2012','MM/DD/YYYY') as promo_start_dt, to_date('8/27/2012','MM/DD/YYYY') as promo_end_dt, '40' as qty from dual
       UNION
      SELECT 'case2' AS promo_id, to_date('8/27/2012','MM/DD/YYYY') as promo_start_dt, to_date('8/29/2012','MM/DD/YYYY') as promo_end_dt, '40' as qty from dual
      )
      select t1.*, max(promo_end_dt) over(partition by promo_id order by promo_start_dt) max_val from t1
    
    giving output as 
    
    promoid    promo_start_dt    promo_end_dt  qty     max_val
    case2      8/20/2012       8/24/2012           30     8/24/2012
    case2      8/27/2012             8/29/2012           40     8/27/2012
    case2      8/26/2012            8/27/2012           40     8/29/2012

    Hello

    This is the expected behavior. Analytical functions still work on the lines in the order specified in the function order_by_clause and in the specified partition.

    So, when you treat the first row if ORDER BY is specified, it will calculate the function based on the first line, on the second, based on the first and the second on the third based on the three rows.

    If you do not ORDER BY then the analytical function is calculated according to the whole score.

    that is to say:

    WITH mytest AS (    SELECT 'A' p, LEVEL n
                          FROM DUAL
                    CONNECT BY LEVEL <= 10)
    SELECT p, n, MAX (n) OVER (PARTITION BY p) max_n
      FROM mytest;
    
    P          N      MAX_N
    - ---------- ----------
    A          1         10
    A          2         10
    A          3         10
    A          4         10
    A          5         10
    A          6         10
    A          7         10
    A          8         10
    A          9         10
    A         10         10
    
    WITH mytest AS (    SELECT 'A' p, LEVEL n
                          FROM DUAL
                    CONNECT BY LEVEL <= 10)
    SELECT p, n, MAX (n) OVER (PARTITION BY p ORDER BY n) max_n
      FROM mytest;
    
    P          N      MAX_N
    - ---------- ----------
    A          1          1
    A          2          2
    A          3          3
    A          4          4
    A          5          5
    A          6          6
    A          7          7
    A          8          8
    A          9          9
    A         10         10
    

    Kind regards.
    Al

    Published by: Alberto Faenza January 24, 2013 16:19

  • How to synchronize the start of IT and relaxation the Scan list (DAQmx Switch)

    Hello

    I want to measure samples of N to the AI0 of Council NI PXI 4461. The measurement starts on a rising edge of a digital triggering provided to the PFI0 of the same Board. The measure is configured with samples of N/2 pretrigged. So far, everything is under control...

    Using an NI PXI 2567 Board, the signal applied at the entrance the 4461 (AI0) switches between a V2 and V1 signal. I would like to synchronize the switch between the two signals with the trigger signal applied to the input of the PFI0 Governing Council 4461. In order to obtain samples of N/2 of V1 and V2 samples N/2. Synchronization of 1 to 5 ms would suffice!

    My question is how to synchronize the start of acquisition of AI pretrigged of 4461 with the switch control given by the Council of 2567?

    Thank you in advance for your help...

    PS: the configuration of the system is:

    -LabView 8.5

    -Chassis PXI-1044

    PXI-4461 on slot 2

    Module 4-slot PXI-2567

    Hi Frederic,.

    I came back to this recently and used the following examples to run the desired synchronization.

    PXI-4461: Acq & graph tension-Int Clk - dig Start & Ref .vi

    Samples per channel = 1000

    Rate (Hz) = 10000.00

    Start the trigger Source = / [name of the instrument DAQmx] / PXI_Trig0

    Onboard start = fall

    Reference Source Trigger = DAQmx Device Name] / PXI_Trig0

    Reference edge = fall

    Trigger samples = Variable (100, 500, 900)

    PXI-2567: Switch Scaning-SW Trigger.vi

    Advance the output terminal full = / [name of the instrument DAQmx] / PXI_Trig0

    Scan list = / [name of the instrument DAQmx] / ch0-> com0.

    Scan list = / [name of the instrument DAQmx] / ch1-> com1;

    Hardware configuration:

    The PXI-2567 module controls an external relay that switches between the voltage of 5 V on ch0 and ch1 0 V.

    The PXI-4461 connects to the COM of the external relay and therefore reads 5V when ch0 is connected; 0 v when ch1 is connected.

    Procedure: The above examples are used in the following procedure.

    1. run the PXI-4461 VI.  A start trigger (falling edge) is necessary to start collecting samples before firing.

    2. launch the module, PXI - 2567 VI.  When ch0 is initially (and immediately) on com0, a trigger is sent to PXI_Trig0.  The PXI-4461 will begin to acquire samples before firing.

    3. - click on the "Connect to the next" button on the front of the PXI - 2567 VI module.  This sends a trigger to entry software for the PXI-2567 module and the transitions of the scan for ch1-> com1 list.  Once the PXI-2567 module remains (debounced), advanced complete relaxation is sent on PXI_Trig0 for the PXI-4461.  The PXI-4461 will begin to acquire samples after outbreak.

    Note: Instead of the trigger of the software entry, an external input trigger can be used (e.g. PXI_Trig1).

    Results:

    > Before instant release of samples = 100

    Delay is caused by the time of actuation of external relay.

    > Before instant release of samples = 500

    Delay is caused by the time of actuation of external relay.

    > Before instant release of samples = 900

    Delay is caused by the time of actuation of external relay.

    I hope that the attached screws and the explanation above helps you and/or other customers who have this problem.

    Best regards

    Chad Erickson

    Switch Product Support Engineer

    NOR - USA

  • How can I pause and resume the analog output using DAQmx?

    I use a DAQ hardware to produce an analog waveform.  I would like simply to break the output of the wave and then resume where it left off.  I use DAQmx and LabVIEW 2011.

    I've seen examples that use a digital or analog break trigger, but I would take a break in the software only.  How can I do this?

    -Joe

    Hi Joe!

    I spent some time thinking about it and I realized that you can technically use a fundamental mission of the analog output, as you previously wrote that runs continuously. However, the generated output samples are controlled by the sample clock pulses, and can be manipulated to fit our needs "suspension."

    To do this, we will need another counter task that generates a pulse train (see our examples of shipping under material input and output > DAQmx > generating digital pulses > generate dig Pulse Train - Continuous.vi) that stops and starts the user to choose. This can be in another quite VI or controlled by software. We will use this as the task of our output sample clock.

    Then, the task of the AO, wire a constant to the sample clock source and select ' DevX/CtrXInternalOutput"based on the counter that you specified in the task of counter. You will need to choose "I/o name of filtration" and check the box that says "include advanced terminals' and right-click of the constant. See picture attached as a reference. In this way, the task of the AO is constantly running, but it generates only actually all data when the meter running task.

    Let me know if you have any questions!

    Have a great day!

  • Synchronize loops control and Simulation

    When simulate control with adjustment of the LV systems and Simulation loops, I often have several loops running at different speeds. For example, I have a loop PWM works at 20 kHz, a loop running at 100 kHz data acquisition and a control loop to running at 10 kHz. How can I synchronize all these loops so that they stay on the same time basis? Of course, the main time base must be at least as fast as the fastest simulation loop.

    I tried to synchronize all the loops at 1 kHz clock (I'm on Windows), but each loop runs a period by beat of clock (for example my 20 kHz loop count progressive 50us by beat of clock, my number of loop 100 kHz up to 10 by beating of clock, etc.). I need all the loops to be synchronized in a main time base so the simulation time is identical in each loop, but each loop will be executed at a different pace.

    Any thoughts?

    Hello

    A quick suggestion - why you cannot run three systems in a single simulation loop, but have different sampling frequencies for the blocks for each system?

    Your system is fully digital, or a mixture of continuous and digital - we can simplify things if you can convert in discrete time.

    Hope this helps,

    Andy Clegg

Maybe you are looking for