Jump to content

george seifert

Members
  • Posts

    399
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by george seifert

  1. Ideally I need to find the start and stop of all the gaps. I need separate out and save the chunk of data between the gaps. George Using loops isn't necessarily a killer, but I do need to keep processing time to a minimum. I think a SMA could work, but I think it'll be a little sloppy on finding the edges of the gaps (depending on how many samples I average). Thanks for keeping the ideas coming. They may not work as is, but usually I get enough of a nudge in the right direction to figure it out. George
  2. Your comments got me to look closer at my simulated data. I knew my real data would be noisier, but it will also look more like a sine wave than the triangle wave I had. I bumped up the sample frequency and now it looks better. Sorry to say though that the contributed ideas won't work on the new data. I'm back to my original plan of finding peaks and differentiating. By finding the time between peaks in the differentiation I can get the gaps. OK anybody up for round 2? George Fing gaps 2.vi
  3. Thanks I like your way better. Actually I've done something like that in the past and completely forgot about it. I don't know for sure yet what the real data will look like. I'm sure it won't be this nice. But this is a good place to start. George Well you can't get much simpler than that. I'll bet Gary's method is faster though. I know I didn't make that part of the criteria.
  4. I have a pulse train that I'll receive via a DAQ card that looks like this I need to find gaps in the pulses. I've attached a VI that generates simulated data and does the analysis. Basically I find the indicies of the peaks and then take the second derivative of those indicies. The gaps in the indicies give a spike in the second derivative. I can then use those spikes in the derivative to find the gaps. I'm just wondering if there's a more elegant way to do this. Thanks, George Fing gaps.zip
  5. Oh no, no, no. Masking tape is much nerdier.
  6. george seifert

    Creepy

    Wow, I'm glad to know that I'm not the only one who is creeped out by the Burger King. George
  7. Nope. It's just a plain old constant with no links to anything. George
  8. I discovered this when my executable wasn't working. I opened the VI and found that somehow some string constants in arrays in a cluster got wiped out (the arrays were emptied). This has happened a couple times now so I'm sure it wasn't a goofy slip on my part. There's no way I could have cleared 5 arrays without knowing it. Has anyone had something like this happen.
  9. Uh, it Windows. What do you think? Sorry, couldn't resist. I have nothing constructive to offer. George
  10. My memory's fuzzy on this, but doesn't -1,-1 do everything but the headers? George
  11. Thanks for the link (Ton's original post with that link didn't work) and the example. Not to put a stop to all the other ideas, but I only needed to add tabs while in edit mode. Truth be told, it was a lot less work to just add them manually. George
  12. See, I knew somebody was going to chide me for having too many tabs. Really, in this case I need them. Thanks for the ideas. George
  13. I need to build a tab control with many pages (I won't say how many because someone will surely scold me). I'm too lazy to go through and keep doing "Add page after". Is there another way to do this? I've searched through all the invoke and property nodes. There was an entry at NI for doing this with Labwindows, but that doesn't help. George
  14. QUOTE (Antoine Châlons @ Jun 9 2009, 09:53 AM) Thanks. That's a start. Unfortunately I haven't been able to find anything on the net that describes where the Genre metadata is supposed to be in the file. George
  15. Has anyone used LV to access the meta data in a WAV file? I've searched the archives here and at NI and came up emtpy. Specifically I need to edit the Genre data. Another group here has written some software (not in LV - shame on them) to process WAV files. They use the Genre data for some reason to pass data into their program. George
  16. What's the best way to compute a linear fit on data that contains NaN values? In our data acquisition we occasionally get some invalid data that gets passed along (by my VIs) as NaN. This data then gets fed to the Linear Fit Coefficients VI which gives NaN results if any of the inputs are NaN. George
  17. QUOTE (candidus @ May 28 2009, 10:45 AM) Hey that worked! I feed a double into the graph outside the typedef and then I replaced the graph in the typedef with the new one. Thanks much. George
  18. I've run across a problem with a graph within a typedef that doesn't display NaN values properly. Nornally NaNs are ignored and no points are plotted, but in my case the values show up as huge numbers. In the enclosed example I feed values to the graph within the typedef and the same graph disconnected from the typedef. You can see that the non typedef graph is fine. I think the problem has to do with the representation of the numbers in the graph because even with the non typedef graph if I make the representation of the number I32 instead of double it will display as the typedef graph. I can't figure out how to make the representation of the numbers in the graph within the typedef be doubles. Even if I change the formatting of the axes to be floating point it still doesn't help. Any thoughts on what I can do? Bundled
  19. Wow, lots of good ideas. Thanks. I was really thinking there weren't many options. I think the only thing that won't work is to change the privileges. All users logon to this PC with a generic lab logon so there's no way to give rights to certain people. Unless maybe there's a way to protect the file from changes being made in Notepad or Word versus being written from LV. George
  20. Is there any way to protect a text file written using the Configuration File VIs? I didn't think I'd run into a problem using an unprotected/unencrypted file in the area I'm in, but I did. I have a bunch of routines in place for reading/writing these files so I'd rather not have to switch to a different type of file. The only thing I've come up with so far is to write the file like I usually do and then convert that file to some type of binary or XML format and then delete the text file. Then I'd reverse the process to do a read. Is there a more elegant way to do it? George
  21. NI has confirmed this bug. They had to let it run over the weekend so it's not surprising that no one else here saw the problem. I don't know what it is about my system that I see the problem so quickly. Just lucky I guess. George
  22. Thanks guys for trying it out. I don't know what's different about my system. I have two different apps built into executables that have shown this problem on several different PCs so I know it's real. I've reported it to NI so we'll see if they can reproduce it. George
  23. I've run into this bug a few times now so I think it's real. I'd appreciate it someone could run the simple attached VI (LV 8.6.1) and let me know if you get the same error. I was getting this with LV 8.6.0 also. The problem is that the Actual Start value (Current Iteration Timing from the Left Data Node in a timed loop) occasionally reports a huge value (18446744069414584318 or something like that). It seems worse when there are two timed loops running. There doesn't seem to be any consistency in when it happens so you may have to let the VI run awhile before it happens. In my tests though it always happened within a couple of minutes. Thanks, George Download File:post-2786-1241793290.vi
  24. QUOTE (CooLDuDe @ Apr 8 2009, 09:12 AM) The first step is find out how much current drive your motor needs. If you have a power supply with a meter on it that will help with this step (hopefully your supply will have enough drive). If the supply doesn't have a built in meter then connect a DVM (set to measure current) in series with the motor. Now armed with that knowledge you can figure out where to go next.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.