DAQmx: set up a digital acquisition continues with start and stop trigger

Hi all

I write because I can not find a solution to my problem.

As written in the title, I just want to do an continuous (continuous sampling) a digital line. The fact that it's a digital line instead of an analog is no big deal, I guess. I want to start the acquisition on a rising edge of digital trigger (PFI0 for example) and stop acquisition on a trigger too (forehead down on the same signal (PFI0 even then) or a new front amount). This way I could precisely control the time of acquisition or of the start or stop other devices.

Since this is a digital acquisition, you need to do first "something": create a fictitious analog input task and get the clock back to the digital input. I setting this analogue of the task to start on a trigger. It works but I can't find a way to stop it on another trigger.

Do u hav no idea how to implement it?

Finally I have not found an easy way to break cautiously the VI to wait for a trigger (in case you want to start an acquisition with different settings for example). Do you use the task to Abort or is it better to set a deadline to playback digital channel VI until the outbreak occurs?

Any help would be appreciated!

Thank you

Config: LV 2010, latest version Daqmx and USB card or 6251.

Hi Chris,

One way is to use counters as Kevin described. For me, it's usually easier to create the dummy task that has the timing engine (as I HAVE), but it depends on what resource you have on your board you will not need .

In fact, the example is the same thing that you need to measure continues - just what you need to do is remove the counter part and replace the trigger reference to be external (your stop trigger).

with this approach, you should be able to do the continuous measurement - I noticed that you need DI - in fact with few changes you should be able to use this example. DI does not have its own timing engine, that's why you should use the external sample clock. If we use the example to create dummy HAVE to provide the sample clock, and we start DI task until we start to HAVE fake, then we can get pretty much continuous clock which begins start trigger and stop the trigger of reference.

Take a look in the change - once again, I have not tested, but logic seems to be OK.

with sincere friendships.

s9ali

Tags: NI Hardware

