DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

DIAdem Automation

Solved!
Go to solution

Hi All,

 

I'm new to DIAdem, less than a week experience. I'm trying to perform channel validation from a TDMS file. I'm running some stimulus profiles(from csv files) and storing measurement data as TDMS. For our analysis purpose, I'm using DIAdem. Analysis is, if the sample at a particular timestamp is as expected, if not, test step will be FAIL. So, for multiple TDMS files we need to perform this analysis. 

 

I don't want to use vbs scripts since none of our team members have experience in the area. One of my colleagues told it's possible to automate DIAdem by activex from Teststand/LabVIEW. is there any example program I can refer?

 

I'm able to launch DIAdem application, but not able to load any file or perform any checks. Because, from property node/Invoke node I'm not getting proper options. I'm currently using DIAdem with trial version. 

 

Can anyone please let me know if there is any example for this?

Certified LabVIEW Architect
System Test Architect
Electrical Engineering
JLR
0 Kudos
Message 1 of 3
(2,839 Views)
Solution
Accepted by topic author RishiDivakar

Hi Rishi,

 

It is possible to automate DIAdem from LabVIEW, and the communication method there is indeed ActiveX.  There are quite a few VIs that ship with LabVIEW in the "vi.lib\ExportToExcel\" folder that you can use-- my favorite is "DIAdem Report Wizard Start CSC.vi".  For that one you provide a data file path and a layout/script file path, and it handles all the details of automating DIAdem to load the data and execute the layout or script.  It is also possible to set and read variables in DIAdem from LabVIEW and execute individual commands in DIAdem from LabVIEW, and there is an old set of "LabVIEW DIAdem Connectivity VIs" that still works with all recent LabVIEW versions and wraps all this functionality up nicely.

 

Still, I doubt any of this will really give you what you want.  At some point, you have to know what DIAdem commands you want to execute, and that ends up being pretty similar to scripting, only with a worse debugging experience.  I recommend biting the bullet and learning how to automate DIAdem with VBScript or python and then running that script from LabVIEW.  DIAdem has a Script Recorder feature similar to the Macro Recorder in Excel, so that if you can successfully perform a set of activities interactively in DIAdem with the mouse, you can record the corresponding code instead of having to program it from scratch.

 

Brad Turpin

Principal Technical Support Engineer

NI 

0 Kudos
Message 2 of 3
(2,794 Views)

Hi Brad,

 

Thanks for the response. My assumption was, we can automate DIAdem just like other applications using activex(excel, CANOe etc), ie each method and class will provide another reference out and we can connect the property/invoke nodes to access objects. But, I understand that is not the case with DIAdem.

Yes, I'm learning DIAdem commands and vbs scripting for the automation purpose.

Certified LabVIEW Architect
System Test Architect
Electrical Engineering
JLR
0 Kudos
Message 3 of 3
(2,753 Views)