Measure a frequency out of the trigger counter sample vi

Hello,
I want to measure the frequency of the simulated signal. I already succeeded in counting the pulse when rising. I probably need to integrate a wait until moduleso it will count the rising signal per time unit. I tried this but it didnt work out. Can you help me so that the VI will display the frequency with the wait until module.
Kind regards,
Michiel Huijgen (the Hague university, Holland)
Attachments:
Trigger Counter vb.vi ‏241 KB

Start a game with the correct resolution / refresh rates https://wiki.archlinux.org/index.php/Ga … e_X_server

Similar Messages

  • How do I simultaneo​usly measure two frequencie​s using the two counters on a CompactDAQ chassis?

    I am using two encoders as speed wheels to compare two different speeds simultaneously.  I have the encoders connected to the two counter inputs of my CompactDAQ chassis using NI 9423 cards in order to measure the frequencies produced be each and then I convert that data into speed.  How do I efficiently measure these frequencies simultaneously?  I say efficiently because the only way I can get it to work right now is to create a task for the first encoder, gather my frequency data, clear the task for that encoder and then move onto the next.  This is a slow process and therefore the measurements are not exactly simultaneous.  If I try to measure them simultaneously I get resource errors.

    Hey Kevin,
    Thank you for the information. The cDAQ-9172 has two counters on the chassis itself.  There are no counters on the actual module.  What this means is when you access Counter 0 using a module in slot5 (for example), you are actually accessing Counter 0 on the backplane of the chassis.  This is why you are getting the resource is reserved error.  If you have the other input frequency connected to the second counter of the chassis, you just need to access it using Counter 1 instead of Counter 0.
    In your code, for the Counter 2 input, you have "cDAQ1Mod6/ctr0".  If you just change that to "cDAQ1Mod6/ctr1", this will get rid of your "resource is reserved error.  Also, to get both your tasks to be a little more closely synchronized, you should probably use a sequence structure to be sure that they start together. In the code below, I have used two seperate counters on two different modules and synchronized them.  If you are using the same module you would just need to change the counter inputs to represent the two different counters on the same module.
    Hope that helps.
    Regards,
    Message Edited by Raajit L on 04-02-2007 11:00 AM
    Raajit L
    National Instruments
    Attachments:
    Counter Parallel Tasks.jpg ‏66 KB

  • Using AI Sample Clock to Trigger Counter Samples

    My basic question is:  Is the ai\SampleClock signal only active while an analog input task is running?
    The details are:
    I have an X-series PCIe-6321 multifunction DAQ card.  It is controlling a SCXI chassis and has a SCXI-1180 and SCXI-1302 so I can control analog inputs of the chassis as well as access the 4 counter  on the card.  My application requires that I use all 4 counters to measure a frequency input signal and synchronize the samples to the analog input signals.  I have created 5 tasks, 1 for the AI and 1 for each counter.
    I am using LabVIEW 8.6.1 with the latest NI-DAQ drivers on and 64-bit Vista OS 
    1. Are there any driver or hardware restrictions that would cause this solution not to work? 
    2. Can I use the ai\SampleClock as in input sample clock for each of the frequency tasks?  If I do this will the sampling start be syncronized?  I.e. if I start each of the frequency tasks first, will they wait until the AI task is started before they start sampling?
    3. If that doesn't work, do I need to route the sample clock from the AI task to a PFI line (PFI1) and then use that as input to the frequency task sample clock? 
    I usually do option 3 when synchronizing two cards in  PXI chassis and only use the software task start in stead of of synchronizing on a digital start, since the sample clock will control the samples anyway.  I need to know if the same behaviour works with the scenario above.
    Thanks,
    Bob
    Prolucid Technolgies Inc. 
    Solved!
    Go to Solution.

    Hi Bob,
    I can confirm that the ai/SampleClock will only be active while the AI task is running.  As far as the other questions go:
    1.  You'd have to provide more information about what you looking to do exactly, but there is no problem with routing the sample clock of the Analog Input task to be used with the Counters.  I would read through the section of the X Series User Manual that discusses sample-clocked frequency measurements (starting on page 7-16) for some more information about what is actually going on during this configuration to make sure it suits your requirements. 
    The frequency of the signal to be measured should be at least twice as fast as the sample clock of your AI task.
    2.   You can indeed route the signal to all four tasks at the same time (you can refer to the Device Routes page in MAX to double-check routing restrictions).  The sampling will be synchronized provided the four counters are started before the AI task, but the counters will be armed at different times unless you configure an Arm Start Trigger (see page 7-45 of the X Series User Manual).  I would consider using the ai/StartTrigger if you wish to do this. 
    The effect of not arming the counters at the same time would be a different number of periods to average on each counter for the very first sample (assuming averaging is enabled).  This might not be a big concern but I just wanted to point it out.
    3.  The routes are available internal to the board so external routing isn't necessary, you can just specify to use the AI Sample clock for the clock of each counter and the routes will be made for you.  If you prefer to export the signal on a PFI line and route it back in on a different PFI line this option is also available to you but shouldn't be necessary.
    I hope this helps you get started.  I'd make sure to take a look at chapter 7 of the X Series User Manual if you get a chance since it describes how all of the counter configurations work in more detail.  If you have any related questions don't hesitate to post back.
    Best Regards,
    John
    Message Edited by John P on 12-01-2009 07:52 PM
    John Passiak

  • Measure scan frequency using 2 e-series boards and an external clock.

    I am setting up a data acquisition system in which the user has the ability to select between multiple sources for the scan frequency. The user can choose either hardware based and select the scan frequency or an external source, in this case, an encoder. When the user selects the external case, I would like to measure the scan frequency. I have a PXI chassis with 3 6071E DAQ boards. I have the encoder pulse train wired into the master board and would like to use one of the slave boards to count the pulses and measure the frequency. I based the code I developed on example code that shipped with LabView. However, when I drive the master board with a known frequency using its internal clock,
    I measure 0 frequency on using the slave boards counter.
    Attachments:
    DAQ_3_Boards_-_State_Machine_-_Scaled_Array.llb ‏1525 KB

    It sounds like you have your program setup to measure the frequency of the clock only when you are using an external source. The counter won't get an input if you are not using an external source, right? So, when you drive the master board with an internal clock, the counter will have nothing to count.

  • Question about Network In/Out in the Monitor of the Cloud Service

    Hi there
    My question is that what kind of data is the monitor monitoring? The monitor is in the cloud service.
    And what are network in/out  in the monitor stand for? The network in/out are in the monitor.
    The monitor had monitored a huge amount of data in my cloud, but I have no ides what are they.
    Thanks a lot!

    hi Tianchi,
    Thanks for your posting!
    >>what kind of data is the monitor monitoring? The monitor is in the cloud service
    From the concepts side, By default, minimal monitoring is provided for a new cloud service using performance counters gathered from the host operating system for the roles instances (virtual machines). The minimal metrics are limited to
    CPU Percentage, Data In, Data Out, Disk Read Throughput, and Disk Write Throughput.
    If you want to monitor other metrics, you could use the azure Diagnostic to custom
    performance counter in your cloud service or set
    Verbose setting on the azure portal. For this issue, I suggest you could refer to the concepts part of this page (http://azure.microsoft.com/en-us/documentation/articles/cloud-services-how-to-monitor/
    >>And what are network in/out  in the monitor stand for? The network in/out are in the monitor.
    Base on my understanding, Network in/out include the
    performance counter "Bytes receive" and "Bytes send". Maybe it seems that your data size of network in/out is huge amount. But only your outbound data
    can be charged. Of course, if you have some doubt about data or data billing, you could contact Azure Billing support for more details.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How do you measure frequency using the onboard counter on PCMCIA 6024-E

    I am using LABView 6.1 and NI-DAQ 7.2 with a SCXI-1000 chassis and a PCMCIA 6024-E on a laptop. I need to measure a frequency of about 3KHz and would like to do that using an 1180 direct through connector.
    Firstly, should I see this 1180 in MAX like any other module?
    And secondly, how do I use this 6024-E card to measure frequency? Which pins are supposed to be used on it to measure, and will I see the counter run in the test window in MAX according to the frequency measured?
    I know NI also have a frequency module for the SCXI chassis. So lastly, will it be better to use that, rather than measure directly off the 6024-E?
    Any help, advise or comments will be greatly appreciated!
    Thanks!

    Hello,
    I think I can help out with some of your questions. First, the 1180 module won�t show up in MAX since it is really just a feedthrough cable which allows you access to your unused signals from the DAQ card.
    You definitely can measure frequency using your 6024E. An example installs with NI-DAQ 7.2 which shows how to accomplish this. To access this example go to the LabVIEW start up screen and hit the Find Example button. When the Example Finder opens up browse to the following location: Hardware Input and Output -> DAQ -> Counters -> DAQ-STC -> Measure Frequency (DAQ-STC).vi
    This example measures frequency and has a connection diagram on the front panel. The documentation for the example can be accessed by going to File -> VI properties -> Document
    ation, after you have opened the VI.
    You are correct that we offer a frequency input module for SCXI (SCXI-1126). This module would be useful if your input voltages are non-TTL, or if you need to measure more than one channel of frequency signals. This module has an input range of +/- 250Vrms and 8 input channels.
    I hope this helps! Let me know if there is anything I can help with or clarify.
    Ken S.
    Applications Engineering
    National Instruments

  • Using the 6525 counter to measure frequency: is there a neater way?

    I'm currently using the high speed counter on the a USB 6525 module to measure the frequency of a spinning object via a hall effect sensor.
    I was wondering if there was a simpler/ more effective way of coding it than this?
    Currently all I do is take the current counter reading, wait a second, take another reading and subtract one from the other. The result is the frequency, in hertz.
    Is there a way of getting the 6525 to return the count/ change in count after 1 second?
    Thanks
    Solved!
    Go to Solution.
    Attachments:
    6525 frequency count LV8.vi ‏25 KB
    6525 frequency count LV2013.vi ‏15 KB

    Thanks for commenting. I'm not sure if I'm doing it right though or whether the NI USB 6525 can't handle this type of measurement?
    I keep on getting an error that says to effect it can't do this type of operation.
    Can you advise?
    Thanks
    Attachments:
    6525 frequency count LV9.vi ‏36 KB

  • 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.

  • What's the maximum counter frequency for the cRIO?

    Hi Everyone,
    First of all, thanks for your input here!
    I'm new to the cRIO, but have been working with LabVIEW for awhile.  I need to accurately measure the time between several digital inputs.  One input starts the counter, another captures and stores the current counter value, and a third stops the timer and also captures and stores the counter value.  It's basically a stopwatch.  The problem is that the counter needs to run at a frequency of 100Mhz or greater.  It also needs to be at least 28 bits wide so that it won't overflow between start and stop inputs.  Is this possible with any of the cRIO systems currently available?  If so, how?  I'm assuming it will need to be implemented within the FPGA, but does the FPGA run that fast?
    Thanks so much!
    -Yohan
    Solved!
    Go to Solution.

    Hi Yohan,
    Unfortunately, the cRIO is not capable of reliable frequencies at 100 MHz or greater.  I would recommend speaking with your local NI Field Sales Engineer or callteh NI Sales department at (888) 280-7645 to discuss the hardware that would accomodate your application.  
    The PXI-6586Rmay be an option: http://sine.ni.com/nips/cds/view/p/lang/en/nid/207297
    I hope this helps!
    Kristen H.

  • All of a sudden all of my tracks are squeezed to the left. The Bar Ruler begins at "1" with the next measure at "129" on to the thosands. How do I get back to my original count and un-squeeze my tracks? thank you. John

    All of a sudden all of my tracks are squeezed to the left. The Bar Ruler begins at "1" ith the next measure at "129" on to the thosands. How do I get back to my original count and un-squeeze my tracks? thank you, John at [email protected]

    Welcome to Discussions - the fact that the S.M.A.R.T. status is not recognized and the flashing questions mark appear seem to indicate that your hard drive has failed. If you have access to TechToolPro or Disk Warrior, try to use them to check the drive status. This will likely not work, and I'm afraid your disk is toast.
    You could try to remove the drive and put it in an external case and try to mount it on your MacBook, but I don't hold out much hope for that either. You can try using [Data Rescue|http://www.versiontracker.com/dyn/moreinfo/macosx/211375] to retrieve your data.
    You can also take it in to Apple and see what they say. Please let us know how things turn out,

  • Who worked with ICS' Model 4896 GPIB? I can not count the data from the module. Can prompt as it to make. It is desirable with examples (data read-out from the module and data transmission between channels. It is in advance grateful.

    I can not count the data from the module. Can prompt as it to make. It is desirable with examples (data read-out from the module and data transmission between channels. It is in advance grateful.

    Hello. Most of the engineers in developer exchange are more familiar
    with NI products. Contacting ICS for technical support is a better
    course of action.

  • How do I get the Measurement scale to stay set in Adobe Acrobat IX Pro. It's easy to set the scale , but when you exit out of the commend

    How do I get the Measurement scale to stay set in Adobe Acrobat IX Pro. It's easy to set the scale , but when you exit out of the commend the scale is reset to 1 = 1.

    Thank you for checking, Tom,
    I'm confused. What do YOU get when you push the feed button? And why is it working on yours and not either of my machines?
    Today, my Mac (w/Safari 4) gets the same error message: Safari can’t open the page Safari can’t open the page “feed:http://vibrationalvoyages/vibrationalvoyages.com/DivineLight_Vibrations_Principles_andApplications/rss.xml”. The error is: “The feed could not be loaded because the content is not in a known feed format.”
    My little ASUS (with a Linux operating system) gets a screen that says "The requested URL was not found". The URL on that page is http://vibrationalvoyages./vibrationalvoyages.com/DivineLight_Vibrations_Principles_andApplications/rss.xml
    On both error messages, the URL I was checking was:
    http://www.vibrationalvoyages.com/DivineLight_Vibrations_Principles_and_Applications/Divine_Light_Vibrations_Principles_ andApplications.html
    The last URL was, of course, the URL generated by iWeb.
    So, my question still is:
    HOW CAN I GET MY FEEDS TO WORK PROPERLY? If the problem is there shouldn't be an http:// after feed: then, how do I get iWeb to set it up properly?
    Any ideas?
    GG

  • How to find out the node count?

    How to find out the node count in illustrator document through programmatically. Kindly advice me.

    Check DBA_HIST_RESOURCE_LIMIT. Your information will be there.
    Simialr information is available in DBA_HIST_SYSSTAT.
    Look for stat name logons cumulative/logons current - Total number of logons since the instance started/Total number of current logons
    You can joing dba_hist_snapshot with snap_id and give begin_interval_time and end_interval_time to know historic process utilization.
    Regards,
    Sreejith

  • I have moved old Back Up files from my external hard drive to the trash and as the Trash previews the files, i.e. counts them (over 850,000 files) it then begins to delete but then stops. Is it possible to move the files out of the Trash file and then onl

    I have moved old Back Up files from my external hard drive to the trash and as the Trash previews the files, i.e. counts them (over 850,000 files) it then begins to delete but then stops. Is it possible to move the files out of the Trash file and then only delete a small amount at one time?

    See
    Deleting backups via the Finder on Lion 10.7.x or later:
    http://pondini.org/TM/12.html
    Hold option (alt) while emptying the Trash.
    See also
    http://pondini.org/TM/E6.html
    Message was edited by: WZZZ

  • Does the warranty count if my ipod touch get stuck on facebook sometimes and it just turned out to home page a lot

    Does the waranty count if my ipod touch get stuck on facebook sometimes and it turns to the homepage... And it get stuck if i click at the pictures...
    Pleasehelp me out...
    Thanks

    The Basic Troubleshooting Steps are:
    Restart... Reset... Restore from Backup...  Restore as New...
    Restart / Reset
    http://support.apple.com/kb/ht1430
    Backing up, Updating and Restoring
    http://support.apple.com/kb/HT1414
    If you try all these steps and you still have issues... Then a Visit to an Apple Store or AASP (Authorized Apple Service Provider) is the Next Step...

Maybe you are looking for

  • Printing report in character mode

    We have reports developed in reports 2.5. In 16-bit aplications, reports are correct printing in character mode, after recompiling to 32-bit version, reports are printing as bit-mapped (parameter MODE is still set to Character). Printer is Epson DFX-

  • HP LaserJet M1319Ff MFP won't scan

    Hey all, The M1319f isn't a terribly popular all in one model, which is a shame as it used to work great for me. Now with 10.6 however, it won't scan at all. I've tried all the HP workarounds for other models, but they've failed to get this one worki

  • Oracle Client(8.0.5) installation on Linux(6.0)

    Please Help, These are the steps followed in the Oracle client installation of the Linux version 1. Loaded SQLNET, TCP/IP Adapter and sqlplus from the Oracle CD for Linux. 2. While running SQLPLUS it gave the 'Missing Library file' 3. Added LD_LIBRAR

  • Leopard's Spotlight doesn't search...

    Hi there! I've got a problem with Leopard Server... It's the first time that I run a server version. Everything works great! But... Spotlight... Spotlight doesn't search anything on my internal HD. On my external HD (connected with FireWire) it works

  • Wireless access to MS Access / MS SQL server

    I'm planning to setup a database that will be wireless and simultaneously accessed by several Microsoft Surface tablets. It is within a production environment, the max distance to the server will be <st1:metricconverter productid="30 meter" w:st="on"