Hi Dan,
see attached file
Mike
VSECorp wrote:
> I would like to attach the file I refer to below, but I don't see an
> option to do that on the developer exchange. If you think you might
> be able to help, or if you want to take a look at the example to fully
> understand the problem I am having, please send me your email address
> and I will send the file over to you right away! I realize this has
> to be seen in my code to understand what is going on, so please email
> me so I can send over the file. Thanks in advance for the prompt
> responses.
>
> The file generates a white noise waveform to simulate a signal that I
> would be sampling. I wrote the code to find out the MAX and MIN
> y-values of the signal for the 40 seconds that the while loop runs.
> The while loop runs for 40 seconds, then a dialog box pops up, runs
> for another 40 seconds, and so on. For some unknown reason, for the
> first 40 seconds that the while loop is running, it displays the MIN
> of the signal to be 0.00? Then in the next 40 second period, it gives
> an accurate MIN value. You can see it is working for the MAX value at
> all times. I am not sure why this is happening. If you could, take a
> look at the code and let me know if you see anything that would make
> the MIN function not work on the initial 40 second period of data.
>
> Also, the test that I am running is divided up into those 40 second
> periods. The MAX and MIN are generated for each of the 40 second
> periods. The way I have my while loop and dialog box structure set
> up, a dialog box is triggered to pop up when the timer in the while
> loop reaches 40 seconds. I need to be able to grab the MAX and MIN
> values for each individual 40 second period and store them on a on
> screen display. For example, the first 40 second period will generate
> a MAX value and a MIN value. I want those values to be displayed on
> an on screen indicator. Then the next 40 second while loop runs and
> generates different MAX and MIN values. I then want those new values
> to be displayed on different indicators on screen. So there will be
> multiple indicators on screen displaying the MAX and MIN values for
> each 40 second interval. I have placed the indicators on the front
> panel, unwired at present time. I am having trouble trying to figure
> out how to differentiate between the 40 second while loops using the
> set up I have now.
>
> Finally, ideally I would like the amount of time each while loop is
> running to alternate between 40 seconds and 10 seconds (i.e. the first
> loop runs for 40 seconds, the next runs for 10 seconds, the one after
> that runs for 40 seconds, and so on). How can I accomplish this using
> the timing setup I have now?
>
> Thanks for the help.
> Dan