How do I use the buffered counting mode at a fixed frequency?

Hi-
   I'm using a PCI-6259 M-series board with the Nidaq MX
drivers in Labview 7.  I am trying to use one counter to do
buffered edge counting (eg. count how many pulses appear on one input
in 400 successive time bins of 10 uS each following a digital start
pulse).  That is, my inputs are:
     Start Pulse (from experiment)
     Count Pulse (from a photomultiplier tube in the experiment)
And I want to know:
    # of pulses from 0 to 10 uS after the Start Pulse
    # of pulses from 11 to 20 uS after the Start
Pulse  (or, equally good, # of pulses from 0 to 20 uS....I can
subtract later)
    # of pulses from 3991 to 4000 uS after the Start Pulse (or, # of pulses from 0 to 4000 uS...same thing)
   The Count Digital Events-Buffered-Finite-Ext Clk.vi sample
appears to do half of this.  I can set this up CTR0 with the Count
pulse (and possibly add the start pulse as an Arm Start....I can't use
a Start Trigger, right?).  However, I need to generate a Sample
Clock Source at 100 kHz (to trigger the card to buffer the counter
value and start counting in the next bin).  So, I tried to set up
CTR1 along the lines of Gen Dig Pulse Train-Finite-Dig Start.vi for
generating a finite pulse train starting on a digital trigger, and
connecting the output from CTR1 to the Sample Clock Source on
CTR0.  However, I get an error -50103 saying the specified
resource is reserved if I do both at the same time.  But, I can't
see any resource conflicts...the pulse generation on CTR1 works fine
alone, as well as the buffered counting on CTR0, and all the PFI pins
are different.  Is there some reason I can't use both counters at
the same time?
I think I can use the FREQOUT pin on the card to generate a Sample
Clock Source at 100 kHz, since I think this is independent of CTR0
& CTR1.  However, I can't trigger the FREQOUT to always start
when I get a Start Pulse (as I can if I trigger a Digital Pulse Train
to start on a digital trigger...or can I?)...so my bins will move
randomly by up to 10 uS.
   This is an unrelated topic, but is there a discussion of
the relationship between the terminology in the manuals describing the
cards (SOURCE, GATE, OUTPUT terminals) and the terminology in NidaqMX
(Source Clock/SrcClk.Source, CI.CountEdges.Term, CO.Pulse.Term)? 
Eg. is CTR0.GATE always the same thing as SrcClk.Source, or does it
depend on the mode of operation?  If the M-series hardware manual
says to connect something to the SOURCE input, how do I assign an
alternate PFI pin to that SOURCE input in Labview?  Does it depend
on the counter type, or is it always the same?

