Jump to content

george seifert

  • Posts

  • Joined

  • Last visited

  • Days Won


Posts posted by george seifert

  1. I ran the Profile Performance and Memory on my VI and the reported average amount of time consumed in the subVIs in a loop doesn't match what I get by subtracting the tick times at the start and end of the loop. They disagree by at least 20ms. I'm trying to find where the extra time is consumed in the loop, but I'm not sure where to look because the profile isn't pointing out any major time hogs. I'd appreciate any thougts about what I could be missing.



  2. I'm sending data via a queue to my main VI in which I only care about the latest data. Currently I have the queue setup for a max size of 1 so sometimes I get an overflow in the transmitting VI. I'm wondering if this is a reasonable way to setup the queue. Or is it better to make the queue size bigger so the queue doesn't overflow and read all the data in the queue in my main VI and only use the last element?



  3. I have an array that contains NaN values. I wrote a routine to remove a single NaN and replace it with the average of the next and previous points. The problem is what to do when there are multiple NaN values together. Has anyone written a routine to deal with that?



    Never mind. I always forget how good Google is at finding these answers. Much easier than searching within a particular forum.

    FYI here's the answer: https://decibel.ni.com/content/docs/DOC-5504


  4. Do you ever manipulate the panel size programmatically? Do you have "Maintain proportions of window for different monitor resolutions" turned on? (VI Properties > Window Size)

    No I don't manipulate the panel size programatically.

    No I don't have the "maintain proportions.." turned on.

    The window comes up fine when the exe is started. Then it suddenly resizes to the smaller size while it is executing.

    I have all the same settings and run all the same setup code in this VI that I have in other VIs and haven't had any trouble until now.

  5. I guess you could say it disassociates with the library. I get an error when I run the VI that has to do with the library. When I relink it everything is fine. There is another copy of the dll in another directory, but I don't see how it could jump over there and use that one. I registered the dll, but it only works when I browse to the directory where the dll is and use that instead of picking the from the Type Library drop down list. I'm not real impressed with this company's dll in other regards, so I not suprised it's giving me fits like this.


  6. I have an M series DAQ (6251) and a Win7 PC. I need to generate a continuously repeating analog output waveform that consists of a positive going pulse and a negative going pulse (total waveform length is roughly 1 sec). That part I can do fine. Now I want to count each time the waveform starts a new cycle. It would be ideal if there was a signal available that pulsed each time the waveform started (then I count route it to a counter input) but I can't find one. Does anyone know of such a signal?

    I suppose I could use the clock output to generate a pulse train to use as a start signal for the D/A, but doesn't that use both counters? I'd still need a way to count the pulses generated.


  7. I had a long term test fail because something happened to the USB-6251 DAQ device (still don't know what happened). When I accessed it via MAX, it said it failed the self test. I reset the device and then everything was OK. So now I'm wondering if I should program a self test before my measurement (only happens once a day) and reset the device if it doesn't respond.


  8. I tried the new Data Value Reference to share data between loops and it seems to work well. I ran into a problem though with my current structure with loading data into the reference from both loops. I was keeping data in a shift register and also using the Data Value Reference and the two got out of sync. Rather than try to explain all the problems there I'll ask this: Does it make sense to use the Data Value Reference with the In Place Structure instead of using a shift register?


  • Create New...

Important Information

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