CO Pulse Frequency doesn't actually generate 1 Pulse per Second?

Hello all,
I have a VI layed out in the attachment below.  I seem to have a lack of understanding on how to program this VI here.  I just don't understand what is possibly going wrong.
The VI is very basic.  The frequency has been set to 1, and the units are Hertz.  To me, this means that the program should send one pulse to my linear actuator ONCE per second.  I have a simple pulse counter set up in the VI as well to count how many pulses are actually being sent (using the DAQ assistant).  Why is it that when I run the program, I get around 300 pulses per second?  Raising the value makes it goes slightly faster, but lowering the value doesn't really make it go any slower.  There seems to be no real correlation between the input frequency and the actual number of pulses that are sent.
I just simply want a program that I can input "1 pulse per second" or however many pulses I want per second and have the card send ONE pulse per second (or however many is input).  Where do I start?  I have a whole program written out and ready to go, but this basic concept here completely eludes me. 
Thanks,
James
Attached:  1) Picture of concept that I'm completely baffled about  2) VI of my program which said concept is being used in
Solved!
Go to Solution.
Attachments:
Voltage vs Distance SM v1.1.vi ‏475 KB
COPulseFreq.jpg ‏75 KB

In the simple image, you are running a loop as fast as possible (there's no timing mechanism).  Inside that loop, you configure the pulse task, start it, then immediately stop and clear it.  You need to create the channel and configure the timing outside the while loop, before it starts, and you need to clear the task outside the loop as well, after the while loop terminates.  Depending on what you want to do, you may be able to move the task start outside the loop as well, or just let the task auto-start.
You'll need to restructure your VI a bit.  I can't tell if you want to clear the task after each step, or just change the frequency.  If it's just the frequency, you can use DAQmx Write to change it; if you need to start and stop the task, you'll need some logic to do that once each time you want to restart (you may get an error if you start a task that's already running).  There's no need for "Is Task Done?" since you're not using the output for anything.
EDIT: Also, it is always a good idea to put a wait inside loops that execute indefinitely.  Otherwise they will spin as fast as possible, consuming all available processor time and preventing other code from running.  If you configure your counter task properly the loop timing won't affect the pulse rate (because that's done in hardware) but there's no need to run the loop that fast.

Similar Messages

  • Synchronisation of PCs using pulse per second

    Hello
    I would like to synchronise several Personal Computers and some external hardware using a Pulse per Second (PPS) signal. In this configuration one PC or the external hardware shall generate the PPS (PPS master). Other PCs and other hardware shall count the PPS pulses (PPS slave). All PCs shall count the fraction of seconds since the last PPS pulse with a resolution of 1ms or higher.
    To realise this PPS network, I consider the usage the NI Counter card PCI-6601/2. Could anyone answer a series of question please?
    Is it possible to configure the PCI card to count the seconds and milliseconds when the card generates the PPS?
    Is it possible to configure the PCI card to count the seconds and milliseconds when the card is triggered by an external PPS?
    Is it possible to configure the PCI card to generate interrupt pulses with a frequency of 100Hz when the PCI card is configured as PPS master? The interrupt pulses must be synchronous to the PPS. That means every 100th interrupt shall fall together with the PPS.
    Is it possible to configure the PCI card to generate interrupt pulses with a frequency of 100Hz when the PCI card is configured as PPS slave?
    How complicated is it to use this interrupt in a user application under Windows 2K/XP and Linux? Does the PCI card driver provide a simple mechanism like a blocking function call that returns when the PCI card generates an interrupt?
    I’m also open for other solutions for my problem.
    I consider a PCI card with a FPGA. I could implement the PPS logic very easily in VHDL. However, I don’t want waste time to get a PCI VHDL core running or writing software drivers to synchronise the applications with the PPS. Any useful comments would help.
    Thank you very much,
    Michael

    Hi tummigummi,
    It's probably best if you ring into National Instruments here in the UK.  That way we can answer your questions for you with more information and be better equiped to give you the advice you need.
    The number to call in is (01635) 523 545.
    Just ask to have pre sales support and you'll be put down to one of our support engineers (like me) and we can help answer your questions for you.
    Thanx
    AdamB
    Message Edited by AdamB on 07-24-2006 05:55 AM
    Applications Engineering Team Leader | National Instruments | UK & Ireland

  • Counting pulses and measuring flow rate per second

    Hi everyone
    I am using a compactField Point (cFP-2220) controller to measure the flow rate. The flow sensor that i have, gives the output in terms of the pulses. I need to count the number of pulses for a particular interval and divide it by a K-factor( constant value) to get the flow rate. If i select the interval to be of a second, i would want to count number of pulses per second and divide it by K-factor to get flow rate ( per second). 
    How do i count pulses per second and consequently measure flow rate using this count and K-factor.
    Any kind of help would be highly appreciated.
    Thanks in advance.

    You may be able to use the Edit Tempo function to work this out. With you waveform in Edit view Right Click on the time scale at bottom of waveform and select Bars and Beats display. Select a number of beats by highlighting with the cursor. Then again on the Time bar select Edit Tempo. In that dialogue you can try clicking on Extract to find the Tempo ie. beats per minute. Also you can try adjusting the tempo by entering avalue manually to see how close that gets to your waveform.
    Haven't used this function of Audition much so you may have to refer to the help file to find out more about it.

  • Facetime says connecting after you answer the call but doesn't actually connect and both iphone 5s were quick reset-ted and facetime was turnt on and off, any reasons like why or how and how to fix this concerning issue

    facetime says connecting after you answer the call but doesn't actually connect and both iphone 5s were quick reset-ted and facetime was turnt on and off, any reasons like why or how and how to fix this concerning issue

    Apple has released a document which is reported to address the recent FaceTime issue.
    http://support.apple.com/kb/TS5419

  • I have iWeb '08 and just switched from Mobileme to GoDaddy and using Filezilla.  Now when I make changes through iWeb it doesn't actually publish to my desktop folder.  In fact, it doesn't publish at all but says that it did.

    I have iWeb '08 and just switched from Mobileme to GoDaddy and using Filezilla.  I also just upgraded to Lion.  Now when I make changes through iWeb it doesn't actually publish to my desktop folder.  In fact, it doesn't publish at all but says that it did.  How can I make changes in iWeb and publish to a folder?

    Choose the destination in the publish settings page as shown in the second example on this page...
    http://www.iwebformusicians.com/iWeb/Publish-Website.html

  • My iPod show that my battery is receiving energy and that it is "charging," but it doesn't actually charge. The battery never increases; it only decreases. Even when I have it physically plugged in and charging, it loses battery whenever I am using an APp

    My iPod shows that my battery is receiving energy and that it is "charging," but it doesn't actually charge. The battery never increases; it only decreases. Even when I have it physically plugged in and charging, it loses battery whenever I am using an APP or anything. I'm thinking that the chip that receives the energy is damaged or worn out. Is there anyway to fix it without going to the store? My USB chords is fine. It charges other iPods fine. Including a second generation iPod which means my 4th generation iPod should not have an physical battery problem. Any suggestions? Thank you so much!

    - See:      
    iPod touch: Hardware troubleshooting
    - Try another cable. Some 5G iPods were shipped with Lightning cable that were either initially defective or failed after short use.
    - Try another charging source
    - Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
    - Make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar                          

  • I dropped my phone last night on the floor and now it doesn't seem to be charging.  it comes up the battery on the screen but doesn't actually seem to charge.  i kept it on charge over night but that didn't work either.

    i dropped my phone last night on the floor and now it doesn't seem to be charging.
    it comes up the battery on the screen but doesn't actually seem to charge.
    i kept it on charge over night but that didn't work either.
    can anyone help?

    You need to get your phone repaired.   It's obviously damaged, and nothing we can suggest to you will fix that.

  • When I try to download Adobe Reader, the Adobe Installer opens a black box. The installer doesn't actually work. Any ideas how to fix? Thanks!

    When I try to download Adobe Reader, the Adobe Installer opens a black box. The installer doesn't actually work. Any ideas how to fix? I am using Windows 8 installing the English version. Thanks!

    Try the installer from http://get.adobe.com/reader/enterprise/

  • Safari share via email doesn't actually send a email

    Since upgrading to iOS 6.0.1 (maybe even 6.0) I found out that the Share Link in Safari doesn't actually send the email with the link you are trying to share.  Can anyone else verify that their iOS 6.0.1 device does actually send the email with the link/web page they are trying to share?  I tested this with my own email address last night and realized nothing was actually being sent (or even waiting in the Outbox to be sent).
    If I shared the website via iMessage the iPhone does send the link via iMessage but not via if I try to share through email.

    This is a known bug, it should hopefully be fixed next week when they update the software used by this forum.

  • Svchost.exe with "Dhcp, eventlog, lmhosts" services is generating thousands of page faults and I/O reads per second?

    On one of our Windows 2008 R2 Enterprise (SP1) servers, we're noticing a strange phenomenon.....that the svchost.exe that hosts "Dhcp, eventlog, lmhosts" is constantly generating page faults....a few thousand per second, accumulating to billions of total
    page faults.  I/O reads and I/O other are also rising every second.  Cpu is consistently 2%, and memory is constant. (~40M). 
    I'm guessing that it's the eventlog service because our HP openview log reader (opcle.exe) is also working hard to keep up.  I've searched for others posting a similar problem but am coming up empty handed. 
    This is a MS Analysis Services 2008 server, but we haven't noticed any problems coming from SSAS.  We have other file sharing-related jobs that interact with this server, that sometimes take 30 min and sometimes 6 hours, for the same workload....and
    we're thinking that the 6 hour runs are somehow related to this process's unusual page faults.
    Anyone else seen this eventlog strange behavior?
    Thanks
    -Mark

    Hi,
    The best thing would be downloading the Process Explorer and analyzing the problem.
    Process Explorer
    http://technet.microsoft.com/en-us/sysinternals/bb896653
    For how to use Process Explorer to troubleshoot the performance issue, please refer to the following Microsoft TechNet blogs:
    HIGH CPU – SVCHOST.EXE
    http://blogs.technet.com/b/askperf/archive/2009/04/10/prf-high-cpu-svchost-exe.aspx
    Getting Started with SVCHOST.EXE Troubleshooting
    http://blogs.technet.com/b/askperf/archive/2008/01/11/getting-started-with-svchost-exe-troubleshooting.aspx
    If you find the cause is Automatic update, please also refer to the following Microsoft TechNet blog:
    Automatic Update causes SVCHOST.exe high CPU
    http://blogs.technet.com/b/asiasupp/archive/2007/05/29/automatic-update-causes-svchost-exe-high-cpu.aspx
    Regards,
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Looking for average and max redo size generated per second

    Please,
    I'm implementing Dataguard physical standby on Oracle 10g R2 on Windows 2003.
    My issue is now how could I get redo size generated per second to compare with the actual bandwidth between primary and standby database.
    I know I can use the Database Console, but It wasn't installed at the database production.
    There's any link or script or view that I could use to resolve this issue?Thanks

    It depends on the statmemnst and the datatpyes that are inserted or update or deleted
    select b.name,a.value from v$sesstat a, v$statname b where a.statistic#=b.statistic# and b.name = 'redo size' and a.sid=<your SID>;
    courtesy to Daljit

  • Actual Cost component split - Per PO

    Dear ML Experts,
    We have activated Material Ledger and Actual costing/ Actual cost component split in our implementation. The standard cost is based on delivery costs and there is no manufacturing involved. In order to test ML, we created some POs and did a GR and IR for those POs. When I look at the Material Price analysis on the Price Determination Structure View, I can see the Price differences per transaction (Goods receipt, Invoice receipt).
    But when I go to the Cost component View (Actual), I cannot drill down into the individual transactions. I am able to see the actual cost component split only at the summarized level across multiple transactions. I can see the category Purchase Order under Receipts, but I am unable to drill down to see the actual cost component split for the individual transactions (goods receipts, invoice receipts).  Did I miss anything on the configuration? The client wants to see the price differences per cost component per transaction and actual cost component split per transaction.
    Is it possible to view this information using standard configuration? Would I have to change the controlling level in order to achieve this?
    Can you please provide your advice?
    Thanks,
    Balram

    Hi Balram.
    If you have access to an IDES system, you can see a Cost Component split like this:
    As fas as I know, this is only for educational porpouses. In the standard System, its not recomended have the detail of the split per movement, due to the huge amount of data genereted. There is a Flag that control this, in a Txxx table (i dont have access to the system right now).
    If you really want this functionality, write SAP in the marketplace, and I guess their response is exactly what im saying.
    Arturo.

  • Photoshop cc doesn't work, stop working after 2 second.

    Photoshop cc doesn't work, stop working after 2 second, witout any errors. I don't have problem with lightroom. I work on windows 7 64bit. how to fix this problem?

    Please read this and proceed accordingly (restoring prefs is especially recommended):
    http://blogs.adobe.com/crawlspace/2012/07/photoshop-basic-troubleshooting-steps-to-fix-mos t-issues.html

  • My magic mouse behaves erratically with intermittent problems - slows down, right click doesn't work, disconnects for a few seconds then reconnects. Anyone suggest what I could do to fix this?

    My magic mouse behaves erratically with intermittent problems - slows down, right click doesn't work, disconnects for a few seconds then reconnects. Anyone suggest what I could do to fix this?

    I just figured out the print quality issue for my wife with her new iMac and new printer.
    She replaced both at once and she couldn't understand why her Artisan 730 was lower quality then her Epson R280 when they had the same specs.
    Turns out the newer printer had the option to connect via wifi which we used during setup.
    The driver options are completely different depending on how you connect.
    Once I connected via USB the correct options were available and the print quality was better.
    Looking at the R2400 it dies not have wifi, but while researching the problem for my wife someone esle was having an issue updating to the latest printer driver.
    If you go into the print utility from the Printer and Scanner system preference and under the general tab you should have driver 5.5.
    One user had to delete the old printer driver before Software Update loaded the newer printer driver.
    https://discussions.apple.com/message/15947486#15947486
    On my MacBook Pro (w Snow Leopard) I always had to reconnect my wifi at home when it woke up. I upgraded my router from an old Netgear to a newer N D-Link and stopped having to do that.
    I would be surprised you would have that problem with an Airport Extreme, you might check to see if there is a firmware update for it.

  • Pulse count per second

    Hello, I got a little question for you guys
    I can read a pulse from my parallel port, coming from a fan rpm cable
    I like to count how many pulses I got per second. anybody knows how I do this the best?
    or any other suggestions? It is for reading the fan's rpm trough that parallel port
    thnx in advance
    grtz

    Hi Da Paintm,
    What are the data you received as output? Are this like digital data?
    Julien Roland - District Sales Manager
    NI Belgium - Technical Support
    Don't forget to rate a good answer

Maybe you are looking for

  • Computer and iTunes freezes when iPod is plugged in

    Hi there. I'm using Windows Vista x32 SP1 and lately I've had a problem with my iPod and iTunes. It hasn't always been like this as recently I have been updating my iPod, but for some reason something has caused a problem. I can use iTunes fine and p

  • My desktop hard drive failed. Most of the photos on my IPad were backed up but some were not.

    The only copies I have of some of them are on my iPad. Because they are the only copies I have I want to be certain how I should go about assuring I can get them as they are very important to my wife and me. If I reinstall iTunes to my rebuilt comput

  • JDBC Connection to Oracle 8i

    Hi All, I hope someone will help me. I am trying to connect to Oracle 8i using the JDBC "thin" driver on Windows 2000 prof. The program is compiled successfully but got error "ClassNotFoundException: Unable to find class oracle.jdbc.driver.OracleDriv

  • Edges around some buttons although prefs say no

    Hi there, I'm working on a document with custom buttons. The pdf is generated in Indesign (CS4) and then later on tweaked in Acrobat (9.4.4), adding some links that can't be made in ID. Although I've set the prefs in Acrobat to hide active rectangles

  • Is there a way to make a moving desktop wallpaper?

    I have this cool screensaver and would like to use it in place of a boring wallpaper. Is there any way to do this?