11-09-2009 02:41 PM
11-10-2009 03:26 PM
11-11-2009 11:34 AM
There's going to be an inherit delay from a software trigger due to the OS.
Am I correct in understanding you would like at a point of the switch take a time stamp of the peak locations and the rawa data?
11-11-2009 12:05 PM
Ideally I would like to have a continues plot (/data written to my measurement file) of the instantaneous frequency (One divided by current peak time-previous peak time) versus time and switch position versus time as I will be switching several times. Another option would be to to just have an output of times where the peaks occur (relative time as in time starts at zero when I enable my write to measurement file and increases from there) written to my measurement file along with the switch position at those times. So it will look something like this...........
X time (sec) Switch (0-on 1-off) X time (sec) Frequency (Hz)
0 0 0
.0002 0 .0002
.
.
.
Till Two or more peaks pass
.066 0 .066 30
OR
X time (sec) Switch Position Peak Location (sec) Frequency (Hz)
0 0 .033
.0002 0 .066 30
.0004 0 .099 30
11-13-2009 09:34 AM
11-13-2009 10:51 AM
With the program I have attached I am getting exactly the output I need when displayed on the labview VI graph I have attached to my frequency output. I am getting the time difference between peaks (frequency). I am even able to write this to my write to measurement file express VI. The issue is when I write this frequency to the measurement file it gives me a list as follows
X value Unknown (freq)
1 29.3
2 28.5
3 28.7
4 28.6
with the correct frequency I am expecting. What I need though is the time at which these frequencies occur, so the peak location of my raw signal where this frequency was calculated. So if I have a peak occurring at 0.033s and then another at 0.066s, I want to know that the frequency between the two is 30 (which I am able to get) and that it occurs at 0.066s (which I am not able to write). Then the next peak at 0.099s, I want to see 30Hz in one column and 0.099sec in another column and so on. I hope this clears up my issue, thanks for any help.
11-17-2009 10:43 AM
11-18-2009 12:33 PM
11-19-2009 11:21 AM
11-20-2009 05:54 PM
Can you provide a screenshot of the block diagram or unlocked vis.? As I previously mentioned I believe we just need to allow the array to build and then put into the write to file vi.