How to read a waveform beginning after trigger conditional

Hi all

I need to communicate with the PXI-6541 card with three sons.

The installation is as follows,

The first line is the trigger line. I need to wait until they get front down.

The second line is the active signal line which is the card output line. I need to make this high with a certain delay line when I get the trigger.

The third line is the row of data that I need to acquire by waveform playback.

The problem is that when when trigger strikes, it begins to acquire waveform data, I need to filter later because valid data, it is only when the active signal line is high.

So I want to get rid of data filtering.

When trigger hits, data acquisition must wait an active signal to go high. Once he should start the acquisition.

Thanks in advance...

KAMRAN

KAMIJI,

Unfortunately, you will not be able to run different generation and acquisition to two clock frequencies without using an external clock any. If you look at the help of HSDIO Clock Sources summary , you will see that there is only one clock available onboard. If you need to acquire half of the rate, you will need to provide your own clock that runs at this rate. Now, you could take the clock generation and export this clock CLK ON DDC CLK or terminal TO terminal, and then use some external circuits divide the clock frequency in half and then import the clock signal in the STROBE line.

Another option is to use a data line, and simply write a 1010101010 model. This would actually give you a clock signal which was half the rate of your generation on a row of data session and you could then this wire channel to the CLK or STROBE line and use it as a clock. It would take just allows you to use a channel more digital output.

I would like to know if you have any questions about my suggestions. Thank you!

Tags: NI Hardware

