Cascade filter doesn't seem to reinitialize

I'm using a cascade filter with butterworth coefficients in the attached vi. There are some values for input I can give the filter such that it causes the output to be an array of NaN. This is fine, except that when I give the filter the exact input that has already yielded a good result, it still outputs NaN. If I change the boolean input init/cont to false, run it once, then change it to true, the filter works fine. Is the data somehow getting left over in the filter? Or is there something I can do to stop this from happening? Thanks.
John 
Solved!
Go to Solution.
Attachments:
DualPhase_LockIn.vi ‏22 KB

Hi John,
Turns out I also need to read the LabVIEW Help better.  If you look at (http://zone.ni.com/reference/en-XX/help/371361F-01/lvanls/iir_cascade_filter/), this constant works opposite than what we want.  Essentially, it initializes the VI when set to false and uses previous data when set to true.  What you can do in your VI to make sure each run starts with fresh data is to use the First Call? function and invert it. When the First Call? is called at the beginning of execution, it outputs True;  False is output for all other iterations.  If we invert this, you get False (Initialize in this case) on the first iteration of the Cascade filter and True for every other call of the VI.

Similar Messages

  • My circular polarizing filter doesn't seem to have a very wide change spectrum?

    Do circular polarizing filters come in various strenghts or ranges of change?  ARe all C-polarizing filters the same?  Yes, I know how to use them. I know the 90degree angle to the sun and all that ...I feel that I should be able to rotate the filter and see through the lens excactly what the change will be...frankly I find it very difficult to see the amount of change in the blue of the sky using the filter that I have....shouldn't you be able to rotate the filter and observe the change gradations?  Shouldn't they be obvious as in a ND filter?  Should I ask for a "stronger" polarizing filter?

    iris wrote:
    Remarkable results with your HDR....I am interested in HDR but have no real understanding of it.  I get the impression you dont need a lot of lenses?  ? what? I saw friends on a recent trip to the mountains raving about the little bit of weight they took with their cameras...I'm not sure I understand HDR at all right now?You need a tripod, not a lens.  Well, obviously a lens, but a tripod is the standout requirement for HDR.  Basically all you're doing is taking photos as multiple exposures (very dark, dark, normal, light, very light) and combining them into one image with a large (or "High") dynamic range (the 'distance' between the darkest and lightest points in an image); hence the name HDR.  You can shoot it without a tripod, most software can try to align the frames, but it's much better to just use a tripod if available. As mentioned above, Photomatix is the name brand in HDR, but that's changing and the technique evolves.   It's far superior to control in Photoshop, however.   There's a plug in for Lightroom called Enfuse (free) that is very powerful, but not as user friendly.  And the soon to be released Lightroom 6 will have HDR built in; we're all eager to see what that looks like. The examples that eBiggs posts really show tone mapping more than HDR.  All HDR (and non-HDR) images have to be tone mapped to display on a LED screen, but if you search for "tone mapped" you'll see that there is a look associated with the term.  On the flip side, HDR images can be tone mapped to look normal, mearly trying to squeeze a large dynamic range into one picture. A very common use is in Real Estate/Architectural photography when dealing with lots of windows.  The difference in light levels between the inside lights and outside can often be far too large for a camera (even though your eyes can adjust ok).  So you're left with either completely white windows, or dark interior.  The goal isn't to make something that looks 'tone mapped', but to have it look normal.  Like this:  Even with lighting I couldn't completely balance out the sun, so I simply stack a few images to fill in the low spots.  It doesn't look like anything special, but it's not supposed to.  You can see the outside has a slight bluish tint to it.  Poor tone mapping on my part.  Another example, where the left and back walls were windows, creating a bright gradient out of the lower left, leaving the back completely dark.   Again, you're not suppose to look at it and think HDR, it's suppose to look like an ordinary photo.  Just some examples of another side of HDR...

  • LR5 's Adjustment Brush doesn't seem to work-does the New Radial Filter have priority?

    So why in the world would I update Lightroom in the middle of a job.?
    Before I was able to do in and touch up shadowy areas using (K) adjustment brush, but now it doesn;t seem to work. The radial brush does a good job for a defined area but for SPOT touching I have always used the the adjustment brush?
    Is there a setting or am I missing something or is this a bug?

    The presence of the Radial Filter in the tool set should have no effect on the Brush. It continues to work just as it always has. In fact, even if the RF is open (I sometimes hit it by mistake when I really want the Brush) and you click on the Brush icon, the RF closes and the Brush opens. If your Brush is not functioning properly, it is very unlikely that the RF is the reason. The usual first aid for any LR misbehavior is to close LR, remove the Preferences file from its folder and relaunch LR, allowing it to make a new preferences file. Not guaranteed to solve the problem, but worth trying.

  • Performance Point Cascading filter challange - Can it be done? If not, we need to change our BI front end!!

    My challenge at the moment is that I need to create a dynamic filter. To explain this is a cascading filter but not your normal cascading filter,
    ie, Year/Month/day etc.
    Here we have a single Dimension, Organisation. It contains every level of a business,
    Site,
    Dept, 
    Company name,
    Division
    Holding
    Strategic Area
    From these as a default we have 4 built hierarchies with a different combination of the above.
    Activity (Strategic Area, Dept)
    Organisation (company Name, site, Dept)
    Sites (Division, Site)
    Holdings(Holding, Strategic Area, site, Dept)
    At any given time we have have additional Hierarchies created within the Dimension, further adding to the hierarchy list.
    We now have a challenge where we require our users to be able to in the first filter select the Hierarchy they want to use, ie, Holdings, Site, Organisation
    or Activity. This should then cascade to the second filter and contain the relevant hierarchy and levels as a multi select filter. Of course this also needs to be connected to number of graphs, charts and scorecards on the page, dynamically. 
    I have gone around the houses to get this to work but not having any luck. Tried the variety of filters available, MDX, member selection, tabular,
    SharePoint, and attempted to mix and match to get this to work. I cannot find a way but I don't believe this is not possible.
    If it is not possible we must look around for another front end solution for our BI Dashboards which I would prefer to avoid. Any response or suggestion
    would be much appreciated.
    Regards,
    Sheb

    This is possible within PerformancePoint 2010. Filters can be cascading. There is one restriction that might affect you, and that is the cascade only works on the preceding level. For example, let's say you have 4 filters, Country, County, City, postcode,
    that have been set up in PerformancePoint as cascading filters. Now when you choose a country, say United Kingdom, only Counties within the UK will be displayed. That's exactly as you could expect. However, now if you select Norfolk county, all the cities
    with "Norfolk" county will be available. That's including the cities within "Norfolk" Massachusetts. This is because PerformancePoint cascading filters only work between two levels.
    Here's a link to setting up cascading filters http://technet.microsoft.com/en-us/library/hh272541(v=office.15).aspx 
    Hope that information is useful to you and the cascade limitation doesn't limit you too much. 
    Richard

  • Oil Paint Filter Doesn't Turn Out

    I'm using the oil paint filter and for some reason it doesn't turn out when I use it. It doesn't seem to be an issue for very very small sized images, if I make the photo smaller it will work just fine. However, for any regular sized images I get this result below. I just got a new computer, so i'm not sure what the issue could be? Thanks for your help, I appreciate it

    Noel Carboni wrote:
    Reminds me of some of my debugging during development of our plug-ins.
    Ah, I did save one of those images.
    -Noel

  • Notify doesn't seem to be working?

    I am fighting a small issue with the forums that I haven't been able to figure out what setting needs to be changed. When I post a Thread I normally set the notify process to e-mail me immediately. Yet this doesn't seem to be occurring right now. I have several posts that I would check on a few times a week for responses only to find that someone did reply but I didn't get notified. At first I thought I had a SPAM filter issues and checked those settings. Issue is I am getting a few of the replies for older posts.
    Am I doing something wrong? Has the Forum notify process changed? Should I be doing a e-mail once a day on post replies?
    This seams like a strange occurrence that would be helpful if I could get it resolved.
    Thanks
    Richard

    rhuhman wrote:
    > This seams like a strange occurrence that would be helpful if I could
    > get it resolved.
    Thank you for providing this feedback.
    Recently there have been some back-end issues that prevent
    notifications being sent. This is affecting everyone. The issue is
    being worked on and hopefully will be resolved shortly.
    As long as you are subscribed to a thread or a forum, you should be
    notified when an update occurs. If you don't see any notifications by
    the end of the week, please let us know.
    We will provide updates when more information is available.
    Kevin Boyle - Knowledge Partner
    If you find this post helpful and are logged into the web interface,
    show your appreciation and click on the star below...

  • Mini dvi to s-video/composite adapter doesn't seem to work?

    basically i'm trying to hook my rather new 2.53 ghz mac mini to my tv, which basically has rca inputs. so, having seen several laptops hooked to this tv as simply as using an s-video to composite adapter, i figured it would be as simple as getting the mini dvi to composite adapter and i'd be good. well, for some reason this doesn't seem to do anything. the other weird thing is that when i hook the cable from the composite adapter to the tv, i get a buzz out of the speakers as the connection is being made. why is a video signal having anything to do with the audio? plugging my playstation 2 into the same input works fine. why the difference?

    Boece wrote:
    !http://images2.monoprice.com/productmediumimages/47241.jpg!
    +
    !http://images2.monoprice.com/productmediumimages/48501.jpg!
    That's the setup I've used. Works great for video and photos, but webpage text can be difficult to read.
    I used the yellow composite input rather than the s-video. My old tv is inside an “entertainment center” type tv stand and is so friggin heavy, it’s a pain in the axx to move, so I just used the composite plug on the front of my tv. Since the Mac mini is sitting in front of the tv it works great:-)
    http://discussions.apple.com/thread.jspa?threadID=2430645&tstart=0
    Message was edited by: James Press1

  • Need lightroom 4.4 asmac is 10.6.8 and not compatible with anything higher. Does this come with the creative cloud? Would really like a disc but that doesn't seem to happen anymore. Currently have cs4 and d7100 hence need 4.4 to open raw Any idea

    need lightroom 4.4 asmac is 10.6.8 and not compatible with anything higher. Does this come with the creative cloud? Would really like a disc but that doesn't seem to happen anymore. Currently have cs4 and d7100 hence need 4.4 to open raw Any ideas? Is this now customer service or does adobe have a customer service team . Site not user friendly. Thanks

    Graham Giles wrote:
    Have you seen this type of problem before? I think it could be a serious issue for anyone in a similar position.
    No; but then, I've not had occasion to use TDM. I've been using firerwire drives for over 10 years, both FW400 and FW800, with no issues except a bit of instability using a B&W G3 machine.
    TDM should be safe. Using cautious, manual copying of files from the Target machine to the Host machine should not result in unexpected loss of files or damage to the Target drive's directories. It should behave exactly the same as if it were an external (to the Host) firewire drive.
    •  I don't suppose there is anything I can do to 'put back' lost items from a separate Time Machine drive which has an up to date backup on it.
    There is probably a way to do that - seems to me that's one of the reasons for a Time Machine volume.
    On the other hand, if the Time Machine volume is rigidly linked to the now-absent OS on the original drive, there may be no way to effectively access the files in the TM archive.
    I know that using a cloned drive would work well in this instance.
    I have no experience with Time Machine, so perhaps someone who has will chime in with suggestions.
    With the machine in TDM with the other machine, have you tried running Disk Utility to see if you can effect repairs to the drive?

  • Wacom Tablet doesn't seem to work all of the time?

    I have a Wacom Intuos 3 tablet, not more than a year old. I recently installed it onto my Macbook Pro and it worked fine, but when I unplugged it and came back to work with it later, it doesn't seem to work. The mouse doesn't respond to where I click on the pad.
    So, I've reinstalled this a couple of times and was able to make it work perfectly, but today when I went back to work in photoshop, it doesn't seem to be responding again.
    Does anyone have any tips? I know that Leopard likes you to eject USB devices instead of just pulling them out of the slot, but I don't see anywhere to eject it.
    Does anyone know what's up?

    Downloaded a driver from website, tablet works now.

  • HT3235 I just bought a Micro-DVI to video adapter to try and hook my MacBook Pro 13" I bought mid 2009 to my old TV, the adapter doesn't seem to fit any of the connections, is this the right adapter?

    I just bought a Micro-DVI to video adapter to try and hook my MacBook Pro 13" that I bought in mid 2009 to my old TV (svideo), the adapter doesn't seem to fit any of the connections on my macBook pro, is right adapter?

    Shootist007 wrote:
    Apple doesn't offer a MDP to AV or componet connect . Only DVI and VGA. They also don't offer one to HDMI. You have to go aftermarket to get one to HDMI.
    Quite right, but as the OP does not have component or composite connections not important.
    To the OP, this does work, but is not the cheapest, and as it appears that Apple no longer sell an SVideo adaptor cable 3rd party it will have to be.

  • 1.burned a hole in my screen can I get this repaired?  2. Even though I have it set to open up to a blank screen, no web pages, my computer (safari) continuously opens with multiple safari sites open. It doesn't seem to matter what I do, it just reverts

    1. I burned a small hole in my screen, is that fixable/replaceable? 2. Even though I have my 15" MacBook Pro set to open to empty screen when I open Safari, it constantly opens multiple previous pages. It doesn't seem to matter what I do it just reverts back to opening multiple pages. Major security risk, my bank pages have popped back up after my computer has been shut down, account numbers and all. I took my computer to an Apple store and the genious there tols me...      "honey, you can't hold your laptop on your lap, that's the problem, it's getting too hot" he honestly said that. Could someone please help me? Thanks

    Apple doesn't call its portable machines 'notebooks' instead of 'laptops' for nothing - using a MacBook Pro in your lap can cause some burns on your skin, poor ventilation, etc. So use it on a hard flat surface - not your lap, pillows, bedclothes, etc.
    As for burning a hole in your screen, you'll have to revisit the Apple Store and see how much they would charge for a new screen. It's likely to be a bit expensive.
    And if you've Safari set to re-open tabs when you restart, you can disable this feature -> Safari-Preferences-General.
    Good luck,
    Clinton

  • How does Azure Compute Emulator (or the Azure one) determine if a role is web project or something else ("The Web Role in question doesn't seem to be a web application type project")?

    I'm not sure if this is F# specific or something else, but what could cause the following error message when trying to debug locally an Azure cloud service:
    The Web Role in question doesn't seem to be a web application type project.
    I added an empty F# web api Project to a solution (which adds Global.asax etc., I added an OWIN startup class Startup etc.) and then from an existing
    cloud service project I picked Roles and
    chose Add
    -> Web Role Project in solution, which finds the F# web project (its project type guids are 349C5851-65DF-11DA-9384-00065B846F21 and F2A71F9B-5D33-465A-A702-920D77279786),
    of which the first one seem to be exactly the GUID that defines a web application type.
    However, when I try to start the cloud project locally, I get the aforementioned error message. I have a C# Web Role project that will start when I remove the F# project. I also have F# worker
    role projects that start with the C# web role project if I remove this F# web role project. If I set the F# web project as a startup project,
    it starts and runs as one would expect, normally.
    Now, it makes me wonder if this is something with F# or could this error message appears in C# too, but I didn't find anything on Google. What kind of checks are there when starting the emulator and which one needs
    failing to prompt the aforementioned message? Can anyone shed light into this?
    Sudet ulvovat -- karavaani kulkee

    Sudet,
    Yeah you are right, the GUID mentioned seems to be correct and the first one i.e. {349C5851-65DF-11DA-9384-00065B846F21} means the web application project which compute emulator uses to determine while spawning up role instances.
    You might want to compare the csproj of your C# and F# web projects which might give some pointers.
    Are you able to run your F# web project locally in IIS? If yes then you will definitely be able to run it on azure so I will recommend to test it in IIS Express first.
    Here are some other tips which you can refer or see If you are yet to do those settings
    1. Turn on the IIS Express - You can do it by navigating to project properties
    2. Install Dependent ASP.NET NuGets / Web Api dependencies (If there are any missing), Reference System.Web assembly
    Also I will suggest to refer this nice article about how to create a F# web Api project
    http://blog.ploeh.dk/2013/08/23/how-to-create-a-pure-f-aspnet-web-api-project/
    Hope this helps you.
    Bhushan | http://www.passionatetechie.blogspot.com | http://twitter.com/BhushanGawale

  • My apple tv is registering on my tv - i can see it on my system info screen but the apple tv doesn't show up, as well my imac doesn't seem to let me share - so i don't know whats wrong, why my apple tv isn't working

    anybody able to help me with my setup for apple tv.  i've followed the directions in the guide and my tv doesn't seem to register in part.  it's weird because my tv system info identifies the apple tv but the screen never went black and it doesn't show anything, too, my imac doesn't seem to register the apple tv unit either

    I would try connecting it to another tv to see if it works there if it does
    then likely your tv can't handle the default resolution and you should lower it on the other tv
    if not then you should connect it by usb to the computer and use itunes to restore it's firmware

  • Safari on my iPhone 6 running 8.02 doesn't seem to work right. Some Java scripts don't show correctly and they do on other browsers I have downloaded. I tried almost everything and nothing seems to work to fix it. Please help.

    Some websites like the one of my college uses JavaScripts and they seem to load correctly to a certain point but then not really. For example in one it would say select an option from the left menu. And I do it hut nothing happens. But when I go to the same website in another browser on my phone. The JavaScript works completely and allows me to see whatever I was clickig on that menu. I have seen that there are other websites being affected too. I tried clearing my cookies and data. even restarted my phone. And doesn't seem to work. I don't know how change the configuration any more to make it work like normal. At first I thought it was my school's website but it never got fixed. And now I realized is my safari browser! I wanna keep using it since I am really familiar with It. If someone knows how to fix this please let me know!
    Thanks

    You can reset the SMC and see if that helps. If it's a unibody or Retina, follow the method for "a battery you should not remove yourself."
    http://support.apple.com/kb/ht3964

  • I'm using iphoto9.1.3 but now it doesn't seem to work, whenever I try to open it, it just shows loading, but never loads. Can anybody help me with this ?

    I'm using iphoto9.1.3 but now it doesn't seem to work, whenever I try to open it, it just shows loading, but never loads. Can anybody help me with this ?    

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

Maybe you are looking for

  • How to use another java program to stop this running prpgram???

    Dear Sir: I have following code and I run it success, import java.util.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.*; public class CertainAndRepeatTime{   public static void main(String[] args) throws IO

  • Creation of materialized view with view log file for fast refresh in 10.1db

    Hi,.. I have a select statements that includes data from almost 20 tables and takes long time to complete..I am planing to create a materialized view on this.. would you please suggest best way of doing this? we would like to have materialized view a

  • How can I delete text or rows in pdf?

    i tried to edit or delete text in my pdf but I can't. So what do I do

  • Hyperlink to topic in second window

    Hello everyone I am trying to create a hyperlink from a topic displayed in the Main window of a .chm to a topic that is displayed in a Second window of the .chm. In the past I have created a link from a button to display a topic in a window named Abo

  • MDM 7,1 Portal Content

    I have configured MDM 7.1 Portal content and I am facing issuse that I do not have control on . For example if I edit an existing record and try saving the changes it saves and automatically creates a duplicate record. If I try to duplicate a particu