Hi Jim,
I would be glad to help you with this question. It sounds like you are trying to convert a square wave (coming from your wheel) into a graph of speed (RPMs) vs time. You should be able to use the VBScript example located at (
http://zone.ni.com/devzone/cda/tut/p/id/3549) to perform this task. Please follow the link at the bottom of the page to "Joint Time Frequency and Order Analysis Tool - Download."
Specifically, you will need to perform the following steps:
- Download the Joint Time Frequency and Order Analysis Tool using the link above
- Save two sets of data in your preferred file format (for import into DIAdem). You should have one data set for your square wave (obtained from your wheel), and another data set for the time data associated with your square wave samples.
- Drag the square wave and time data (two data sets) into the DIAdem data portal. Note the channel names that are associated with each data set.
- Select the "Script" window on the left, and click on File >> Open. Navigate to the directory where you saved the Joint Time Frequency and Order Analysis Tool files, and select the "Time Frequency Order Analysis" script.
- Click Run Script to execute this script. From the dialog page, navigate to the "Analysis Type" menu, and select "RPMs Channel from Tach Channel".
- Select your "Time Channel" and "Tach Channel" according to the channel names that you imported earlier. You can also choose the number of pulses per revolution for your wheel.
- Click on "Run Analysis" to obtain the velocity-time data that you are looking for.
I hope this information helps. Please let me know if you have any further questions and I would be glad to assist you in any way possible.
Regards,
Casey Weltzin
Applications Engineer
National Instruments