Similar Questions

  • How to read from the beginning to reference trigger?

    Hello!

    I develop a system a little on a NI DAQmx 6025 and want to know how can I get data from an early relaxation of reference.

    I use "AcqVoltageSamples_IntClkDigStartAndRef.2008" to control the unit in c#

    If I set up the Starttrigger only, I can trigger... (the measure is to start by climbing aboard PFI0)

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

    myTask.AIChannels.CreateVoltageChannel (physicalChannelComboBox.Text,"", (AITerminalConfiguration)(-1), rangeMin, rangeMax, AIVoltageUnits.Volts ");

    myTask.Timing.ConfigureSampleClock ("", sampleRate, SampleClockActiveEdge.Rising, SampleQuantityMode.FiniteSamples, 1000);

    myTask.Triggers.StartTrigger.ConfigureDigitalEdgeTrigger ("/ PFI0/Dev1", DigitalEdgeStartTriggerEdge.Rising);

    Reader = new AnalogMultiChannelReader (myTask.Stream);

    ...

    drive. SynchronizeCallbacks = true;

    drive. BeginReadWaveform (-1, New AsyncCallback (myCallback), null);

    ... MyCallback...

    data = reader. EndReadWaveform (ar);

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

    Now, I want to stop my measurement by the trigger of the reference, so I set up the Referencetrigger on the same source (PFI0)

    myTask.Triggers.ReferenceTrigger.ConfigureDigitalEdgeTrigger ("/ PFI0/Dev1", DigitalEdgeReferenceTriggerEdge.Falling, 10);

    (This line is after the configuration StartTrigger)

    If I start the task and give the triggersignal, the measurement starts. But now the measure must stop if I start PFI0 again!

    I don't know what I have to do to become a measure from the beginning to trigger Stop... I mean PFI0 PFI0 rising Edge edge

    Thanks for the support!

    Suchen für alle die noch immer nach einer Antwort, ich habs jetz!

    For all who are looking for this answer, I get it now!

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

    myTask = new Task ("aiTask");        Create a new task
    Initialize local Variables
    Double sampleRate = Convert.ToDouble (rateNumeric.Value);
    Double rangeMin = Convert.ToDouble (minimumValueNumeric.Value);
    rangeMax double = Convert.ToDouble (maximumValueNumeric.Value);
    Create a virtual channel
    myTask.AIChannels.CreateVoltageChannel (physicalChannelComboBox.Text, "", (AITerminalConfiguration)(-1),
    rangeMin, rangeMax, AIVoltageUnits.Volts);
    Set up sync Specs
    myTask.Timing.ConfigureSampleClock ("", sampleRate, SampleClockActiveEdge.Rising, SampleQuantityMode.FiniteSamples, 1000);
                
    Configure start and reference triggers
    myTask.Triggers.StartTrigger.ConfigureDigitalEdgeTrigger ("/ PFI0/Dev1", DigitalEdgeStartTriggerEdge.Rising);
    myTask.Triggers.ReferenceTrigger.ConfigureDigitalEdgeTrigger ("/ PFI0/Dev1", DigitalEdgeReferenceTriggerEdge.Rising, 100);

    Check the task
    myTask.Control (TaskAction.Verify);
    Create the object reader
    Reader = new AnalogMultiChannelReader (myTask.Stream);
    Start the task, and set the playback position
    myTask.Start ();
    myTask.Stream.ReadRelativeTo = ReadRelativeTo.CurrentReadPosition;

    AnalogWaveform[temp];

    {while(!myTask.IsDone)}
    Temp = reader. ReadWaveform (60000);
    }

    myTask.Dispose ();

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

    Mit dieser Lösung kann man von mension zu messen mension.

    With this resolve you can measure from edge to edge.

  • How to read my waveform data from a file LVM?

    I have collected a form of wave and saved using the file LVM format. I would read the waveform in labview and view with its timestamp and assigned name. The only way that I could read the data in Labview was to convert it to an array of number. I thought that if you could write a waveform and save all data, you should be able to read it back quite easily. I have included my LVM file and two simple programs. The program I use is much larger, but these two programs are representative of what I'm trying to accomplish.

    Thank you

    Eric,

    I am pleased that you have something that can work even if it is not ideal.
    I close this service request, but I thought that I'll let you know that
    because of your issues, I have revised article in the Knowledge Base on
    timestamps and verified for accuracy and thought you should know.

    What is the precision of the timestamp of the waveform returned by my NOR-DAQmx
    Device?
    http://digital.NI.com/public.nsf/allkb/5D42CCB17A70A06686256DBA007C5EEA?OpenDocument

    Concerning

    Vince Methot
    Technical sales engineer
    National Instruments

  • How to read a counter value for the separation of the two edge before meter is stopped by the second edge (6602 Council)?

    I use a timer/counter with DAQmx 6602. I use the separation of two - available via DAQmx cash edge. Count between the two edges works properly, however I do not know how to read the value of the counter during the counting operation (i.e. after the first edge triggered the beginning of the count, but before the second edge triggered the end of the counting). I'll have to wait for the second goes off the edge of the end of the countdown until I can get a counter value. I need to be able to access the current value of the County during the count operation. This was possible in traditional DAQ. How can it be accomplished using DAQmx?

    Ah shoot - I was afraid that this might be the case (for what it's worth, my series of X returned intermediate values, but the material and the underlying driver are quite different)...

    You just need to take one measure at a time or you are buffer several measures of separation of the two edges at the same time?  So just to take one measure at a time, you can set a task of edges of count using the database internal time as the source using an arm start trigger (first edge) and a sample of clock (second Board) to work around the problem.

    Best regards

  • How to read the txt file that has words in between?

    Hi all

    I'm using Labview 8.2.

    I would like to read a text file.  I have given (after whenever he was on average more than 100 waveforms) several times recorded on the file.  The idea is to further improve the SNR in post processing by averaging once again the data (which was on average about 100 wave forms).

    I can get LabView to save the data in the file several times, then it keeps joins.

    The problem is to read data from labview, so I can on average now again.  The problem is the labview separates data sets with the following:

    "Channel 1".
    9925 samples
    Date 28/10/2008
    Time 17:16:11.638363
    X_Dimension time
    X 0 - 3.0125000000000013E - 3
    Delta_X 2.500000E - 6
    "End_of_Header."

    Then when I read it, he sees only the first set of data.

    Can someone tell me please how to read all the datasets under labview?

    I am attaching the file I want to read 'acquiredwaveform.txt' and the VI base (really basic btw) to play the file.

    Thank you

    This seems to be a standard LVM-file.  You can read segments of different data using the VI Express LVM loop (make sure that the file retains its extension .lvm).  I modified your example to show this.

    Note that my example is quite inefficient. Table of primitive construction causes a massive memory copy whenever it is used, and you would be probably better on average that you read in.  I made this way to make it more obvious how read segments of a file LVM.  In the process, I noticed that you have a good amount of phase jitter (zoom in on the graph of all the three waveforms).  With an average simple will make you smear on your waveforms.  You can either fix the problem in hardware (recommended) or phase shift your data so it lines up before on average.  If you need help with it, let us know.

  • Converting a string to a Date using an insert after trigger.

    Hi people:

    I have a table that has a column (called DATE_FED) that must be registered in the format string.

    Once all data insertion after trigger is triggered that copies of some columns in another table.

    The problem is that the insert after trigger will not work because the table is copied in stores DATE_FED data in a Date format.

    I'm trying to understand how to use the TO_DATE function to convert the NEW. Data DATE_FED to a Date format and the trigger does not work.

    Here is the trigger, as it is currently worded:

    Create or replace TRIGGER "FARM". "' BALES_FED_PAST_TRIG ' AFTER INSERT"FARM ". ' ' BALES_FED_PASTURE ' 'OLD' NEWS like 'NEW' FOR EACH LINE REFERENCING OLD declare

    BEGIN

    insert into BALES_STORAGE (BALES_LOST_SUBTRACTED, HARVESTING, CUTTING, STACKYARD, DATE_MOVED, FED_ID, BALE_YEAR) values (: new.) BALES_FED,: new. CULTURE: new. CUTTING: new. STACKYARD,: new. DATE_FED,: new. FED_ID,: new. BALE_YEAR);

    END;

    This trigger worked until I had to change the column type of DATE_FED from the Date to a string.

    I tried things like:

    TO_DATE (DATE_FED): = GCNEW. DATE_FED;    in a statement, but I don't get it.

    Summary:

    I need an insert after trigger to convert NEW. DATE_FED (a string) again. DATE_FED (a Date).

    Tables:

    BALES_FED_PASTURE is the table, the trigger to run.

    BALES_STORAGE is the table the trigger is to copy certain columns.

    I thank very you much for any help.

    Matthew

    FriendlyTooo wrote:

    I have a table that has a column (called DATE_FED) that must be registered in the format string.

    If you book the date in a format string. Bad design. In any case, what is this format? Register you as hh24:mi:ss dd/mm/yyyy or DD-me-YYYY, or... You what it is, you must use this format in your trigger:

    insert into BALES_STORAGE (BALES_LOST_SUBTRACTED, HARVESTING, CUTTING, STACKYARD, DATE_MOVED, FED_ID, BALE_YEAR) values (: new.) BALES_FED,: new. CULTURE: new. CUTTING: new. STACKYARD, TO_DATE(:new.) DATE_FED, "whatever-format-is"),: new. FED_ID,: new. BALE_YEAR);

    SY.

  • The new App Store for El Capitan update has locked up my macbook pro.  Reboot got about 3/4 fact and the machine stops. Turned off the power and turn it on again for nothing doesn't.  How in my machine to begin troubleshooting?

    The new App Store for El Capitan update has locked up my macbook pro.  Reboot got about 3/4 fact and the machine stops. Turned off the power and turn it on again for nothing doesn't.  How in my machine to begin troubleshooting?

    The problem is most likely an attempt to update a system malfunction prior it is probably a problem with your computer, not the El Capitan.

    Start by:

    Reset the PRAM and NVRAM on your Mac.

    MacIntel: Reset of the controller (SMC) system management

    Start in Safe Mode , and then re - start normally. It's slower that a normal start, so be patient.

    If you are unable to start;

    Reinstall El Capitan without erasing the drive

    Please make sure that you back up.

    1. Restart the computer. Immediately after that the chime hold down the command and R until the Utility Menu appears.
    2. Select disk utility, then click on the continue button.
    3. Select the withdrawal (usually Macintosh HD) entry of the volume in the list aside.
    4. Click first aid icon in the toolbar. Wait until the button is active, then click it.
    5. Quit disk utility and re-enter the Utility Menu.
    6. Select Reinstall OS X and click on the continue button.

    Also, see this tip for user: basic steps for the OS X upgrade.

    If this doesn't get you;

    Install Yosemite or El Capitan, from scratch

    Backup if possible before proceeding.

    Restart the computer. Immediately after the chime hold down the command and R buttons until the Apple logo appears. When the Utility Menu appears:

    Select utility disc in the Menu Utility, then click the continue button.

    When loading disk utility, select the volume (entered into withdrawal, usually Macintosh HD) from the list of devices.

    Click Delete in the main window of disk utility. A panel will fall.

    Define the type of Format Mac OS extended (journaled).

    Click on the apply button, then wait for the done button to activate and click on it.

    Quit disk utility and re-enter the Utility Menu.

    Select reinstall OS X and click on the continue button.

  • How can I reactivate my iPhone after declaring, he lost and deleted from my ipad

    How can I reactivate my iPhone after declaring, he lost and deleted from my ipad?

    See "how to disable or cancel lost mode?  here:

    If your iPhone, iPad or iPod touch is lost or stolen - Apple supports

    If erase you your device, which is different from the lost mode, and you must read and understand the information on having cleared your device in the same article.

  • How to read messages from a blocked number?

    How to read messages from a blocked number?

    You do not have.

    You need to unlock and then you can read the messages that comes after unlock it.

  • With the help of a NO-9401 read the angular Position and trigger a reading I

    Hi all

    I am writing some software dependent vs angle chart and to the monitor when the buttons are pressed.  The software allows all DAQ lines to be configured so that multiple configurations data acquisition can be used.

    Currently, I peut use my NOR-9411 read the angular position of my quadurature encoder and trigger the playback of my entry (measured with a NEITHER-9219 or 9237) load on a rising edge of A or B input terminal analog.  Also, I can configure the software to do the same thing with a card OR-6259.

    My problem is that when I switch to a NO-9401 to read my meter task, I can no longer use the input terminals A or B to trigger my analog input.  I get error-200414 saying that the entry A (PFI0) is an invalid clock source.

    I know that the 9401 is configurable by nibble for input/output lines0:3 and 4:7, but how that affects the ability of a trigger, a route line PFI?

    Measurement and Automation Explorer shows it as an acceptable way of PFI0 AI/StartTrigger and AI/SampleClock.

    I joined the my code section that defines the tasks and that causes the error.  You take a look in the Utilities folder and open the Tasks.vi create.

    I am writing in LabVIEW 2011.

    Thanks for any advice,

    Rob Afton

    Test lab engineering intern

    Found my answer here if anyone has the problem:

    Link

  • How to read continuously from the rs232?

    Hello

    I'm new to LabVIEW and my questions would be obvious for some for you. So please help if you know the solution.

    It's for my school project. For your information, we need to schedule a Committee of Altera DE2 to control traffic lights (something like that) and at the same time, the Commission shall forward the States of enlightenment to a computer with LabVIEW installed via an RS-232 cable.

    The rest of the project was fine except for the part of LabVIEW, because as I said earlier, I'm new to LabVIEW.

    We use the "basic series write and Read.vi" in the folder examples of NEITHER. The problem is that we do not know how to change the vi in order to receive the data that come the DE2 Board permanently. Each time, the vi stops reading after receiving 24 bytes of data.

    So, the first question is:
    1.) how to read continuously from the RS-232 port? (We tried to use while "loop" but without success, maybe we were doing it the wrong way.) If you know the solution, please enlighten us for us in a detailed manner.

    (2) Secondly, once we have received the 'chain', how can convert us to bits (0 and 1) so that we might be able to manipulate the bits, for example turn on the LEDs that correspond to the bits.

    Thank you.

    Instead of reading the bytes of the port so to read that many bytes (which may be zero), just do a VISA read for 1 byte.  He will wait for this next byte.

    To get an array of Boolean out of this byte, use this code.  He turns the characters into a byte array.  Takes the first and the only element of this array, and then converts this single U8 number into an array of bytes.

    Which country are you?  I've never seen or heard lights orange before.  Only the yellow lights.

  • How to read 2 simultaneous channels with Agilent 53230

    Hi, first time done Labview programming so I'm completely new to this. My task is to read the frequency 2 channels (2 sources) at the same time and compare the difference between them (as appropriate).

    So I used the examples and Agilent pilots to get something that gives me the frequency of channel 1 or 2 depending on the choice of the user. But how do readings of both at the same time? Sorry if there is an obvious solution, but I can't seem to get it haha.

    Thanks in advance for any help!

    User manual confirms that you can at the same time, you can make a measurement frequency if it's all good.

    Meter except for the frequency rate and timing channels

    the interim measures are separated and can be configured independently.

    Measures on the channels do not occur at the same time, however. Switching

    between channels keeps the channel configuration, but ends the current

    measure. The newly selected channel is reset and measures

    start when the programmed trigger conditions are met.

  • Read the output values after each step runs in the User Interface of LabVIEW

    Hi all

    Development environment: TestStand 2010 SP1 and LabVIEW 2010 SP1

    Problem: is there a way to run the following steps programmatically and get values out of each of them?

    I have already extended a bit a complete interface IO for TestStand load any sequence, choose among the measures and execute step by step (something as an alternative to the steps run selected). What I'm trying to do is to add some actions between each step and do in the UI (I can't change the sequence!), so I start the NewExecution with some previously configured InteractiveArgsParam and option breakAtFirstStep set to true. Eventually I do just something like step over when debugging the sequence and it works well, but I didn't do well a way yet to read the output values of the place...

    So, if I wait before the end of the run I can read my results by treating the ResultObject, but it works only after the completion of the test sequence. Because I wanted to stop after each step, read the values, do some actions and continue to the next step, I've tried to register a running Trace event reminder View Manager. I see that after each step is executed, this event is fired, but when I try to read that a ResultObject returned in the event data it is not filled with values (ResultList seems to be empty?). Is this a correct behavior or maybe I'm reading the wrong way? (It's the same VI regarding the reading of the ResultObjects after the sequence ends and there it works very well for tables, containers and other types of data).

    As I mentioned I can't change Test sequences, I can not add a UImessages.

    What are my options? If the trace event returns output all the values from each steps or is it just used to check the status? Or maybe there's a completely different approach to this issue?

    Thanks in advance for your suggestions,

    Best regards.

    When you manipulate the UIMessage trace (you need this before the return of the event or you will present the race conditions), download myuimessage. Thread. Then call Thread.GetSequenceContext (0, & Iplease).

    And then on the context of the sequence, either go to PreviousStep.Result if it exists, or watch Locals.ResultList.

    Trace events occur between the steps executed step the more recently is the previous step, but it is also a trace event to the beginning before any measure have run at this time, there will be a previous step.

    Hope this helps,

    -Doug

  • How to read system 2.0 Assembly GetProcesses()

    I want to call an Exe TestStand programmatically after refuse system process names. I want to read all the process names and compare to be sure that my application exe is running. I found the Assembly System (2.0.0.0), which must be called in order to get the process names.

    I am able to do these steps in LabVIEW. The VI reference is attached. But still I want to do in TestStand. I started to do that; I am struck here, how to read reference data to a matrix Obj and complete ProcessNames. Apprecaite your help.

    Thank you

    Hello

    GetProcess() returns an array of process. You get this TS by using an array of object references.

    Just iterate throw the table using foreach steptype to get the name of each step

    Hope this helps

    Jürgen

  • How to read a file FBW

    I had to reformat my hard drive and did a windows vista backup of my files.  After the format I have a backup file I can't open.  How can I open the backup file?  The files have an extension of file FBW.  Thank you.

    Hello

    see this link:

    http://www.techsupportforum.com/forums/F217/how-to-read-HP-FBW-back-up-files-from-Vista-190926.html

    http://www.techsupportforum.com/forums/F217/how-to-read-HP-FBW-back-up-files-from-Vista-190926-3.html

    Let us know the results.

Maybe you are looking for

  • 9.3.2 update problem iPad 9.7 pro

    Today when I tried to update my IPad with the 9.3.2 update in wifi, after the update download and installation began as usual. After reboot, I connect to iTunes screen. I connect my iPad to iTunes and try to update, says update failed and I have to d

  • MacBook pro having kernel panics

    My macbook pro mid-2012 kernel panic and stops just randomly lately. It is not super frequent, but I can usually be expected every two weeks - sometimes more sometimes less. I haven't noticed a correlation to what I do on the computer at the time - a

  • Challenge: Pre-installed YouTube app not working not

    Hi all Problems with pre-installed YouTube app. The application crashes when I start and blinks a random string of characters on the top row below the status bar. None of the buttons work (except the main home button) and it shows the same results wi

  • HP ENVY 15 NOTEBOOK pc 15-j100sv

    Hi all BECAUSE I'M NEW T THE FORUM HAS PLEASE FORGIVE IT ME IF I POSTED IN THE WRONG SECTION E.T.C. I FORMATTED MY LAPTOP AND NOW I HAVE A UNKNOWN DEVICE. Device ACPI\HPQ6007\3 & 11583659 & 0 has been set up. Driver name: null The class GUID: {000000

  • PC keeps restarting after that I copied some files

    my pc keeps restarting after countless attempts trying to remove this file dvd that I copied from a dvd. When I tried to delete this file using a different account, the cycle just repeats.