Is it possible to use "Delay Values" to create a frequency signal from digital "Count Edges" -task? (= are the results I'm getting correct?)

Hello.
I have a digital encoder from which I need freaquency information (to ultimately get rpm -infromation). The problem is that this task is inside a loop with 2 other DAQmx -tasks that are using "one sample on demand"-aquisition mode and if I configure this new counter task to be a freaquency task, it only updates once in ~ second which makes the whole loop lag.
I thus created an "artificial" freaquency signal by using "Count Edges" -aquicition mode and the "Delay Values" -block so that I substract the delayed signal from original "Count Edges" -signal. There is a 0,01s delay in the loop and I figured out that if the history of the "Delay Values" -block is 100 samples I would thus get the real edge-freaquency.
I tested this configuration and the results seem to be at least really close to correct but I have no idea if this idea is in any way correct...
This explanation was probably quite confusing so please see the picture attached.
Thanks a lot in advance! 
Attachments:
are_the_results_correct.jpg ‏200 KB

First of all, thank you for quick reply. Unfortunately I don't have the acces to the vi. until tomorrow.
And yes, I think you understood correctly: essentially this arragement measures how many edges have been counted during one iteration. This is how I figured out that this could then be used as a frequency measurement:
1. From the "Edges - Delayed Edges" I get the information on how many edges have been counted during last iteration.
2. I "know" (really I don't?) that one iteration lasts ~0,01s because of the delay in the loop.
3. There is 2048 edges in one round of the encoder so I get the rpm as follows: rpm = (edges - delayed edges)/204,8*60(s)
(If I was using history size of one as you suggested it would be: rpm = (edges-delayed edges)/2048 * 60) However using history size of 10 and taking it account in the multiplication smoothens the response nicely.
But doesn't this arragement count on the fact that the vi runs smoothly and there is no additional lag?
I quess using another loop and notifiers for a dedicated freaquency measurement as you suggested could be worth trying. I just have to first learn how to use them. 
If I do use them will the main loop run smoothly and not wait for every update of the notifier? This would be essential since the freaquency output refresses only about once in a second if I use the continious aquisition mode.
Attachments:
are_the_results_correct.jpg ‏198 KB

Similar Messages

  • Using Acrobat X and creating a PDF File from EXCEL 2010, I notice that the Pagination restarts at 1 for each Worksheet included in the PDF.

    I use Acrobat X Standard and created a PDF file from two or more worksheets using EXCEL 2010.
    The resulting PDF file restarts the PAGE # (In header/footer settings of Excel) at 1 for each worksheet.
    However, a colleague of mine who has Acrobat X Pro version, using EXCEL 2010 and same exact file does the same task, he gets a file that starts at page 1 and second worksheet continues the page # from the last page of the First worksheet.
    We both are using the ACROBAT menu (not the print to Adobe printer) to create the file so that we can get Bookmarks included in the resulting file for each worksheet.
    We cannot figure out any option in Acrobat's preferences that controls the pagination on either of these versions of Acrobat.
    So is this just a feature that works one way in Standard version and another way in the Pro version, and the user has no control over it?

    This is so sad. I read your comments and I said, "Huh?" Haha!
    I tried the indexed color option and it did make the final file smaller. Around 600KB. But there's probably another way to make it even smaller like the gazillion-paged pdf file that I mentioned that was only about 300KB.
    And by saying a layout program, does that mean like Adobe InDesign? Does that mean that I should just make my graphics in Photoshop and then import using another program and finish the file there?
    What other layout programs can I use?
    Thank you so much!

  • Is it possible to use an internal optical drive/ZIP drive mount from a PowerMac G4 Graphite in a PowerMac G4 Quicksilver?

    Hello, All. Is it possible to use an internal optical drive/ZIP drive mount from a Power Mac G4 Graphite (Sawtooth) in a Power Mac G4 Quicksilver? Obviously, the two computers use physicly different mounts, but does anyone have any tips or hints to make this possible? I appreciate any advice.

    "I may be persistent and attempt to drill holes in the correct position in the front of the Quicksilver chassis."
    Unfortunately, it's more than a case of drilling a couple of holes.  The modification isn't really feasible, and after you remove the front panel from the Quicksilver case, you'll see what I mean.  In the Optical/Zip drive area, the Quicksilver's front chassis wall isn't cut out the same way as previous models were.  Prior to the Quicksilver models, the front plastic bezel (with the hinged Optical drive door and a blank or Zip-slotted bezel) was snapped in from the front, after the front panel was installed.  The chassis wall had a large opening to accommodate installation/removal of the Optical and Zip drive carrier.  As I indicated before, in the Quicksilver model, the Optical and Zip drive carrier is mounted internally.  This is necessary because the front chassis wall has two separate openings cut in it.  The upper opening is for the oval-shaped, hinged Optical drive door (snaps into place from the interior of the chassis) and the lower opening is a narrow slot for Zip disk insertion and the eject button.  To use the Optical and Zip drive carrier from a Sawtooth G4 would require cutting the Quicksilver's front chassis wall, to create an opening large enough for the carrier.  In doing this, you'd cut away the metal which has (7) small holes in it, through which the hinged door assembly's plastic mounting pins are inserted to properly position and secure it in place.  If you don't want to lose the use of the hinged optical drive door, including the appearance of a seamless front panel, you can't cut away that metal.  If you don't care about having a permanent oval opening in the front panel in front of the optical drive, you could attempt your modification.  Because the Quicksilver's optical drive typically needs to have the trim piece unsnapped from the front of its tray, I'd want to retain the front panel's hinged door bezel to prevent excessive dust from entering the drive.  As I recommended before, check ebay for a pulled carrier.

  • Is it possible to use markers in a Premiere Pro sequence such as Chapter / Comment / Segmentation and export the XMP metadata for a database so that when the video is used as a Video On-Demand resource, a viewer can do a keyword search and jump to a relat

    Is it possible to use markers in a Premiere Pro sequence such as Chapter / Comment / Segmentation and export the XMP metadata for a database so that when the video is used as a Video On-Demand resource, a viewer can do a keyword search and jump to a related point in the video?

    take have to take turns
    and you have to disable one and enable the other manually

  • I set up my new computer using the apple ID i always use, and then later migrated all my files from my old mac book to the same new one, but under a different user (same ID). how do i consolidate the two users on my new mac book?

    i set up my new computer using the apple ID i always use, and then later migrated all my files from my old mac book to the same new one, but under a different user (same apple ID). how do i consolidate the two users on my new mac book?

    Well if you use the Finder Go menu to Computer, a window opens up double click on your boot drive and then on Users folder, open the other user folder and open Public and drop your files into DropBox
    When you do this it will copy them and change the permissions and user assigned to it, so log into the other user and place them into your respective normal folders.
    Once you have all your files over and don't need the old user, use System Preferences > Accounts to delete it if you wish, however it's good two Admin accounts on the machine in case something bad happens in the other. Some people for security reasons on use a Standard account for most uses and a emergency Admin account.
    One can still do most Admin things in Standard user.

  • I got this iphone from a guy and everytime i tried to update the applications stored in this phone it keeps asking me the password that the guy used to use, even thou i created a new apple ID of my own and updated the account of icloud and everything in t

    I got this iphone from a guy and everytime i tried to update the applications stored in this phone it keeps asking me the password that the guy used to use, even thou i created a new apple ID of my own and updated the account of icloud and everything in this iphone with the new apple ID, it still asks me the password of the account that the guy used to use whenever i tried to update the applications, and i cant find the guy who gave me this iphone...wt should i do???

    Apps are permanently tied to the AppleID that downloaded them and cannot be transferred to another.  Best thing to do is delete the apps and download those you want or need under your AppleID.

  • When using Firefox as my browser, my "back" button no longer works? And by the way...getting help is a real pain in the butt on this site!!!!!

    When using Firefox as my browser, my "back" button no longer works? And by the way...getting help is a real pain in the butt on this site!!!!!

    see -- http://kb.mozillazine.org/Kill_application
    which explains how to completely exit (quit) your Mozilla application
    Try closing Firefox completely
    *Close Firefox properly '''File > Exit''', not with the "X" which just closes the window.
    *Use the Windows Task Manager "Processes" tab to make sure that firefox.exe is not running and also that the plugin-container.exe is not running.
    If that does not work, try restarting the system.
    If still no luck try restoring bookmarks from last backup, or better create your own .json backup and restore from that.
    *http://kb.mozillazine.org/Backing_up_and_restoring_bookmarks_-_Firefox#Creating_bookmark_backups
    *''If you had to go this far, please provide feedback if restoring bookmarks alone fixed the problem. I think I may have done that once with success, but never see that suggested -- I'd try most anything to not lose history or bookmarks. But then I could restore files from my profile and restore latest bookmarks backup from current profile.''
    The following will result in complete loss of history if it comes down to deleting places.sqlite, so rename files rather than deleting. With Firefox down.
    Of course you have backups of your profile you could replace rename and
    replace those files instead.
    Locked or damaged places.sqlite - MozillaZine Knowledge Base
    :"Toolbar buttons such as Back/Forward are disabled "
    :http://kb.mozillazine.org/Locked_or_damaged_places.sqlite

  • HT204364 Is it possible to address an envelope after creating a greeting card like we were able to in the iOS app?

    Is it possible to address an envelope after creating a greeting card like we were able to in the iOS app?

    no
    LN

  • When i use Firefox and do a Google search, find what i need and click on the link I keep getting automatically redirected to another search site

    When i use Firefox and do a Google search, find what i need and click on the link I keep getting automatically redirected to another search site called http://www.scour.com
    Can someone tell me if this is a problem with Google or Mozilla? or both? or neither?

    This type of behaviour can be caused by malware. Try running several malware scanners. It is best to run several as each will pick up things that the others miss. Some scanners you can try are:
    * [http://www.malwarebytes.org/mbam.php Malwarebytes]
    * [http://www.superantispyware.com/ SUPERAntiSpyware]
    * [http://www.lavasoft.com/products/ad_aware_free.php Ad-Aware]
    * [http://www.microsoft.com/windows/products/winfamily/defender/default.mspx Windows Defender]
    * [http://www.safer-networking.org/en/home/index.html Spybot S&D]
    This link may help - http://deletemalware.blogspot.com/2010/02/remove-google-redirect-virus.html
    If the above malware scanners do not find any malware or can not clear it, you should consider posting in one of these forums for specialized malware removal help:
    * http://forums.spybot.info/
    * http://www.spywarewarrior.com/index.php
    * http://forum.aumha.org/
    * http://www.bleepingcomputer.com/forums/
    * http://www.spywareinfoforum.com/

  • Hello once again.. i have formatted my external Hard drive it using exFAT, now my windows cant detect my device, can u plzz help me the whole purpose is getting ruined, i use Windows 7 ultimate 64 bit

    hello once again.. i have formatted my external Hard drive it using exFAT, now my windows cant detect my device, can u plzz help me the whole purpose is getting ruined, i use Windows 7 ultimate 64 bit

    This is a problem with the Mac OS X implementation of exFAT. I've had the same problem.
    Best is to use a Windows box to format the drive exFAT. Then it can be read by both Windows and Mac OS.
    But aren't Macs supposed to "Just Work"? Not in this case.

  • Since I can not use facetime in UAE.. Is it possible to use facetime on Indonesia if I bought Iphone from UAE?

    I am just bought new iPhone 5 a couple days ago in UAE.,Since I can use Facetime on UAE (there is no Facetime on my setting),, Is it possible to use it (Facetime) in Indonesia with my iPhone? Because my friend from indonesia posible from using it.

    No.
    Your iphone can never have facetime.
    Sorry

  • I could use some tips when creating a SD DVD from HD masters

    I have been having problems with this workflow from day one. First, some background. I have been producing an hour long football highlight show for local cable for over 20 years. it is extremely popular in our community and I couldn't be happier but over the years the quality has gotten worse when broadcast even though my quality has gotten better. When I ran the program from 3/4 SP tape years ago,  it looked great. But now, the cable system will only provide a SD DVD player with composite out (yikes) for broadcast.
    I shoot and master in 720p 60. I have DVD SP, Toast Titanium, and iDVD available to create my disc to give to the cable company. Also, it must have a simple menu so the playback machine can begin play at the correct time. Can anyone give me a few tips on how to simply burn the master to the DVD for the best looking playback possible? Any tips will be appreciated.
    Cheers.
    Tom

    I'm not sure about the "720p60" but the normal way of dealing with both SD and HD videos is Share>Export Media and leave everything in the default position.
    Drop the resulting file in iDVD.
    I suggest you test it using a very short video, maybe a couple of minutes of typical shots, and burn it on a DVD-RW so you are not wasting discs.
    This way it will only take about 10 minutes to see the results and you can test out different techniques, if necessary, very quickly and at no cost.

  • How can I use the NI PXI-6508 with Lab View 7? what are the first steps to get started??How can I use the channels with lab view 7????

    I have a 8 slot PXI system with 2 NI PXI 6508 and 1 DMM 4070 in it. I want to get started with programming the digital I/O cards (6508)! How can I use this cards with LabView 7?what is the best way to get started, or where can I get examples showing how to use the several channels?
    Thanks!
    Philipp

    Philipp,
    The best way to get started is to decide if you want to use traditional NI-DAQ or NI-DAQmx. Recently we released NI-DAQ 7.1 which provides NI-DAQmx support for the PXI-6508. In my opinion, NI-DAQmx is more efficient and much easier to use.
    To get started with examples, simply launch LabVIEW and go to Help>>Find Examples. Then expand Hardware Input and Output>>DAQmx and select the appropriate digital group for your application. This should help get you started.
    Please repost if you need addition assistance. Good luck with your application!

  • How do I access photos stored using Time Machine on a back up disk from an old Mac without importing the whole library to my new mac?

    I just bought a MacBook Air and don't want to store all my photos on it. I'd like to be able to store and access them on a separate back up disk but iPhoto won't allow me to access these saying:
    "The iPhoto library is a Time Machine backup, and so cannot be used as the main library. Reopen iPhoto with the Option key held down to choose another library."
    Can I use my back up disk to store my photos? If not, how do I get my photos from iPhoto onto my back up disk?
    Would love any help!
    Thanks in advance :-)

    You need to first restore the Time Machine back up. This  excuse a TM back up is condensed and fragmented and so it needs to be expanded and reassembled before iPhoto can understand it.
    After that, moving the Library is simple:
    Make sure the drive is formatted Mac OS Extended (Journaled)
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    Regards
    TD

  • Possible to use ranking value in formula?

    Hi!
    User wants to compare previous month to current month ranking number to trend the change. Setup is 2 key fig with sales current month and sales previous month where row is sales office. Then calculate single value as rank. Now, I want to use the ranking value in a formula to compare this months rank vs previous months ranking, but it seems not to work as the formula takes the sales value and not the displayed ranking value. Is there a way to do this in bex or is the only way transformation..?
    Regards
    Henning

    You could create a key figure that always displays a fixed value example 1.
    You then restrict this individual key figure to payment method C.
    The key figure is now only 1 for payment method C.
    In your calculation you now say: if key figure = 1 then ... else ...
    If statements are not directly possible, you can only do if statemements indirectly by a similar formula:
    (key figure = 1) * value
    if key figure is one -> result of (key figure = 1) is 1
    1 multiplied by value = value
    if key figure is not one -> result of (key figure = 1) is 0
    0 multiplied by value = 0
    You now have an indirect if clause.
    Please assign points if this solved your problem,
    Best Regards,
    Filip

Maybe you are looking for

  • New ipod touch won't charge/sync on the computer or using a wall charger?

    My new ipod touch was working and i synced it on itunes and downloaded some apps and then it suddenly could not recognise it and stopped syncing. it came up with error 0xe8000001 and said the iphone cannot be found, eventhough it's an itouch not ipho

  • Drive E doesn't work

    We have tried to get our drive E to work but no matter what I or my daughter does to fix it we can't get the drive to see there is a disc in the drive HELP!!!!

  • Add sub partition on another column in oracle

    I have a table which has two partitions (by range): first_half and second_half based on a column "INSERT_DAY". I need to add subpartitions "SUCCESS" and "NONSUCCESS" based on the values of another column "STATUS" (subpartition by list) i.e. I need to

  • Essbase ASO Calculation Issue

    Hi All I am writing a calculation for a client to copy one version to another version for an Essbase ASO application. It seems to work correctly when my POV is set on a smaller datapoints. Hower it seem to have issues when fixed on larger datapoints.

  • Accessing ServletContext from non-servlet class

    How i can get information servletcontext from a normal java class? I am using Tomcat. I have put some Strings in to the servlet context and i want to get this information from a normal java class. I think there was a way to do it with getServlet() bu