Dave,
Hi, you brought up several questions / issues -- let me see if I can help with some of them:
   I can set this up CTR0 with the Count pulse (and possibly add the start pulse as an Arm Start....I can't use a Start Trigger, right?).
Yes, you could set up this way.  Also, as far as I know you're also correct that you need to configure for an "Arm Start" trigger using the DAQmx Trigger property node.  The "Arm Start" trigger is used for counter input (measurement) apps while the regular "Start Trigger" can be used for counter output (pulse generation) tasks.  I don't think I've experimented with recent versions of DAQmx though so it may have changed in 7.4 or 7.5
...I tried to set up CTR1 along the lines of Gen Dig Pulse Train-Finite-Dig Start.vi for generating a finite pulse train starting on a digital trigger, and connecting the output from CTR1 to the Sample Clock Source on CTR0.  However, I get an error -50103 saying the specified resource is reserved if I do both at the same time
I highlighted the problem -- the FINITE pulse train.  DAQmx uses CTR0 as a "helper" when you generate a finite pulse train on CTR1.  It would generate a single pulse whose width corresponds to the exact amount of time needed for CTR1 to generate its specified # of pulses.
For your specific app, I think you could generate a triggered continuous pulse train with CTR1 -- this wouldn't need to use CTR0 as a helper.  The Start Pulse would arm CTR0 at the same instant that CTR1 is started.   If you set up CTR0 to acquire on the trailing edge of CTR1's pulses, then you'll get the time bins you want.
A final slight mod would be to setup CTR0 for measuring buffered periods (set units == "Ticks") instead of counting edges.  In that mode, you wouldn't have to do the subtraction at the end.
   This is an unrelated topic, but is there a discussion of the relationship between the terminology in the manuals describing the cards (SOURCE, GATE, OUTPUT terminals) and the terminology in NidaqMX (Source Clock/SrcClk.Source, CI.CountEdges.Term, CO.Pulse.Term)?  Eg. is CTR0.GATE always the same thing as SrcClk.Source, or does it depend on the mode of operation? 
There's an NI app note and some discussion forum hits if you search the site for "daqmx terminology."
If the M-series hardware manual says to connect something to the SOURCE input, how do I assign an alternate PFI pin to that SOURCE input in Labview?  Does it depend on the counter type, or is it always the same?
Usually, that choice would be available under the DAQmx Channel property node.   There'll be some place to define where the input signal is coming from, generally with "Term" or "Terminal" as part of its name.   Sorry I can't be more specific as I'm not at my LV computer now.
Happy counting!
-Kevin P.

Similar Messages

  • I was trying to get the iOS 8.2 on my iPhone 5 but then it stopped and my phone is now on recovery mode I have pictures I need and they did not all fit on iCloud  how can I use the phone again with ALL my pictures and videos without restoring it?

    I was trying to get the iOS 8.2 on my iPhone 5 but then it stopped and my phone is now on recovery mode I have pictures I need and they did not all fit on iCloud  how can I use the phone again with ALL my pictures and videos without restoring it?

    Contacts are designed to be synced to a supported application on the computer or a cloud service.
    Pictures taken with the device are designed to regularly be copied off the device to a computer as would be done with any digital camera.
    If you have failed to use the device as designed it may be too late to recovery anything.
    Is the device regularly backed up to a computer via iTunes?  If so, the most recent backup (when restored to a replacement iOS device) should contain all contacts and pictures as of when the backup was created.

  • How can I get the shutter count for my Canon 7D Mark II using Windows XP?

    How can I get the shutter count for my Canon 7D Mark II using Windows XP? I've been looking lots of places and doing some file uploads, but I can't seem to find anything. I'm wary of downloading software I know nothing about. Any help is greatly appreciated.
    Solved!
    Go to Solution.

    Nevermind, just, sort of answered my own question. Doesn't work on XP, but using a Win 7 'puter I was able to use Shutter Count, which now works w/ the 7D Mark II.

  • How do you convert the encoder counts to RMP of the motor using a myRIO in LabVIEW?

    My intent is to gain hardware interfacing and general Labview experience. I am using a myRIO to control a Pittman 8222 34V Brushed DC motor (Motor Specs).
    I recently created a code to control the angle of this motor using PID, which was visually implemented using the black disc with a white tick mark on it (see attached picture: "IMG_2523"). 
    I now want to control the speed of this motor againg using PID, but I am not sure how to properly convert the encoder counts to RPM of this motor. I have attached 2 screen shots of my block diagram and my front panel for reference ("Capture" and "Capture2"). In the front panel picture, you can see my "actual" speed of the motor is a very choppy signal when it should theoretically be a flat line. To get the RPM, I currently use a shift register to store the current count value (which I converted to deg, then to radians), and then subtract the previous run's value, then divide by the while loop sampling time (10 ms). This would give me rad/s, which I then wrote a subVI to convert it to rpm. 
    Any help would be greatly appreciated, thanks. 

    Hi,
    One thing you could try doing is verifying that the conversion from rad/s to rpm is working correctly. 
    This tutorial might also be helpful. It's not using the same hardware that you are, but goes through the general steps using PID control. 
    CompactRIO Motor Control Basics Tutorial: http://www.ni.com/pdf/labview/us/compactrio_motor_control_basics.pdf
     

  • How do I use the time capsule to share itunes music between multiple apple devices? Also, is it possible to control the music on one device using another, and how do you set this up?

    How do I use the time capsule to share itunes music between multiple apple devices? Also, is it possible to control the music on one device using another, and how do you set this up?

    unless i'm missing something, i think you got mixed up, this is easy google for walk throughs
    i'm assuming this is the new 3tb tc AC or 'tower' shape, if so, its wifi will run circles around your at&t device
    unplug the at&t box for a minute and plug it back in
    factory reset your tc - unplug it, hold down reset and keep holding while you plug it back in - only release reset when amber light flashes in 10-20s
    connect the tc to your at&t box via eth in the wan port, wait 1 minute, open airport utility look in 'other wifi devices' to setup the tc
    create a new wifi network (give it a different name than your at&t one) and put the tc in bridge mode (it may do this automatically for you, but you should double check) under the 'network' tab
    login to your at&t router and disable wifi on it
    add new clients to the new wifi network, and point your Macs to the time machine for backups

  • How can I use the versionning tool to make a coherent solution to export

    how can I use the versionning tool to make a coherent solution to export all objects used in my project to other db schema for testing as well as for implementation .
    I want to know proper steps to Import/export objects.
    while I am exporting my Master repository and work repository then again importing the all , no problem comes all the physical logical schema mapping and mapping between interfaces retains but
    while I am trying to export and import one or two packages on the ease of testing then I am getting so many mismatches manually I am setting all why so?
    required ur suggestion
    Palash Chatterjee

    kelly-bot wrote:
    Thanks for the tip, but like I said, I dont want to always have to use the arrow keys. Is it not possible to actually DRAG one pixel at a time? I recently upgraded to CC from CS3 and I keep running into things that feel like a downgrade. Super disappointed.
    Our posts overlapped there.  Are you saying you could reliably drag one pixel with CS3? 
    What other issues are you having?  Things like the Crop tool can feel strange at first, but I promise you you'll never want to use Classic mode once you get used to it.

  • How can I use the iPhone 4s as a usb drive?

    How can I use the iPhone 4s as a usb drive?

    I'm not sure about the original iPhone, I didn't have one, but the iPhone 3G did not have a disk mode feature.

  • How can I change the frame rate mode?

    Adobe Premiere Pro exports my videos with a variable frame rate. Because of this long videos are asynchronous. How can i change the frame rate mode? So Adobe Premie Pro exports my videos with a CONSTANT frame rate? The original video  has a constant frame rate...

    Sorry my mistakes. I am from Germany.. so...I mean with asynchronous that the video file and the sound file are displaced. In the beginning of the Video it's normal, but if the videos is very long it goes VERY "asynchronous"
    I analyzed the video with "mediainfo":
    General
    Format                                   : MPEG-4
    Format profile                           : Base Media / Version 2
    Codec ID                                 : mp42
    File size                                : 2.00 GiB
    Duration                                 : 20mn 13s
    Overall bit rate mode                    : Variable
    Overall bit rate                         : 14.2 Mbps
    Encoded date                             : UTC 2013-12-11 13:56:13
    Tagged date                              : UTC 2013-12-11 13:58:30
    ©TIM                                     : 00:00:00:00
    ©TSC                                     : 30
    ©TSZ                                     : 1
    Video
    ID                                       : 1
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Format profile                           : [email protected]
    Format settings, CABAC                   : Yes
    Format settings, ReFrames                : 3 frames
    Format settings, GOP                     : M=3, N=30
    Codec ID                                 : avc1
    Codec ID/Info                            : Advanced Video Coding
    Duration                                 : 20mn 13s
    Source duration                          : 20mn 13s
    Bit rate                                 : 14.0 Mbps
    Width                                    : 2 560 pixels
    Height                                   : 1 440 pixels
    Display aspect ratio                     : 16:9
    Frame rate mode                          : Variable
    Frame rate                               : 30.000 fps
    Minimum frame rate                       : 30.000 fps
    Maximum frame rate                       : 30.030 fps
    Standard                                 : PAL
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Progressive
    Bits/(Pixel*Frame)                       : 0.127
    Stream size                              : 1.98 GiB (99%)
    Source stream size                       : 1.98 GiB (99%)
    Language                                 : English
    Encoded date                             : UTC 2013-12-11 13:56:13
    Tagged date                              : UTC 2013-12-11 13:56:13
    Color primaries                          : BT.709
    Transfer characteristics                 : BT.709
    Matrix coefficients                      : BT.709
    mdhd_Duration                            : 1213733
    Audio
    ID                                       : 2
    Format                                   : AAC
    Format/Info                              : Advanced Audio Codec
    Format profile                           : LC
    Codec ID                                 : 40
    Duration                                 : 20mn 13s
    Source duration                          : 20mn 13s
    Bit rate mode                            : Variable
    Bit rate                                 : 158 Kbps
    Maximum bit rate                         : 254 Kbps
    Channel(s)                               : 2 channels
    Channel positions                        : Front: L R
    Sampling rate                            : 44.1 KHz
    Compression mode                         : Lossy
    Stream size                              : 22.8 MiB (1%)
    Source stream size                       : 22.8 MiB (1%)
    Language                                 : English
    Encoded date                             : UTC 2013-12-11 13:56:13
    Tagged date                              : UTC 2013-12-11 13:56:13
    mdhd_Duration                            : 1213777
    And there i can read that the "frame rate mode" is variable... and that's the bad thing... I want to change that point to a constant frame rate mode. I use the H.264 codec 

  • How to best use IDSM in promiscuous mode?

    Hi folks
    I need some input and ideas how to best set up my IDSM2 module.
    Today I have the module set up to capture traffic from the 6513 using SPAN in both directions and two different firewalled VLANs as sources. The destination is data-port 1 on the IDSM. This setup is working fine but I'm curious as how to best use the second data-port. Our 6513 runs IOS 12.2(18)SXF3 and has a limit of only one SPAN session set up to capture an entire VLAN in both directions.
    My idea was to use the second data-port as SPAN destination for our external/non-firewalled VLAN, but this isn't allowed.
    Does anyone have or had a similar problem? Would using a VLAN access list with data-port 2 as destination be an option or are the dual IDSM interfaces mainly used for inline mode?
    Regards
    Fredrik Hofgren

    Fredrik,
    I am using VACLs in the switch that has the IDSM. This will preserve your SPAN sessions.
    You can specify which vlans go to which port on the IDSM.
    We actually have our external vlan set up as an inline vlan pair on data port 2.

  • E71 - how can i use the gps, please help

    I have never used GPS before, i got E71 last week, it says in the manual that there is an inbuilt gps receiver in it.
    From the discussion here it looked like i still need something else to use the GPS. I saw someone
    mentioned 'Mapping', does E71 come with this program or do i need to get it from somewhere?
    Can someone tell me how i can use the GPS in the E71? Is it possible to use gps in this phone without paying additional charges?
    Many thanks.
    Solved!
    Go to Solution.

    Phones with free navigation
    Nokia E72
    Nokia E71
    Nokia E66
    Nokia N97 mini Gold Edition
    Nokia N97mini
    Nokia N97
    Nokia N86 8MP
    Nokia X6 16GB
    Nokia 5800 XpressMusic
    Nokia 5235 Ovi Music Unlimited
    Nokia 5230
    To find Ovi Maps for other phones visit Maps Support-http://www.nokia.co.in/get-support-and-software/download-software/maps-support/compatibility-and-dow...
    How to install and setup GPS in nokia E-71.
    Firstly Install Nokia Ovi Suite (advance version of PC Suite) in your respected computer.
    http://www.nokia.co.in/get-support-and-software/download-software/nokia-ovi-suite
    After installation of Nokia Ovi Suite go to following link
    http://www.nokia.co.in/explore-services/ovi-maps/downloads?intc=ncomexpserv-fw-ilc-lft-con-na-ncomex...
    Now install the the second link file into your phone, i.e., "nokia_maps_3.03_10wk11_b04_s60_3.1_rom.Nocs.sis".
    After successful installation connect your phone with data cable in PC Suite (DON'T run PC suite application in your system) mode and open Nokia Ovi Suite application in your system.
    Now in Nokia Ovi Suite application click on View-Go to-Maps (make sure your system is connected to Internet and your mobile phone key pad doesn't get locked, if keypad autolock period is on switch it off for that moment and your phone is fully charged, now in maps select Asia in that India and download that India Map (103 MB) into your phone.
    Please Note that do not disconnect your phone from data cable else maps will not get downloaded and will not to be
    transferred to your phone.
    After successful installation of maps into your phone download "Voice Guidance Languages", which ever is preferred by you, if you really want to enjoy it. Like- English(UK)-with street names or in Hindi, Tamil, Urdu.
    Now you are almost done, just take your phone into your hand,
    Go to Maps then select Options-then Settings
    Internet-Connection-Offline ( don't worry your GPS will work fine as data bearer is Nokia which is free of charge, so just relax).
    Navigation-Drive Guidance-Select the desired Voice
    Walk Guidance-Select the desired Voice or you can set it to Beeps and Vibrations (if downloaded).
    Home Location- define you home location by searching in maps, this will make easier to drive back to home by simply selecting Drive Home option while using navigation.
    Now go to option Map-Categories-select the categories you want to be shown on the map.
    Its DONE, now search for any desired location press the selection button and then select Drive to or Walk to option and you will be connected to GPS.
    Please Note as GPS needs free environment so it may not work in home and generally it takes 10-15 minutes to connect so please be patient.

  • How can I bring the recordset count inside the same recordset?

    I have a query inside a procedure where I'm paging the results.
    I dont know how to bring the total results inside the recordset.
    How can I bring the recordset count inside the same recordset?
    SELECT *
    FROM ( select a.*, rownum rnum
         FROM (SELECT
              FROM table
              ORDER BY id DESC) a
         WHERE rownum <= pg*50 )
    WHERE rnum > (pg-1)*50

    My query is much more comples, so that is why I'm using the other script.
    When I included the "COUNT(*) OVER() tot_cnt AS total" it didn't worked:
    ORA-00904: "TOT_CNT": invalid identifier
    What is the tot_cnt?
    SELECT *
    FROM (SELECT a.*, rownum rnum
    FROM (SELECT
    ed_fotos.id AS COD_FOTO,
    ed_fotos.arquivo AS NOM_ARQUIVO,
    ed_areas.nome AS NOM_REDACAO,
    COUNT(*) OVER() tot_cnt AS total
    FROM edt.ed_fotos ed_fotos
    INNER JOIN edt.ed_volumes ed_volumes ON ed_volumes.id = ed_fotos.volume_id
    INNER JOIN edt.ed_caminhos path_alta ON path_alta.id = ed_volumes.caminho1
    INNER JOIN edt.ed_caminhos path_baixa ON path_baixa.id = ed_volumes.caminho2
    INNER JOIN edt.ed_areas ed_areas ON ed_areas.id = ed_fotos.redacao_id
    ORDER BY id DESC) a
    WHERE rownum <= 200 )
    WHERE rnum >= 100

  • How do I use the onboard clock when using DAQmx timing?

    Hi,
    I'm using the example: Count Digital Events-Buffered-Finite-Ext Clock.
    I want to use the PCI-6602 onboard clock. When I leave the sample clock source unwired I get an error message :
                                                      ​                                                  ​                                                  ​        Error -200303 occurred at DAQmx Start Task.vi:1 
                                                      ​                                                  ​                                                  ​        Possible reason(s):
                                                      ​                                                  ​                                                  ​        External sample clock source must be specified for this application.
    Can someone tell me what I'm doing wrong?

    Counters do not have an internal onboard clock like the AI and AO subsystems do.  So you have to generate the sample clock for your edge counting task yourself.  This is often done with the other counter by generating a continuous pulse train.
    I hope this helps!
    gus....

  • How can utilize/use  the extended space in system.img ?

    Hello Guru's
    In Oracle VM , How can utilize/use the extended space in system.img ?
    a) Increased the system.img size using the following command:
    # dd if=/dev/zero bs=1M count=12960 >> /OVS/running_pool/18_test1/System.img
    b) Verified the added size of system.img file at OVS server.
    # ls -lh System.img
    -rw-r--r-- 1 root root 19G Feb 9 20:58 System.img
    c) Started GVM and additional size/memory is not shown ?
    # df -m
    Filesystem 1M-blocks Used Available Use% Mounted on
    /dev/xvda2 3984 2292 1652 59% /
    /dev/xvda1 92 12 75 14% /boot
    tmpfs 512 0 512 0% /dev/shm
    + Tried working with resizefs , resize2fs , cmd did not work.
    (GVM is created using Oracle provided template)
    + am i missing anything ?
    Oracle VM Setup Detail:
    oracle-logos-4.9.17-7ovs
    enterprise-linux-ovs-5-0.17
    ovs-release-2.2-0.17
    ovs-utils-1.0-33
    kernel-ovs-2.6.18-128.2.1.4.9.el5
    ovs-agent-2.3-29
    Thanks in advance for your help.
    Best Regards
    Basu

    I am not positive what you did is going to work, but it seems like you did the equivalent of imaging a small disk on a bigger disk. In that case, the first thing to do is update the partition table with fdisk. Start with fdisk -l in the vm for general information about the disk. Hopefully, the additional space will show. Then, work with fdisk to use the extra space. The easiest is to add a partition, then a file system on it. It is also possible to expand the last partition (you might have to delete it first), then expand what is on it (may be RAID, LVM, or the file system), layer by layer. As usual with fdisk, you run the risk of thrashing it all, so you may want to practice on a copy first. Obviously, the extra space can only be added to the last partition of the small disk.
    If the situation is more complex, you may have to boot a VM with both the small disk and the big disk at the same time. If you boot the VM off of an iso DVD image, you can then shell out, then run fdisk to partition the big disk the way you want, then use dd to copy the partitions you want in the order you want from the small disk. I am pretty sure not all combinations will work, but you get the idea. You can then take the small disk out, and boot off of the big disk.
    Come to think of it, you might just be better off with adding more space as a second virtual disk. You would then be free to partition/format it the way you want without messing with the first disk. Linux is so good with disk management, so many options.
    As a general statement, though, I like to put some distance between the high level file systems and the low level disk partitions, so I use LVM (Logical Volume Manager).
    Best of luck, keep us posted.

  • How do I use the Japanese fonts in Font Book in a Pages document?

    How does one use the Japanese fonts in Font Book in a Pages document. Pages has its own fonts but I cannot get the Japanese fonts into it.

    To type japanese on a computer you change the keyboard, not the font.  Go to system prefs/keyboard/input sources and add Japanese/Kotoeri to the list, then select Hiragana in the "flag" menu at the top right of the screen, then type.  The font will take care of itself.
    http://redcocoon.org/cab/mysoft.html
    If you have any further questions, just ask.

  • How do I use the web cam on my pc? Hp w2007 I have windows vista

    How do I use the web cam on my pc?  Hp w2007 I have windows vista

    Hp w2007 is a HP monitor without webcam ...
    Where is the webcam?
    V.
    *** Say 'Thanks' with Kudos ***

Maybe you are looking for

  • Letter of Credit Additional Charges

    Dear colleagues: We are about to implement the u201CRisk Management u2013 Letter of Credit Processingu201D functionality (from the importeru2019s view). As an importer we need to assign some other charges to the LC (e.g. custom expenses), with variou

  • FireWire slows from 60MB/s to 16MB/s when switching from Tiger to Leopard

    Hi Folks This is a big problem for FCP users so I'm posting this here (as well as on the Leopard discussion board). After upgrading to Leopard I noticed a substantial drop in FireWire disk performance. While in Tiger I could sustain 60MB/s against a

  • Can't update my MacBook Pro

    Hello. I am trying to update my MacBook Pro and it doesn't seem to work. I'm using OS X 10.6.8. I follow all the logic steps: search for updates and restart the computer. But everytime I restart it, nothing's changed. Still have the same old version

  • Web Dynpro error log location

    I'm pretty new to Web Dynpro and have a few questions regarding the location of the different error log. 1. Sometimes the web dynpro IDE prompt up saying "please check the error logs for details". Where is the error log located? 2. After i deployed a

  • Just bought Star Trek Into Darkness & won't play on my 1st gen Apple TV

    I just bought and downloaded Star Trek Into Darkness.  Now it won't sync to my 1st generation Apple TV.  I went into my Apple TV settings in iTunes and chose Into Darkness to sync.  I then click Apply and Sync, but it doesn't sync.  It doesn't give m