DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

diadem,bode plot

Hi, Is it possible to create script for bode plot & order analysis, in diadem? If possible then can anybody please send me some examples regarding that.

 

Thanks Nidhi

0 Kudos
Message 1 of 24
(6,228 Views)

Hi Nidhi,

 

Look in the ANALYSIS panel of DIAdem in the "Signal Analysis" palette of built-in DIAdem functions, you will see both "FFT (Two Time Signals)" which will give you the X and Y channels for a Bode plot as well as "Order Analysis (Time Domain)" and "Order Analysis (Frequency Domain)".  These functions might be greyed-out in your particular version of DIAdem.  The "FFT (Two Time Signals)" is only available in DIAdem Advanced, and the Order Analysis functions are only available in DIAdem Professional.

 

Once you have created the X and Y (and perhaps Z) channels needed for the Bode plot or order analysis plots, the creation and configuring of the graphs will occur in the REPORT panel of DIAdem.

 

Brad Turpin
DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 2 of 24
(6,205 Views)

Hi,

 

 Thanks for your help,but if we want to have these functionality with DIAdem base adition then we need to write the script for that, or we can communicate with labview,i m tring to write script to communicate with labview btu it's always giving me error that"vi is not executable" what to do for that,instead my vi's are running in labview.

 

Thanks

Nidhi 

0 Kudos
Message 3 of 24
(6,197 Views)

Hi,

 

one more question i want to ask, is it possible in diadem that user can select data & time & it will automatically load only data of that duration from the file.

 

Thanks

Nidhi 

0 Kudos
Message 4 of 24
(6,190 Views)

Hi Nidhi,

 

The VBScript command to run the "FFT (Two Time Signals)" is "ChnFFT2()".  The VBScript commands to run the "Order Analysis (Time Domain)" is "ChnOrdATCalc()" and the VBScript command to run the "Order Analysis (Frequency Domain)" is ""ChnOrdAFCalc".  All three commands are described in detail in the DIAdem Help system.

 

I noticed yesterday when I was looking up for you which DIAdem versions these functions could be run interactively in, that the ability to run LabVIEW VIs from DIAdem was listed as a DIAdem Advanced or Professional feature (not Base).  This was news to me, and I've never tried to use the "LVRuntime()" object in a DIAdem base version before.  Are you trying to call a VI from DIAdem, call DIAdem from a VI, or both?

 

Brad Turpin

DIAdem Product Support Engineer
National Instruments

0 Kudos
Message 5 of 24
(6,178 Views)

Hi,

 

Thanks for your reply,actually i need to use diadem base adition for my project,so i can use these commands(given by you) in that.

one more thing is can i use "DlgOpen("DlgChnFFT2") " in diadem base adition.

 

Thanks

Nidhi 

0 Kudos
Message 6 of 24
(6,162 Views)

Hi,

 

i have one more doubt,see i have data files having 1 hours data & i want user to select the start & end time for loading the files(it will load data during that period from 1 hours data) is ti possible?

 

Thanks 

0 Kudos
Message 7 of 24
(6,159 Views)

Hi Nidhi,

 

I really don't know if the DlgOpen() command will work in DIAdem-Base.  If so, that would be an excellent and simple way to enable your user to input the relevant parameters.  If not, then you'll need to re-create a similar dialog with the SUDialog Editor, which is only active in DIAdem Advanced and Professional.  Once you have the finished *.SUD file, you can call and use that SUDialog in a VBScript running on DIAdem Base.

 

It is definitely possible to programmatically import and merge multiple data files that fall in a user-selected time window.  Loading multiple files is pretty straighforward once you know the file paths of the files that fall in the user-selected time window.  It is also possible, though slightly more work, to trim unwanted rows (after loading) from the top of the first file and/or from the bottom of the last file, if those rows do not fall in the user-selected time window.  Merging the remaining data located in multiple groups in the Data Portal into one consolidated group is also work, but the good news is that DIAdem ships an example that shows how to do this, and there are also example programs posted on the NI support site that you can use.

 

The real wildcard in this whole proposition is how the user will know what time window to select, and how the VBScript will know what time range a particular data file falls in.  Will you need to promt the user with an available range of possible time windows, or will the user be able to pick a time window out of the air and type it into a dialog field?  Will the time range for each data file be embedded as part of the file name, or will it be stored in a property inside the file?  What data file format are we talking about here?

 

Brad Turpin

DIAdem Product Support Engineer
National Instruments

0 Kudos
Message 8 of 24
(6,144 Views)

Hi,

 

Brad, thanx a lot for the information,format of the file is TDM, i m taking 1 hours data at a time & wants user to select the time from 1 hour time window,i want user to prompt the dialog box & select the time. and then want to load only that duration data to the portal.

 

Thanks again

Nidhi 

0 Kudos
Message 9 of 24
(6,129 Views)

Hi Nidhi,

 

Do you have a DIAdem Advanced or Professional you can create the application with, or do you only have access to a DIAdem Base.  If all you have is DIAdem Base, then I don't see how you're going to create a pop-up a dialog to enable the user to select the desired time window.  If you do have DIAdem Base, please try the DlgOpen and let me know if it works (I'm curious).  If you have DIAdem Advanced or Professional then we can proceed with the SUDialog creation.

 

Brad Turpin
DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 10 of 24
(6,119 Views)