05-15-2019 10:04 AM
the same thing, no difference between my sine wave and yours!
05-15-2019 11:01 AM
I'd guess either the oscillations are too fast, and therefore width is too high, or the thresholds are not correctly set.
Attached is the following code (2017), which uses an XY Graph to plot the points at which threshold crossings are detected.
In addition to showing how to get the time values, it highlights that I really don't know why you're dividing by 2...
Threshold = 0.2
05-15-2019 11:07 AM
05-17-2019 09:53 AM
Here's an example in response to a private message regarding the file creation.
The example here uses a simple text file, so I used the Close File to close the reference and then the Open/Create/Replace File to reopen the same file. For TDMS, you might prefer to copy some of the contents of the "Create File with Incrementing Suffix" (everything before the Create File) into a different subVI so that you don't create a text file with the wrong formatting (I haven't tested to know what the effect would be for that - I don't know the internal behaviour of the Open TDMS File function).
With this example, the numbers 0-99 are written to a text file and then the next file is created (every 5 seconds).
For the Get File Size function you pointed out that by default it wants a Path input (the slightly wiggly green line) but actually you can also wire a reference to it (the thin, straight green line).
05-17-2019 10:18 AM
This command "Create File with Incrementing Suffix" doesn't work with TDMS file