02-03-2014 04:43 PM
I need a little help modifying a dataplugin to automatically truncate the data in a .csv file - dependent upon a phase wrap that occurs near the end of the file. The 3D Axis in report doesn't handle data that isn't monotonic, and I really don't want to include that data anyway.
I'll attach the VBS plugin file and a sample datafile. I wish to truncate the Angle [deg] channel, and all the numbered Z-axis channels to the same length so that nothing beyond the point where the angle wraps is pulled in. The angle in the first column in the data.
In the example datafile, the data I need to truncate would be the last 3 lines.
This seems like it should be really easy, but I just can 't seem to find the right object, method and properties that I need.
Thanks!
Solved! Go to Solution.
02-04-2014 02:37 PM
Hi Greg,
I added code to your DataPlugin to detect when the Angle channel incremented negatively instead of positively and made that the cutoff for the Block.BlockLength property. I also changed the positions of the Angle and the Frequency channels in order to put your imported data into what DIAdem calls "Matrix" structure. Try dragging the entire imported GROUP into a new VIEW area and choose the type "Contour". The same thing is possible for a 3D graph in REPORT.
Enjoy,
Brad Turpin
DIAdem Product Support Engineer
National Instruments
02-05-2014 01:22 PM
Hi Brad,
It seems like finding the correct object and property to do what you want is like looking for a needle in a haystack sometimes.
Thank you very much!
Best Regards,
Greg Granville