I have an array in which I want to check and see if it falls within a certain range with about 7 different ranges. I have tried the range and coerce function but something is going wrong.

Also, I have a timer that lets me know how long the trigger has been active. I want to know if it is possible if that time would be reset everytime the trigger goes off.
Attachments:
Code.vi ‏113 KB

1. Do not run using the Continuous Run button! This is intended only for certain types of trouble shooting and not for normal operation.
2. Put a while loop around your entire program.  Add a stop button wired to the stop terminal of the loop.
3. Then you can replace all the feedback nodes with one shift register with the input expanded to five elements. Sum the three bottom ones for your averaging.
4. Nothing is wrong with the In Range and Coerce.  You should only check it when you have data.  That is what the Data Available output from Trigger and Gate is for.
5. I am not sure what you want to reset for your timer or exactly when, but it should be possible.
6. I did not try to figure it all out but you may not need the timer while loop once you wrap the loop suggested in 2 around the rest of the code.  You may be able to move the shift registers to the outer loop. 
Lynn

Similar Messages

  • How do I generate an array of random numbers that relate to an output wave that falls within a certain frequency range?

    I have been creating random numbers that I'm using within a system, the system is working fine, but now I have realised that the random numbers must be outputted to speakers in such a way as to filter out all but a low frequency range.
    I was thinking about generating a dither signal with a bandpass filter, but could not get it to give me out a full array of 250 values which I could then manipulate.
    The sampling frequency of the output is 200Hz and the 250 data points must fall within the 0-100Hz range.
    Another course of action I am considering is to use an FFT and an inverse FFT to get the data that I'm looking for, but I'm fair
    ly inexperienced with using labVIEW and can't quite get it to work.
    Thanks for the help,
    Hank.

    As you may already know, in the Functions palette/Analysis VIs/Filters VIs are VIs for filtering. There are also some examples for using these filters under Examples/Analysis/fltrxmpl. You may find some of these are related to your situation, especially for filtering out the higher values.
    An option is to simply output the random values to a Comparison/"less than or equal" function, where only values <= to 100 would be sent to an array which is in a For loop. Use the iteration counter of the For loop to count up to 250, at which time you would pass the whole array to your next node. This would let you have 250 values between 0 and 100 for your final array.
    Good luck.

  • Does anybody know if Windows 8 is causing a problem with iTunes?   Many songs on my old iPod are now missing in my iTunes library and I can't find them anywhere.  Also, I have a new iPod and am afraid of using it for fear of something else going wrong.

    Does anybody know if Windows 8 is causing a problem with iTunes?  Many songs on my old iPod are now missing in my iTunes library and I can't find them anywhere.  .  Also, I have a new iPod and am afraid of using it for fear of something else going wrong.

    Try assigning Queen as the Album Artist on the compilations in iTunes on your computer.

  • Dear apple management,  I have purchased I pad mini e few days ago. I need help as follows:  (1) Camera: i did take a few photos but something has gone wrong. As i press the camera icon, I get a blank dark black screen. What do you think has gone wrong ?

    Dear apple management, apple support communities
    I have purchased I pad mini e few days ago. I need help as follows:
    (1) Camera: i did take a few photos but something has gone wrong. As i press the camera icon, I get a blank dark black screen. What do you think has gone wrong ? HELP URGENTLY REQUIRED.
    (2) How do i sync my pc  with I pad mini?
    (3)i can read on i pad mini  file made in microsoft excel but all numbers are very different from the original document. What is the solutuon?
    Dr Uma S Nayak
    <Personal Information Edited by Host>

    You are talking to fellow users on these forums, not iTunes Support or Apple - I've asked the hosts to remove your phone number from your post.
    For the Camera app, try closing it via the taskbar and see if it works when you re-open the app : from the home screen (i.e. not with the Camera app 'open' on-screen) double-click the home button to bring up the taskbar at the bottom of the iPad's screen, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Camera app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    If that doesn't fix it then try a soft-reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.
    In terms of syncing, you will need iTunes on your computer - if you haven't already downloaded it then you can do so from here : http://www.apple.com/itunes/download/
    You can conncet the iPad to your computer and select it on the left-hand sidebar of your computer's iTunes (you can enable the sidebar on iTunes 11 on a PC via control-S), and use the tabs on the right-hand side of the iTunes screen to sycn your content to the iPad.
    Syncing music : http://support.apple.com/kb/HT1351
    Syncing apps : http://support.apple.com/kb/PH12315
    If you haven't yet synced your iPad to your computer you may also find this page useful : https://discussions.apple.com/docs/DOC-3141
    For the excel file, what app are you viewing/editing it in ? If the values are different then it may be that the app that you are using doesn't support all the formulas that are being used in the spreadsheet. Apps that 'support' excel documents include Apple's Numbers app, and from third-parties apps such as Documents To Go ('premium' version) and QuickOffice Pro HD.

  • I have .me and .mac email accounts on my iPhone 4. I thought I had successfully transitioned from MobileMe to iCloud, but something must be wrong. iCloud seems to work fine on my computer and, with the exception of two email accounts, seems to be fine on

    I have .me and .mac email accounts on my iPhone 4. I thought I had successfully transitioned from MobileMe to iCloud, but something must be wrong. iCloud seems to work fine on my computer and, with the exception of two email accounts, seems to be fine on my phone. Can/should I delete the accounts on my phone and start over? It is somewhat of a nuisance to have two email accounts and double the amount of emails. The only thing different about the two iCloud accounts is the email addresses. Thanks.

    Well, seems I managed to unscrew this...I deleted my iCloud mail account and reinstalled it on my phone. That got rid of the duplicate .me/.mac email accounts.

  • Hello, I have problems with iCloud. I do not recognize the password and can neither a reset occurs every time I want to do something to stick to iCloud password but does not recognize, what to do? thank you

    Hello, I have problems with iCloud. I do not recognize the password and can neither a reset occurs every time I want to do something to stick to iCloud password but does not recognize, what to do? thank you

    Stop multiple posting

  • How can I get a pdf. to open in Safari, all i'm getting is a new window with a black, blank page, instead of the pdf., and I don't want to save the file to the desktop, Safari didn't use to do that, and I don't have Adobe in the internet plug in folder.

    How can I get a pdf. to open in Safari, all i'm getting is a new window with a black, blank page, instead of the pdf., and I don't want to save the file to the desktop, Safari didn't use to do that, and I don't have Adobe in the internet plug in folder.

    Hi
    Please take a look to this thread Re: Can I refresh the browser rather than open a new tab?

  • I have now purchased easy a twice which has cost me 14 pounds both times the video has not loaded i has come up with "!" its asking e to locate the file and i have tried to i typed in easy a on finder and spotlight and it hasn't come please help

    i have now purchased easy a twice which has cost me 14 pounds both times the video has not loaded i has come up with "!" its asking e to locate the file and i have tried to i typed in easy a on finder and spotlight and it hasn't come please help

    Janieburmy,
    You can always deauthorize all your machines from your store account page — just log in and view your account settings and there's a button to deauth all your machines. Which just means for the other machines, it will ask you for your store ID / password the next time you play a purchased song.
    So, let's try the filter experiment.
    On the start menu, click on "run". in the space it provides enter "regedit" without the quotes. This will open the registry editor.
    Find the heading HKEYLOCALMACHINE. Click on it.
    Find the heading SYSTEM inside it. Click on it.
    Find the heading CurrentControlSet. Click
    Find the heading Control. Click
    Find the heading Class. Click
    Find the heading that begins {4D36E965- Click
    Go up to the Registry menu and select "Export Registry File... command. Make sure the "Selected Branch" radio button is checked and save that off somewhere that you can find it.
    Delete the key named LowerFilter.
    Select the key named UpperFilter, right click, select "modify". Then edit the text in the dialog to just say "GEARAspiWDM" followed by hitting the return key, the return after the word is important.
    Then reboot, and see what iTunes does.
    To get the system back to its previous state. Run Regedit again and use the Registry menu -> Import Registry File... command and select the file that you saved off in the first section.
    I'm particularly interested in getting rid of the "AFS2K" driver in the chain — that's a old driver from a company that hasn't existed in years.
    To answer your last question, why am I doing this?... I'm paying off a karmic debt. And someday we'll start that Tequila for Toonz paypal account and then I'll be set.

  • I don't have a computer on which to convert a digital booklet in iTunes to a useable form for iBooks.  Why won't it download using the cloud like all the other media I purchase on my ipad?

    I don't have a computer on which to convert a digital booklet in iTunes to a useable form for iBooks.  Why won't it download using the cloud like all the other media I purchase on my ipad?

    LP content can only be downloaded on a computer's iTunes (or 1st gen Apple TV), you can't download them on an iOS device - and I haven't seen anything that say it will change in iOS 8. If you don't have a computer then at the moment you won't be able to download/view LP content
    About LP : http://support.apple.com/kb/HT3823
    After you buy an album with iTunes LP on an iPhone, iPad, or iPod touch, the album's songs will download directly to the device. The iTunes LP will download to iTunes on your computer when you choose Store > Check for Available Downloads.

  • Hi, I have iphone 4s and since yesterday my personal hotspot will not work. It's always worked fine in the past and I have a plan with three uk which includes tethering. I've tried everything I can think of including resetting network settings, resetting

    Hi, I have iphone 4s and since yesterday my personal hotspot will not work. It's always worked fine in the past and I have a plan with three uk which includes tethering. I've tried everything I can think of including resetting network settings, resetting the phone as a new phone but nothing works. When connected to the pc it shows on the iphone screen '1 connection' but the pc says 'no internet connection' I've spoken to three who say it must be a phone fault. Any help appreciated. :-)

    If you have restored as new that pretty well covers software issues
    Looks like a trip to an Apple Store and a likely Out of Warranty exchange unit  £159 over the counter
    May e consider an upgrade with the money ?

  • HT1553 I want to do a clean install of Mountain Lion. Can I do this without a DVD version of the OS, and can I restore only specific things like iPhoto and iTunes libraries from Time Machine backup.

    I want to do a clean install of Mountain Lion. Can I do this without a DVD version of the OS, and can I restore only specific things like iPhoto and iTunes libraries from Time Machine backup.

    Mountain Lion is only available as a download, so there is no DVD to purchase. What you can do is download ML and then stop it from installing as soon as it's on your drive. From there you can make your own bootable ML flash drive.
    When your purchase and download Mountain Lion, it will end up in the Applications folder and automatically want to install. Press Command+Q to stop the install and exit. The installer will remain on the hard drive.
    1) Right click on the installer and choose "Show Package Contents".
    2) A folder will open on the desktop. Drill down to Contents > SharedSupport and double click the disk image InstallESD.dmg to mount it on the desktop.
    3) From here you can either burn a DVD, or copy the contents to a flash drive. Personally, I would strongly suggest using an 8 GB flash drive formatted as Mac OS Extended. You will be able to boot to it in about 30 seconds instead of at least 10 minutes off of a DVD, and it will install MUCH faster. Make sure the flash drive is empty, or you've copied anything off it it you need as it will need to be erased.
    4) Don't just drag and drop the contents you see in the open disk image to the flash drive. It won't boot that way as it will be missing some hidden files. Open Disk Utility. You will something similar to this:
    5) To accomplish the above, highlight either the flash drive's single partition (as I did), or the item at the bottom (Mac OS X Install ESD), which is what you will see with the Lion disk image mounted. It doesn't matter which one you pick. You'll then have the option to select the Restore tab towards the upper right. Drag and drop from the left column into the Source and Destination fields as shown above. If you've already erased the flash drive, you can uncheck the box. Click the Restore button.
    You've just made your own bootable Mountain Lion USB Flash drive installer. Once you boot to the flash drive, run Disk Utility first to erase the drive you want Mountain Lion on, then continue with the install.
    As far as restoring your iPhone and iTunes libraries, I couldn't tell you. So I wouldn't do any of the above until someone else chimes in with a way to do that after a clean install of ML.

  • I have an Iphone 5c that wont power on, I have tried the chargers and cables and they work fine so I now beleive it is the phone

    My iphone 5c has no battery life left and is unable to charge, there for unable to power on, I have tried the chargers and cables which all work fine in other devices, I am now stuck with a dead iphone5c that I need fixed

    Am also having this problem. Daughter's iPhone 5c failed completely the other week after experiencing the same problem. We had a replacement phone provided that I picked up on Friday, and still have exactly the same issue with charging.
    Have bought a brand new Apple Lightening cable but no joy - when switching on the phone the battery is showing as dead with an image of the lightening cable (assume this means it wants a cable plugging on). No joy with any other cables, all of which incidentally work on my own iPad Air.
    Strange as well that this started happening once the IOS8.3 upgrade was loaded. With my iPad, I have not upgraded the IOS and it works fine.
    So unsure if it is a software or a hardware issue. I've tried rebooting by holding the Home and On-Off switches, tried connecting it to iTunes which doesn't show the phone nor does the computer recognise it as an external device.
    Really am tearing what's left of my hair out with this one - have already had three visits to the Apple Store at the Trafford Centre and can't face another......help!!!!!

  • My iPhone will not turn on, when I plug it into my computer and load up iTunes its in recovery mode and the only option is to restore my device to factory settings. I have no back up of my phone I've also tried the home/sleep button thing but nothing

    My iPhone 4 will not turn on, when I plug it into my computer and load up iTunes its in recovery mode and the only option is to restore my device to factory settings, I have no back up of my phone I've also tried the home/sleep button thing but nothing, I have literally done every method I was told, I checked for water damage and that's fine. I don't want to restore my phone or buy a new one or pay for repairs because that's wasting money when it could be a simple way to fix it. And yes, I've also tried charging it and turning it in. I really need some help with my phone

    That does happen.  It depends on how hard the server is being hit, as well as the connection speed of your system.  If you are on a windows system, you will want to disable any antivirus or firewall software during the download.

  • My ipod touch screen is totally unresponsive and i have been using it under normal conditions. ihave tried the reset and restore but to no avail.everything works as it would normally do  on the screen.help pls????

    my ipod touch screen is totally unresponsive and i have been using it under normal conditions. ihave tried the reset and restore but to no avail.everything works as it would normally do  on the screen.help pls????

    Might want to post your question in the correct forum.  This is the iPHONE forum.

Maybe you are looking for

  • How to add an if statement in jsp?

    Hi all, I have a displayTag table and wonder how to have a condition on the following code:   <display:column title="Accept?">             <html:multibox property="select" value = "<%=bean.toString() %>" />            </display:column>Basically, I wo

  • Cannot see my template after copying site to laptop

    I copied a site I created in Dreamweaver CC from the computer I created it on to a laptop. On the laptop, I am unable to create a new page from the template as the template does not show up in the "New" menu even though it is there in the list of fil

  • Issue with 3-point smoothing

    HI, I am trying to reduce my baseline noise with a 3-point smoothing filter. Attached are my printscreen result and my vi. I found that the 3-point smoothing did not have a significant effect to smooth the baseline.  I wonder if I programmed it wrong

  • Motion tracking help

    Hi all, hope everyone had a great Xmas. I am having an issue with motion tracking and I will try my best to explain my problem as clearly as I can Here is what I am trying to achieve. Please visit this youtube video  Canon Powershot SX30 IS -140X Moo

  • Cannot program the new flash player

    My printer is a Brothers DCP 375CW and I am unable to program the new flashplayer because I would have to remove Brccmctl. I would appreciate it if you could assist me. Elizabeth Simoes