Hej,
I don't need the amplitude values, it is more a question of signal yes/no. The problem is, that the signals don't have a min value, but they have a value, that is, an amplitude between 0 and 10 volts (minus baseline shift). What I do is scrolling through the file at a resolution of 10 seconds (x-axis) and write down the times of the amplitudes of the peaks into a table (I then calculate the times between two peaks as well as the number of peaks in a certain time interval). If a peak is a peak or just noise is the decision I have to make, and quite often it is easy, b/c most of my files have a good noise-to-signal-ratio. But many files have (for unknown reason) a strong noise - it looks for me like two or more sine waves of changing frequency are superimposed to the signal. Maybe something was wrong with the low and high pass filters during recording.
Your scipt really helps me with the noisy files, but is it possible to modify it so that I can see the original values and the new values at the same time in two rows, or saving the new values to a new file? (Then I can copy and paste the new values next to the old values in a table in a second column and read the new file with Labview afterwards.)
But the other proposed script with the counting of the peaks above a certain threshold might really help me with the other files with almost no noise. Is it difficult to write a script which reads a file and writes the times of the peaks (that is, the high-low or up/down times, when the signal crosses the threshold) into two colums of a spread sheet?
By the way:
I have now installed the evaluation version of Labview 8.5 on my computer, so that I don't have to walk to the other building. I looked for my old script in the examples folder, but the old "daq"-folder is not there anymore, and the old strmdsk.llb is not included in V 8.5. I think that is because after V 6 NI changed the programming, like with the Nidaq-MX and the traditional Nidaq-drivers?
Sven