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.

Tags: NI Software

Similar Questions

  • Hello! How can I resume my apps purchased after a break... or do I need to download from the beginning... If so, how?

    Hello! My purchased apps (logic pro x) will not resume downloading after a break. Do I need to download it from the beginning?  If so, how?  I tried to resume the download, but the resume icon does not... I also tried to download from the start by removing apps half downloaded from my pc...  I m running os 10.10.5 yosemite. Any suggestions will be much appreciated.

    Hello there, im khans.

    Looks like you are unable to download the application Logic Pro X on your Mac under Mac OS X Yosemite. The following article contains some great instructions on how to reinstall Logic Pro X:

    Logic Pro X: Troubleshooting basics

    11 reinstall Logic Pro X

    Another approach you might consider is reinstalling Logic Pro X. To do this, you must remove the application and then reinstall it. You don't have to remove everything that was installed with Logic Pro X.

    To reinstall Logic Pro X, follow these steps:

    1. In the Finder, choose Applications from the menu reach.
    2. Locate the application Logic Pro X and drag it to the trash.
    3. Open the Mac App Store
    4. Click the Purchases button in the toolbar of the Mac App Store.
    5. Connect to the Mac App Store using the Apple ID you first used to buy Logic Pro X.
    6. Look for Logic Pro X in the list of applications purchased from the App Store. If you do not see Logic Pro X in the list, make sure that it is not hidden. See Mac App Store: hiding and showing buys for more information.
    7. Click on install to download and install X Pro Logic.

    To learn more

    For more information on settings or installation, please refer to the X Logic Pro User Guide.

    For any question, install the additional content, see Logic Pro X, MainStage 3: additional content installation issues.

    Thank you for reaching out to the communities of Apple Support.

    Kind regards.

  • I accidentally deleted all my settings and the apple iphone 6 s ID. Now I have to activate my phone and start from the beginning. But I don't have my EA sim with me right now and cannot organize any sim EE. How can I activate my phone without sim card?

    I accidentally deleted all my settings and the apple iphone 6 s ID. Now I have to activate my phone and start from the beginning. But I don't have my EA sim with me right now and cannot organize any sim EE. How can I activate my phone without sim card?

    Sorry, but you can't activate an iPhone without a SIM card installed. It is simply not possible to do.

  • How can I get rid of the icon "shut down windows"? It appears from the beginning to the top!

    How can I get rid of the icon "shut down windows"? It appears from the beginning to the top!

    Hello jsitch,

    This thread has been created in the forum Desktop and personalization; the Microsoft moderation team has moved this thread to the Performance and maintenance Forum.

  • Lightroom 5.7.1 does not open.  There is an error message that there is an error while reading from the cache of the preview.  How can I fix this error?

    Lightroom 5.7.1 does not open.  There is a message that there is an "error reading from the preview cache".  How can I fix this error?  I can not find the folder cache of Lightroom preview either in the "Programs folder or the programs (X 86) folder."

    Hi PMB.

    You must remove the preview for your Lightroom Catalog Cache.

    It is located in the same folder as the catalog in Lightroom. The name of the cache an extract ends with Previews.LRDATA and should be deleted. Not to be confused with *. LRCAT, which should not be deleted. Here is a picture of what it is named as default Lightroom5catalogPreviews.Lrdata.

    Location /Pictures/Lightroom on Mac and my Pictures\Lightroom on Windows Pictures/Lightroom on MAC

    Delete this folder and restart Lightroom

    Let us know if this helps

    ~ Assani

  • How to create e-commerce site using adobe muse from the beginning to the end, please

    How to create e-commerce site using adobe muse from the beginning to the end, please

    Mylenium, why comment you on the forums of Muse? I've never seen a useful comment on these forums. You seem to just upset against Muse all the time.

    in any case, definitely go with widgets Ecwid and J-26. They are the best.

  • How to make sure the Animation still plays from the beginning

    Hi guys,.

    I'm working on a project to facilitate dashboard which consists of 3 animations. I have a problem when I navigate between each symbol, without allowing that each completed in full animation. Rather than play as they should, from the beginning of each animation, animation simply continues to play from the position as was the timeline when I navigated away to another symbol.


    Is it possible that I can reset the symbol in its original position, when I trigger another animation to make sure that each animation always time from the beginning?

    Has anyone else had a similar problem? Any help will be much appreciated as always.

    Thank you very much


    Ross

    All included now - it works, and you do not have the script fixed correctly.

    The only thing I noticed is the placement of you reading action, see capture.

    I didn't move a bit. And by that I mean set it so that the beginning of the fall of play icon AFTER the reading, the alignment exactly where the label of separation begins - see figure.

    In your case it was not aligned correctly. I also changed the read option play to play to 0:00.

    HTH

    Darrell

  • How to extend video back from the beginning

    My video editor tells me that I need to have 2 seconds early and end 2 seconds do not talk and repeat basically the first or the last displayed image.  I have currently only about 1/2 a second so I need extend backward and before 2 seconds.

    It seems that I can simply grasp the handle at the end of the video to extend forward, but I can't figure out how to extend it back from the beginning. When I take the handle, I can ' drag it to the left.

    In addition, my video is essentially a timeline I have razor cut into about 10 modules.  each module is marked with markers on the timeline.  What is the best way to add the padding forward and the end of each module?  I started lasooing and by dragging the last video, move the marker, then second lasso at the last, move, etc.  Is their an easier way to do this?

    Thank you

    I think the answer to your prayers is insert the Segment to hold image command. First assign a keyboard shortcut to the command. The extent of the workflow, I'm only being familiar with the feature, but I think it goes something like this.

    1. Open the sequence
    2. Move the playback cursor at the beginning
    3. Insert the wedge Segment of image
    4. Move the playhead to the end
    5. Insert the wedge Segment of image
    6. Close ff. A, open B next, repeat 2 to 6...
  • Restart slideshow from the beginning

    I just bought a DPF-VR100. When it is disabled, then it seems to restart the slideshow, everywhere where he stopped the last time. I want to start from the beginning each time. How do I do that? I couldn't find this setting or all instructions in the manual. I have the photos and music in the memory. The photos are classified in the index of the way I want them to appear.
    Thank you!

    Hello and welcome to the forums.
    This is a normal operation. If you turn on the photo frame off the power during the slide show and back, the slideshow restarts from the last image read. Unfortunately there is no adjustment for the slide show restarts automatically after the next power on.

  • Game sounds from the beginning to the place where I am in the timeline panel

    I am currently lipsync animation. I have the sound flow value instead of the event, but for some reason any (often, but not always) when I play the part of the sound, no matter where I am on the timeline, the sound is played from the beginning as if I started at the beginning of the melody. I tried to split the file between each syllable, and that seems to have fixed, but now there is a strange noise that plays to each division, so that the method is not really practical.

    I have a feeling that this may be a RAM issue since it seems to have no known cause and nothing seems to fix it for sure. It seems like something that would be caused by the release of maxing out the RAM. I have 6 GB and I thought that would be enough, but it may not be. There isn't really a lot going on in this animation that could bring it to use this amount of RAM, but after reading about how it works the Stream parameter, looks like a cumbersome process RAM.

    What do you think guys? It's something I've missed, or it's just my RAM and I'll have to deal with it, unless I get more?

    Update: I checked my task during execution of the animation Manager, and it goes up to 60% at the most. I'm puzzled.

    It is a known problem that can occur in Windows. It's already been fixed, but I don't know when the update will be available. 'Early 2016' is say Adobe.

  • audio is launched from the beginning of the song little matter where I click in the movie timeline to start playing?

    I need the audio to help the photo calendar synchronization. However, no matter where I start playback to check a second time when a certain image, audio ALWAYS starts again from the beginning of the song! How can I stop this?

    Since you have posted in a forum XP... I'm guessing that you're
    using Movie Maker 2.1?

    If you drag the playback indicator (vertical line with square
    at the top... Rest the pointer on the square and drag)...
    the music should start playuing.

    Unlike the video track... you can click left/make dragging clips
    the audio left and right. And you can change the
    duration of a single photo on the timeline manually. Move
    your pointer autour in border of an element until you see a
    double red arrow. Now drag the double red arrow... you'll
    display a ToolTip that shows the evolution of life.

    Articles that offer information about audio sync with the video

    "Collections of projects".
    http://www.Papajohn.org/newsletters/024-Collections.html

    Study the rendering of DV - AVI files
    http://www.Papajohn.org/newsletters/048-StudyDV.html

    Editing film 'Basics '.
    http://www.Papajohn.org/newsletters/139-EditingBasics.html

  • My backup system to stop working on my computer: "backup failed from Windows while trying to read from the shadow copy on one of the volumes to back up.

    My back by abandoning work on my computer, it worked for the last 3 years and all of a sudden I have an error message "failure of the Windows backup while trying to read from the shadow copy on one of the volumes to back up. Please check in the case where the relevant error logs. "How can I fix this so I can get a full backup?

    original title: shadow copy error
    Hello
     

    See the methods listed in the article mentioned below and check with the question.

     
    Windows backup or restore 0 x 80070001, 0 x 81000037 or 0 x 80070003 errors
     

    I hope this helps!

  • Windows Mail has disappeared from the beginning

    All places start with the new computer and Windows 8, as a people, mail, calendar, news disappear from the beginning.  How do I get back?

    Hello

    I suggest you to follow the steps below and check if it helps.

    Before we try to fix this problem, please answer the question below.

    (1) remember you to make changes prior to this problem?

    I suggest you follow the steps below and check if you are able to get the apps to the start screen.

    (a) press the Windows key + Q, type Mail app

    (b) right-click on the mail application, and select PIN to start.

    Similarly, follow the same procedure to bring applications that do not appear in the start screen.

    If you are unable to find the applications, try to download from the app store for Windows.

    (a) open Windows app store.

    (b) press the Windows key + C,

    (c) select search and type Mail app

    (d) select Mail, calendar, people, and e-mail, and then click on install.

    Follow the instructions to install the other missing apps.

    See also the articles below.

    Customize the splash screen

    http://Windows.Microsoft.com/en-us/Windows-8/start-screen#1TC=T1

    What happened to the apps on my PC?

    http://Windows.Microsoft.com/en-us/Windows-8/what-happened-apps-PC

    Hope that the information has been useful, if you have any additional questions or questions about Windows, feel free to post. We will be happy to help you.

  • Music / sound plays from the beginning

    I'm starting a new Flash animation (I've not used the Flash in a few months, but it says it is updated), and for some reason, I've added music, will only play if I start from the beginning of the timeline. If I start from anywhere in the middle of the timeline, after the departure, the sound is not reading at all. What is going on? Can it be fixed?

    What you describe would be the case if you have defined a test of properties. Change that to the stream.

  • How are you at the beginning or end of the timeline in a Premiere Elements project?

    Abobe dear Experts,

    How are you at the beginning or end of the timeline in

    a Premiere Elements project? I use Premiere Pro in a local

    video studio Pro you use parentheses.

    {to go at first, and} to go to the end

    These supports are not displayed in Premiere Elements.

    Can you please tell me how to go from the end of the beginning.

    or from the beginning to the end (or any point in between) without

    go scene by scene, or without scrolling to the desired location

    and clicking in the timeline panel to reposition the CTI.

    I bought elements so that I can do the editing work at home, and I hope

    that the absence of square brackets is not a built-in disadvantage to punish elements

    users do not pay for Premiere Pro.   Please say it isn't so!

    Thanks fo your kind help.  (I'm hoping for the best)

    petera42478182

    Thank you so much ATR for the article on the Mac keyboard. This is what the doctor ordered.

    The much poorer "fn" key and using the arrow keys left and right side of the

    of the keyboard are the keys start and end mac version.

    Press "fn" and left arrow moves the cursor to the beginning of the Fn,

    and "fn" and the right arrow moves the cursor to the end of the Fn.

    Thank you, thank you, thank you.

    PostScrip: many thanks to WHS as well.

Maybe you are looking for