Sync Multiple Counters

Hello,
I want to start 3 counters on a 6624 board simultaniously. The counters should count edges from 3 diffrent sources. I am using Labview 8.0.1
Can I start those 3 counters with a software generated signal (I have no external HW Trigger)?
I was thinking about something like you start an AI and AO operation simultaniously. But it seems that there is no corresponding trigger event (ai/StartTrigger) for counters available.
Thank you for your help in advance,
Peter

Hello,
you have no software trigger like ai/StartTrigger which you can use. Attached you can find an example where 3 counters will be started from a 4. counter. The 4. counter generate a puls. The 3 counter are configured with a pause trigger.
If you use this example be careful, the 6624 has inverted logic (see manual,
TIO Series -> Device-Specific Information -> NI 6624 -> Input).
For the 4. counter you need separate Source voltage (see manual) to generate the puls.
hope this helps
Michael
Attachments:
Count Digital Events-Pause Trig_6624.vi ‏63 KB

Similar Messages

  • How do I output a finite pulse train through multiple counters?

    Hello,
    I have used LabView examples to create a VI to use with my TIO 6602 that generates a finite pulse train with varying duty cycle, frequency, number of pulse, and initial delay.  I can also have it output the pulses through multiple counter channels, but all the channels have the same delay, and are output at the same time.  I need each channel to have a specific delay from the first one.
    In my VI, I use DAQmx to create a retriggerable finite pulse train by gating a counter with another counter.  I have all the neccessary controls over the pulse train, but I can not seem to find an easy way to just copy this waveform and output delayed versions of it to other channels.  The delay is very important because these signals will be used to drive ultrasound transducers in a linear array, and for the waveforms to focus at one point, the signal driving the transducers with a shorter distance from the focal point need a larger delay, so that the same waveform arrives from each transducer at the same time.
    Any help with how I might do this would be much appreciated.
    Thanks!

    Hey Sneaky,
    Here's a screenshot of the code I put together on how to use multiple counters.  Also, take a look here for more information on how to sync multiple counters. 
    Message Edited by Knights Who Say NI on 02-02-2009 10:36 AM
    Message Edited by Knights Who Say NI on 02-02-2009 10:36 AM
    Message Edited by Knights Who Say NI on 02-02-2009 10:38 AM
    -John Sullivan
    Analog Engineer
    Attachments:
    4xcount.jpg ‏67 KB

  • Simultaneously latching multiple counters (AKA "strobe")?

    How do you simultaneously latch values in multiple counters, at arbitrary times, for later reading?
    A physical system generates several kinds of events to be counted by different counters, none of which events are strictly periodic or mutually synchronized (most of them are radioactive decay events, on the order 10^-3 to 10^5 per second average). It is critically important to count them all. At somewhat irregular intervals a few dozen milliseconds apart, I have the opportunity to read the counts, and it is also critical that whenever I read them, the counts are all captured at the same time, though it is not important exactly when this time is or how close in time I read them. Note: it is defining the end of one count period and start of the next that is time critical - not returning the count value to the calling program, which can happen whenever convenient.
    I've used other counters that have a strobe-and-latch feature in past versions of this system, including Advanced Micro Devices' Am9513 and the good old 8254. When a read opportunity happens, I programatically strobe the counters then read each one's latched values at leasure, while the counters themselves continue counting. But I haven't found strobe-and-latch in either of my two NI hardware systems or in any of the LabVIEW vi's, properties, or examples. Is it there someplace, maybe by a different name?
    I haven't found an example vi that simultaneously buffers counts in different counters. But it looks like some combination of the "Count Digital Events-Buffered-Continuous-Ext Clk.vi" example vi and the "Duplicate Count Prevention" method described in my DAQPad-6259 docs might get me what I want, but I'm not sure. I've attached one of my attempts to make this work, "SimultaneousCountBuffering01.vi". I have a single benchtop signal generator sending a 1 kHz signal to my DAQPad, where it's wired to both counter source terminals. This vi reads both counters at slightly different times on an irregular schedule repeating at about a half second. But it also first drives a digital output line high and low. This output is physically wired to both counter gate terminals. The DAQPad docs say that when counting in this mode, the counter is always counting regardless of the state of the gate, but at every positive edge on the gate, the count is buffered for subsequent reading. It's not important whether the readings are cumulative or get rezeroed because it's easy to use a shift register to change this anyway.
    But I haven't gotten this vi or others like it to do anything useful. In this particular version, the counter reads time out. Maybe this means there's nothing sitting in the counter buffer? The examples don't seem to show anything making the counter buffer counts, so I guess that's done by the property node selecting Duplicate Count Prevention counting mode. I've checked various combinations of the digital out line state in this vi, by the way, but still the timeout happens. In my other attempts the counts are always zero, or occasionally jump by thousands, or only one counter will occasionally see only one count. Simpler vi's (that don't attempt the Duplicate Count Prevention and don't get synchronized count values) do work, and the counters both count at the expected rate.
    Am I on the right track, using Duplicate Count Prevention?
    If not, what approach should I be taking?
    Even if this is the wrong approach, I still wish the vi did something, and am curious what I'm leaving out. Anybody know?
    Thanks!
    Attachments:
    SimultaneousCountBuffering01.vi ‏64 KB

    I don't have LV handy here, but I took a quick look at your OneLoop and TwoLoop attachments.  If I remember correctly (I may be mixing those up with a couple other things I looked at), you face the following significant issues:
    A. Need dataflow sequencing to help enforce execution sequence.  With multiple data acq tasks, it's very typical to use the wind the error cluster from one task to another as a means to enforce execution sequence.
    B. Need an overall scheme that doesn't keep configuring, running, and clearing each task in a software loop.
    Let me roughly describe an approach I'd suggest:
    1. Create a "dummy" AO task solely for the purpose of using its sample clock as a strobe for buffering your edge counts.  Configure it for Continuous Samples using DAQmx Timing.vi   The sample rate you choose will determine how often count values are captured ("strobed").  You may also need to set the property to "Allow Regeneration", found under one of the DAQmx Property Nodes (probably either the Channel or Write node).  Write an array full of 0 values to the output buffer using DAQmx Write.  (The actual value doesn't matter to the program, but 0 volts should be a safe value if you've got anything wired to your analog output terminals.)
    2. Create 2 similar edge counting tasks with your counters.  Both should be configured to use a digital "Arm Start" trigger using a DAQmx Trigger property node.  That will guarantee that they are sync'ed at time=0.  When you call DAQmx Timing.vi, wire in the input that lets you specify sampling using the AOSampleClock.
    3. My personal choice for getting them all started in the right order would go like this.  The counters would use the falling edge of the AOSampleClock as an "Arm Start" trigger and the rising edge of the AOSampleClock as their sample clock.  The counter tasks are started before starting the AO task.  After starting the AO task, the falling edge of the 1st AOSampleClock will "arm" the counters to start counting their edges simultaneously.  The rising edge of the 2nd AOSampleClock will "strobe" the count values into the counter tasks' data acq buffers.  Each subsequent rising edge will buffer the next counts.
    4. Duplicate Count Prevention may need to be specified if there's a chance you might not see any edges to count between 2 consecutive sample clock strobes. 
    5. When you read from the counter tasks, be sure to read the same # of samples from each task.  Then you can subtract the arrays to get your count differences, knowing that the counts correspond to the exact same interval of time.
    -Kevin P.

  • Can you sync multiple iphones to one itunes account

    can i sync multiple iphone to the same itunes on the same computer

    Yes each phone will have its own syncronisation so you can set what goes onto those phones independently of each other

  • How do I sync multiple devices on iTunes without apps that are only on an iPad Air not sync on other devices?

    How do I sync multiple devices on iTunes (iPad Air & iPhone 5) without apps that are only on an iPad Air not syncing on my iPhone 5? I have apps on the iPad that I do not want on the iPhone, but when I sync my iPhone I have apps that are on the iPad sync to it also. How do I fix this so only the apps/data on each device sync to it?

    Settings
    iTUnes and app store
    turn off automatic downloads for apps
    Then what you buy on one device only goes onto another if you want it to

  • How do I sync multiple iCloud calendars with outlook

    I am running Outlook 2007 (not exchange) on a PC and want to sync multiple (3-4) iCloud calendars with Outlook. Currently I am syncing only one and works great, but I am having a terrible time on setting up additional iCloud Calendars. Any suggestions?

    Diesel -
    First, Thanks for responding!!!
    Second, I've got it syncing with one, and only one, of the calendars so I know that it can. The question that I have is if there is a way to sync with multiple calendars and if so how do I do it. I've got the one working by having iCloud sync with one of my calendars in outlook and my phone sync with iCloud. Does anyone have an idea how to accomplish this?

  • How do i sync multiple iphones, one computer without getting other iphone info

    how do i sync multiple iphones with one computer without getting other iphone's info.
    When I sync my iPhone, after I do a backup, then sync, I end up getting my kids phone numbers, wife's numbers, etc.
    How do I create my own account to manage?

    Settings
    iTUnes and app store
    turn off automatic downloads for apps
    Then what you buy on one device only goes onto another if you want it to

  • How do I sync multiple picture folders to my iPod ?

    How do I sync multiple picture folders to my iPod touch ? I don't want to create another folder and then copy the desired folders to be synced, into this main folder. All of my pictures are about the size of 5-10 MB. Copying them would mean loss of additional space.

    You can only point iTunes at one folder for syncing to the iPod. You can however selectively choose which subfolders of the main folder are included. I use a Photos folder inside iTunes\iTunes Media and move the folders that I want on my device into that, but the parent folder could be anywhere that suits you.
    tt2

  • How do I sync multiple iPones on the same iMac

    How do I sync multiple iPones on the same iMac

    Use another account where?  Let's say phone A is being synced to Mac A, and now you want to add phones B and C to Mac A, then they will all be syncing using the same account, the one used on Mac A.  Phones B and C can share apps and songs currently on Mac A's iTunes, but they will lose any apps, etc. that were previously put on them from other macs that use different accounts.  That's the way it works. If you want to keep the apps on B and C, then keep syncing them to their original macs.

  • Syncing multiple iPhones/iPads/iPods for different users via WiFi on a single computer?

    So my wife and I each have an iPhone running iOS 7.0.3 (11B511), she has an iPad (iOS 7, but unsure of the exact release), and my son has an iPod (also iOS 7, but unsure of the exact release).  I've also have a Mac mini running Mac OS X 10.9 (13A603) with Server 3.0 (13S440) and iTunes 11.1.3 (8) 64-bit.  I'd like us each to be able to sync any of our devices via WiFi when we're at home.  We each have accounts on the server with thier own iTunes Libraries and associated with thier own iTunes Store accounts.
    I've seen posts that explain how to sync multiple devices to a single account with a single library, and I've seen posts that explain how to sync different devices to different libraries under different users when each is the only user running iTunes at the time.  Is there a way to allow each user to sync whenever they please without having to have the other users log out of iTunes, log themselves in, and then sync?
    It sounds like, from what I've learned so far, that multiple users running iTues is not (or at least used to not) be enough to make this work.  I'm looking for a definitive answer here though, not a guess that it can't be done based on previous versions or speculation.  If you're not sure but want to share your thoughts and theories only, please indicate as much in your response.  Thanks.

    Welcome to AD!
    Here is an article on using multiple ipods. I suggest method 1 and steer clear of method 3.
    http://support.apple.com/kb/HT1495
    For your point #1, sharing music on same PC between users, put it in a shared library & set permissions as directed here
    http://support.apple.com/kb/HT1203
    For #2, itunes doesn't have the capability to monitor folders for new content. You'll need to get something like the free program 'itunes folder watch'.

  • I need to back up and sync multiple iPhones to a single iMac.  Each iPhone has a separate Apple ID and the data from each iPhone needs to be backed up separately from the others.  How can I do this without getting all of the contacts, etc. mixed? Tnx

    I need to back up and sync multiple iPhones to a single iMac.  Each iPhone has a separate Apple ID and the data from each iPhone needs to be backed up separately from the others.  How can I do this without getting all of the contacts, etc. mixed? Tnx

    This might help: http://support.apple.com/kb/HT1495.

  • How to use multiple counters in the 6602 to measure cycle length, calculate delay and generate triggered pulse.

    Hi,
    I need to measure the cycle length of a pulse, calculate a delay based on this value, and then generate a triggered pulse with that delay value. The input and output pulses will be continuous. The best case would be to use the cycle length from one pulse in the calculated delay for the next pulse. One of my biggest problems has been getting the calculated delay value into the pulse specs.vi for the triggered output.
    This output pulse will be used to trigger an IMAQ video acquisition; therefore, the solution to this problem will be part of a larger video acquisition application. This has posed a problem, in that accessing the counters has interfe
    red with the triggered video acquisition.
    Any suggestion will be welcome.
    Thanks
    Dave

    Filipe,
    The overhead is the problem I'm trying to get around.
    Specifically, what I need to do is to generate an output pulse after a trigger pulse, which is a given percentage of the cycle length. The input pulse is from heart rate, so it will have some variance, and the output pulse will be at a stationary point in the cardiac cycle. For example, for an input pulse of 2 Hz (500 ms) the user would likely request the output pulse be delayed by 75%. Therefore, the generated pulse will have a 375ms delay after the trigger.
    In the past I have had hardware built to do this, but I am hoping I can accomplish the same thing with multiple counters on the 6602. I have been able to accomplish this with 3 counters (2 to measure period and 1 for output
    ) but the overhead prevents adequate triggering of the IMAQ video acquisition. I am hoping another method would solve this problem.
    Thanks
    Dave

  • How can I sync multiple google calendars (one 1 account)?

    I am wondering if it is possible to sync multiple calendars from my google account to my iCal account. I had one calendar that I sync to iCal and today I added another calendar for my work schedule to google and iCal hasn't pulled it up. Please advise.
    Thanks in advanced!

    Anyone? This is extremely important.
    Thanks again.

  • How do I sync multiple iPods to the same iTunes Library?

    How can I sync multiple iPods to the same iTunes Library?

    The same way you sync just one. If y want different media on each iPod then only select the items you want synced to each iPod
    iTunes: Syncing media content to iOS devices and iPod       
    Try syncing using the manual method                
      Managing content manually on iPhone, iPad, and iPod
    Also, I would go to iTunes>Preferences>Devices and check the box that says prevent iPods... for syncing automatically so that you can more easily check what you want syned

  • ITunes - syncing multiple iPhones and avoiding apps going on the wrong handsets!

    Hi all,
    I work for a small telco and i sync multiple iPhone handsets daily to my iTunes on my work PC, the problem i'm having is when the customer wants there applications transferred to their new handset, I have to sync the applications to my itunes and then put in the customer Apple ID password and transfer the purchases. Then what happens is the customers go to update their applications on there handsets and it comes up with another random apple id to update the app. How can i stop this from happening???
    Please I need your Help!!!

    My wife and I share almost everything...so when we purchase apps, we use the same Apple account. We have one account with AT&T with two phones. We also have one account at the apple store and charge everything to a specific credit card that has a very low monthly ceiling. This allows us to download the apps to our iphones from different computers. When I buy an app or download a free one, she logs in with our account and is eligible to download the app too. I think it is OK with Apple but have not read the fine print of the agreement.
    Message was edited by: OregonFarmer

Maybe you are looking for