01-11-2012 03:07 PM
ok. I figured out how to run the script. I know need to generate a time channel and plot my data in time domain.
01-16-2012 03:43 PM
Hi UCrg,
Would you please post or email me a sample data set? If you got the curves to shift with the script, then you should already have had them plotted in the time domain-- unless you were shifting frequency spectra or something, which would be weird.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
01-17-2012 11:38 AM
I have attached an example .tdm file. The file has two sets of data, each with several channels of data. I have already created a time channel for the data, but it is in microseconds when the units should be in nanoseconds. I don't know how to create a time channel with 0.050 microsecond delta t's. That is anothere issue. As far as aligning the signals, if you load Ch3 from PURAir3 and Ch4 from G10Air2 into a plot, you will see a couple of sharp rises in each set of data. An example of what I would like to do is line the first sharp rise in the one channel with the first sharp rise in the other set. Usually, I will be trying to line up the same channel from two different sets of data ie. channel 4 from both PURAir and Channel 4 from G10Air, but in this particular set of data, they actually line up nice on there own.
04-16-2015 04:22 PM
Brad,
i've been using the align rising edges script alot, specifically to align rpm, starter currents etc. if i try to use this script to align falling edges, for example battery voltage during a dead crank for three different cranks that are on differet time bases, the script will not work and sais "Could not find the rising edge for curve 1 at threshold value 11.245501...",i can put the crosshair curve curser anywhere on the curve and it will say the same thing, could you tell me how to modify the script to align falling edges?
Regards,
Steve.
04-21-2015 02:23 PM
Hi UCrg,
You can create a time channel with the ANALYSIS panel function "Generate Numeric Channel" in the "Channel Functions" palette. When you say you've created a time channel in the TDM file you posted, are you referring to the "Acquired Data" channel in each of the Groups, which rises linearly from 1 to 80000? Or are you referring to the one "TimeGenerated" datetime channel in the second group that is filled with 200,000 NoValues?
Brad Turpin
DIAdem Product Support Engineer
National Instruments
04-21-2015 02:29 PM
Hi Steve,
I can get the script to align falling edges, but I can understand the confusion. The way the script works is this, it notes the first intersection of the horizontal line of the crosshair cursor to the right of the vertical line of the crosshair cursor with THE FIRST CHANNEL in the graph (usually the red channel). Then it finds the closest point to the right of the vertical line of the crosshair cursor to each of the other curves in the graph and shifts those curves so that they each are at the same location as the first curve's point.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
04-30-2015 01:33 PM - edited 04-30-2015 01:34 PM
Brad,
I am still unable to get this script to align falling edges. I have attached some sample data that I cannot get to align. This is battery voltage data on three different dead cranks at -23 degrees C.
Thanks for all the help,
Steve.
05-06-2015 02:04 PM
Hi Steve,
You also need to post the corresponding TDX file (the one with the binary data values in it). Does this new file mean that you had success with some of the other files, and only this one is causing you trouble?
Brad Turpin
DIAdem Product Support Engineer
National Instruments
05-06-2015 02:25 PM - edited 05-06-2015 02:26 PM
Brad,
Here are the two files. I have still only had success with rising edges, for example starter current on a dead crank. For falling edges (battery volts during dead crank) i am still unable to get this to work.
Regards,
Steve
05-07-2015 05:59 PM
Hi Steve,
Now I have your data, thanks! I see a dip region in the middle which has oscillations in it. Are you wanting to align the falling edges into the dip or the rising edges out of the dip? I can do both by placing the crosshair cursor to the left of the desired feature, but in the case of the rising edges out of the dip I have to first align the falling edges into the dip before I can successfully align the rising edges out of the dip.
Brad Turpin
DIAdem Product Support Engineer
National Instruments