From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

DIADEM INTERGRATION

 

I would like to create a Diadem script to auto analyse  the for.tdms file attached

I would like to therefore create a routine which starts by integrating from 0 to 300mA for both hysteresis vs current  and control pressure vs current and gives me the value in an excel file There a lot of data 

Download All
0 Kudos
Message 1 of 2
(1,972 Views)

Step 1.  Find the row in the "current" channel corresponding to 300 mA.  The link below shows you how to do that.

http://www.savvydiademsolutions.com/analysis.php?topic=search-channel-by-value-get-row

 

Step 2.  I would delete the rows for every channel from 300 mA to the end.  See the link below for an example on how to use the DataBlDel() command (do a CTRL-F in the browser and search for it). 

http://www.savvydiademsolutions.com/analysis.php?topic=NI-DIAdem-channel-data-manipulation-commands

Step 3.  Integration.  I'm not sure about the validity of performing channel integration when the x-channel is not a time channel, but you can see how to perform channel integration by following the link below.  Note that when you integrate you lose the constant, so you will need to figure out how to resolve that. 

http://www.savvydiademsolutions.com/analysis.php?topic=analysis-channel-differentiation-integration

Step 4.  Export to Excel.  The link below shows you how to export the data to a CSV file.  That is an easy format for import into Excel.  Alternatively you could output directly to Excel, but I don't have a demonstration on my website on how to do that.

http://www.savvydiademsolutions.com/script.php?topic=writing-text-csv-files-FileSystemObject

 

Contact me if you would like to contract me to write a complete running script for you.

 

0 Kudos
Message 2 of 2
(1,869 Views)