Similar Questions

  • Digital start and stop trigger with restart HW

    Hello

    I am trying to write a program that reads continually samples based on the rise and fall of a digital triggering.  I want the measure to start on the front of the trigger and stop on the falling edge of the trigger.  I want the data that are read to be preserved and then added with the next set of data that the trigger rises again.  I have read the tutorial "Digital start and stop trigger" and can use the reference to stop the measurement process and I looked at the example "Acq & chart voltage - Int Clk - HW Trig restarts ' that comes with LabVIEW and I can get the two of them working separately with my request.  I'm quite confused however try to put the two together (see attachment).

    If I put a "Start.vi" icon inside the while loop then I get an error "you can do this while the measure is still ongoing".  If I put it out of the loop and then the process only runs once.  I tried to put a loop structure case for restart only if necessary, but this has produced another error which the source escapes me.  Is there a standard way to do this and if so someone can point me in the direction of an example?

    See you soon,.

    Glen

    I think that in this situation, it would be preferable to use a Pause trigger.  You can use the break to stop the acquisition when the trigger was low and start when the trigger is high.  In this way, served only for the duration of your trigger pulse.  I've attached a screenshot of a VI that illustrates this principle in action.

  • I want cRIO to start and stop the acquisition by push physical button on the cRIO, is this possible?

    When you use my cRIO 9024 on the ground, I prefer to be able to start and stop the acquisition with pressing a physical button on cRIO.

    I want to say I don't want it to be "as a start-up," I don't want cRIO to start the acquisition as soon as the power supply is ensured.

    Is this possible?

    Hi Cashany,

    you will surely find this switch status. But there are easier ways (but more expensive) for a button. Fiddling with a pen or a small screwdriver to switch USER1 is not what I call "user friendly"...

    -You have at least 2 voltage inputs on your module available. Use a switch voltage on the power inputs. Use a 'real' button!

    -You have an available serial port. You can set some pins on GND or voltage and check their status inside the cRIO/RT target...

  • How to start and stop a task with c#?

    Guys,

    I need a help. I'm trying to reproduce a task created using Meansument & Automation Explorer. The task is very simple create a channel of digital output and send the values 0 or 1 to enable and disable a relay in my board DAQmx.

    Kind regards

    Alexander has.

    I found the solution, add a new item in solution using Add new item choose component or and together the configurations such as a task type that you need. The issue will create a class for your task, this class has all the events to start and stop a task, and you can add your new methods if necessary.

    Thank you all.

    Alexandre Albuquerque

  • Why continue those class Scheduler start and stop every half hour approximately

    Why continue those class Scheduler start and stop every half hour approximately. I am fortunate to have a sound event for the event program open and this event is triggered by Multimedia Class Scheduler, it seems, every half hour.
    Is this normal?
    Can I disable it?

    James

    Hello

    Service Multimedia Class Scheduler (MMCSS) allows multimedia applications to ensure that time-sensitive processing receives priority access to the CPU resources. This service allows multimedia applications to use CPU as possible without denying CPU for low-priority applications as well.

    This service is required only for the fact that the Windows Audio service lists this as a dependency. Without the Windows Audio service, no audio signal will play on the system. This service is started when the system starts, but shortly after (~ 8 minutes), it stops.

    This is a Notification which will start with all programs that use Windows Audio. For an example if you open Windows Media Player, then multimedia class scheduler also starts because it uses the windows audio.

  • PowerCLI defining politics NTP to "Start and stop with the host" in ESXi 5

    Would appreciate any help in the definition of the strategy NTP on ESXi 5 hosts 'start and stop with the host. My script is currently using the following:

    Get-VMHost MyEsx | Get-VMHostService | where {$_.} Key - eq 'ntpd'} | Game-VMHostService-policy "automatic."

    This sets up the NTP service in "start automatically if all ports are open and stop when all ports are closed.

    "When I cange to 'MyEsx Get-VMHost | Get-VMHostService | where {$_.} Key - eq 'ntpd'} | Game-VMHostService-political ' market / stop with host"" the following is returned:

    «The possible enumeration values are "auto, On, Off«»»»

    Anyone know of a way (in PowerCLI) of the set up for the 'start and stop with host?

    OK, then you should choose politics "on".

    These are the policy values and what they match.

    Like this

    Get-VMHost MyEsx | Get-VMHostService | where {$_.Key -eq "ntpd"} | Set-VMHostService -Policy On
    
  • Need help with keyframes for start and stop an effect

    I use a mask and blurred for a few seconds. I understand that I must use keyframes to indicate when to start and stop this effect in the video, so that the same area is not trimmed for video full.

    The problem is, I can't find help by correctly setting the keyframes. When I opened the menu keyframes in the effect, it seems that I must together for both the mask took and the blur effect. I did... to start and stop at specific times, but the rest indeed throughout the video, so of course miss me something by using keyframes. The manual to create effects is not useful. I need assistance with keyframes as what I'm doing is clearly not working. Help!

    If the mask does not move that you don't have to set the keyframe. For the blur, click the stopwatch next to 'bluriness' add keyframes as below, the Reds don't blur and blue those maximum blur this fade effect.

  • Satellite A200-1FL: cooler starts and stops every minute only with battery

    Hello.

    I just bought an A200-1FL and I test these days. I noticed that the cooler starts and stops every minute about when I use it only with the battery.

    Disconnected from the power, even if I do not have too much, just browse the Internet. Is this normal?

    If I work with trendy food, the cooler makes no noise.

    Thank you.

    David

    Hello David

    Do you also have it tested with different profiles in power options (balanced, power saver, high performance)?

  • Start and stop Virtual Machines with the system

    Hello

    In a server cluster @vcenter HA/DRS 5.1, I enabled start and stop virtual machines with the system option but after I checked two days later, he is off again somehow. What makes this option off? I had a power failure in the datacenter. vCenter server has not been upward. I started all of the ESXi servers manually then went all VMs account is declining. I want that they start automatically when server ESXi upward.

    Thanks in advance,

    Thank you. This option is more valid than if the hosts are part of an HA Cluster license. I suspect that you configured through the traditional vSphere Client and that it is a bug with this client. If you try with the new vSphere Web Client, you will find a notice that it is disabled and there is no button "Edit".

    Concerning

  • Problems with sleep and stopped after upgrade to Windows 10

    Hello

    So I'm going to sleep problems and stop once I have upgraded to Windows 10 laptop won't sleep or stop correctly. The screen turns off, but the power LED remains lit and fan as well. If I chose the sleep he wakes up little matter what I try, and I have to make a hard stop at every time.

    Any solution to this problem?

    Thank you.

    1. Download version 9 or 10 of the Intel Management Engine Interface (MEI) driver.
    2. Download the Package of troubleshooting Windows 10 "show or hide updates" (http://download.microsoft.com/download/F/2/2/F22D5FDB-59CD-4275-8C95-1BE17BF70B21/wushowhide.diagcab).
    3. Change the Windows Update Services automatic (delayed start) parameter to the manual.
      • In Control Panel, select administrative tools, and open Services.
      • Go to Windows Update and double-click it to view its properties.
      • Click on stop to stop the service to run.
      • Change the Startup Type to manual, and then click OK.
    4. Install version 9 or 10 of the Intel Management Engine Interface (MEI) driver.  If you receive a warning dialog box about the replacement of a newer version of the software, accept it.
      • NOTE: You have NO need to uninstall version 11 before installing version 9 or 10.  The presence of a version of the driver is required to 'upgrade' (or demote in this case).
    5. Run the Windows 10 Troubleshooting Package 'Show or hide updates' and hide the updates of the Intel Management Engine Interface (MEI) driver.  (This will block your system automatically reinstall or display of updates for version 11 of the pilot).
    6. Change back the setting of Windows Update Services to manual automatic (delayed start).
    7. Restart your computer.
    8. Rejoice!  You can finally sleep and stop again.

    -DanG

  • How to set a start and a trigger digital stop conting number trigger signals

    Dear all,

    This is an application for the acquisition of data that I don't know how to set triggers. The trigger signal is a sequence of rectangular pulses. A plot of X - is necessary. The interval between signals start of X are the same. So, I need to count signals trigger to know the value of X. And the value is analog signal. If the trigger interval corresponds to dx, my range of measurement is lying will begin with the rise of the m trigger signal - th with X = m * dx, then it stop at the rising edge of the signal trigger of the n - th with X = n * dx.

    But I don't know hot to make this trigger + counter. The attachment shows a schematic representation of the measure. Can anyone help?

    Thanks in advance.

    Best,

    Jiangjun

    Set the meter to measure the pulse in continuous or over mode according to your requirement.

    Use the source of synchronization as the trigger pulses & configure rates at least 100 times rate of relaxation. Then compare the value count against'm & n' & generate the impulse on the PFI lines or the port pins.

    I guess you know m & n values.

    The other way is to configure to tell it to count the no. rising edges. Then compare this number with'm & n' bones & generate the impulse on the PFI lines or the port pins.

  • How to read digital signals with pre-and post-trigger on a card PCI-6251

    I have 22-bit parallel position of data entering TTL lines to 16 kHz with a pulse of marker that says when the data is valid. I also have a fault line which gives an impulse when an error condition is met. I want to read in the 22 lines of position with 500 positions of pre-event and post-event 500 data when the fault line says. How do I pre and post-déclencher lines digital input on a card PCI-6251?

    If this is not possible on this map, which maps PCI would be possible?


  • Continuation with VIO and Active Directory reference error

    While deploying the instance OpenStack de VIO, I get the following error message when checking the parameters of authentication source:

    Cannot find the specified user (Group). Details: The LDAP search request failed. Further reference

    This seems to be a problem, I met several times, where AD would send a reference instead of the response that the client must follow. But I don't see any option to allow removal with Active Directory. Is there a way around this?

    Concerning

    Gerald

    I found a work around for the problem:

    The query is successful when you use the ports for the Active Directory Global catalog.

    The ports are:

    • 3268 (without encryption)

    or

    • 3269 (with SSL)

    Disadvantage: You can't just use your do domain name address all the domain controller, you must specify one with its host name.

  • DPS generator allow me to continue with icons and splas screens

    I finished the download of my folio to folio producer as it exported in a zip file.

    As I get into indesign to create my custom generator application DPS press to go to the next step of the icons and splash screens.

    Screen Shot 2015-01-31 at 19.41.36.png

    If you have a creative cloud account, you must use the create Panel folio builder app command

  • Set up connection VI start and stop without losing or deleting data

    Hello

    I currently use a PCI-6280 M-series and a card PCI-6601 of counter measurements on Labview 2010.

    I have 3 tasks implemented, 2 tasks of linear encoder on the 6601 counter and 1 analog input task with 4 inputs x on my 6280.  All of these are timed with a counter on the 6601 through a RTSI line.

    All of these tasks, I have a similar setup as the picture in http://zone.ni.com/devzone/cda/tut/p/id/9574 except that they are all set up as only "Log" and "create/replace" for the logging.vi configuration file.

    Because I want to have the encoders permanently locate my position, I never "stop" the tasks of meter.  However, I need to use the data acquired after each trip along the way to get and process location and subsequent analogue input data points I have.  What I did, I would be 'stop.vi' my clock on the counter sample, and then open the PDM file, read the file PDM, get the table from there, close the PDM file, then "run.vi" the clock on the counter sample.  However, I found when I stop the sample clock, not ALL data points have been listened to in the file.

    For example, say I move my cart to 100mm to the right during recording, then stop the sample clock, get the PDM file table, find the size of this table called 'X' for future use.  Then I get the ramasseherbe on the origin WITHOUT restarting the clock.  THEN I start the sample clock and move from 100mm to the left.  After that, I once again, stop the sample clock and get data from my file tdms starting at the offset of reading on "X + 1".  I EXPECT that this table SHOULD start at 0 then go to the 100 mm to the left.  However, what it does, is that I see the data begin at 100mm from the right for a few data points, then GOES to 0, then moves to the left as planned.

    I propose this means that when I stop the sample clock, data from meters (stamp?) not all were listened to the tdms file yet, and when I start the clock, the rest becomes she dumped.  Here, I'm confused because I thought that 'configure logging.vi' stream directly in the file without a buffer.

    I was wondering if I'm doing something wrong, wait bad things, and if there is a way to apply what I want.  As in, is there a way to dump data remaning in the "buffer" (I tried the tdms vi flower, but that didn't work and I didn't think it was relevant) after I stop the clock or something like that, or is my implementation to offshore competely.

    Thanks for reading,

    Lester

    PS. have a way to read the most recent point counters would be great also.  However, whenever I put the offset or relative to the most recent, it is said that I can't do during indexing, even if I saw a community post saying that it works with analog inputs.  This is perhaps off topic, but yes, now I'm just trying to get the tables of PDM works, thank YOU!


Maybe you are looking for

  • Time capsule backup stopped

    I backup my 3 TB Time Capsule 2 MacBook Pro. Internet is fully accessible in all directions. I was support for 2 years on this unit. Now, one of them runs a little and stops with a message that the "backup failed" and other tracks just more than half

  • LoadRunner: LoadRunner fails to start with the message "there are no valid license.

    Hi HP supports, Since last night, I have a problem with running HP LoadRunner version 12.50 product controller. During loading, LoadRunner opens a dialog box where the following message appears: "there is no valid license. Renewal of license, contact

  • Why Skype keep going back to the status "available"?

    I'm running a Droid 2 Turbo with OS 5.1.1 on Verizon.My version of Skype is 6.15.0.1162I am also running Skype on my LG3 tablet, with the same questions.As a lurker, I always want to be among the invisible ones, but if someone sends me a message, or

  • Lenovo Y510P does not start, the white screen at startup

    Hello world I got a Lenovo Y510P with SLI 750 m for about 1 year and 3 months now. 2 weeks (at the time, that I've upgraded to Windows 10). My laptop is suddenly unable to boot most of the time. When I press the power, it hangs on the initial empty s

  • AutoCAD 2010 lt is comptible Vista with windows 7?

    I would like to upgrade to Windows 7, but fear that my lt in AutoCAD 2010 for Vista won't be compatible.  What is the answer to that?