DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

diadem,bode plot

Hi,

 

Right now i have DIAdem advanced version,but i need to work on base edition that's why i m asking whether it is possible or not,ok after having base edition i will let u know.

 

Thanks

Nidhi  

0 Kudos
Message 11 of 24
(2,213 Views)

Hi Nidhi,

 

Good, having DIAdem Advanced means you can get started with creating the SUDialog (which WILL then work in DIAdem Base).  Also, having TDM files means that you can read out the start and stop times of the data files with the "DataFileHeader" object, assuming you know the location (first channel) or the name of the time channel in the file, or assuming that all the channels are waveforms with the same time information in them.

 

What would you like the SUDialog to look like, with which the user will select their desired time range?  Do you want to provide a drop list of all the available 1 hour blocks for them to select one (or more) of them?  Or do you want to provide a calendar control or an edit box where they can type in the start and stop times?  What does the user know?

 

Brad Turpin

DIAdem Product Support Engineer
Nationa Instruments

0 Kudos
Message 12 of 24
(2,204 Views)

Hi Brad,

 

I would like to use celender control with start & end time in that so that user can select any time within that duration to display tha values during that time.

 

Thanks

Nidhi 

0 Kudos
Message 13 of 24
(2,181 Views)

Hi Brad,

 

One more thing is i have used "ChnOrdAFCalc" for order analysis, but i want user to enter order but in that we r having one variable "OrdAFMaxOrder" i tried by this but it's giving same outputs for 1 and 10 so how would we know the difference whether it's st order o/p or 10th order?

 

Thanks

Nidhi 

0 Kudos
Message 14 of 24
(2,180 Views)

Hi Nidhi,

 

I'd recommend that you use the Microsoft calendar ActiveX object in a SUDialog ActiveX container control.  Note that you have to insert a ".X." in the calling syntax of the ActiveX methods and properties (directly after the control name and before the method or property name).

 

If you already have a list of file paths and you just want to check if they lie in the selected time range, then you can use the DataFileHeader object (available in DIAdem 10.1 and later), as I mentioned previously.  If all your data files are in Search Areas, though, you might find it easier to programmatically run a DataFinder query to find the list of data files that satisfy the selected time range.  This approach would have the advantage that you wouldn't have to already know a list of possible files to check, but it requires that there is a date/time property in the data files that you can rely on.

 

I don't really know enough about order analysis to answer your last question, but I will ask around and see if one of the developers will give you some advice, though they may ask you for more details on your starting point and what you want to achieve.

 

Brad Turpin
DIAdem Product Support Engineer
National Instruments

0 Kudos
Message 15 of 24
(2,173 Views)

Hi Brad,

 

I m still confused, i hav 1 file having data of 1 hours, & if i wants to have data of 15 min from that file then what should i do?

user will select 15 min from popup box, & then he should be able to see only 15 min data.

how we will do that & i have all the data as waveform channel.

 

Thanks

Nidhi 

0 Kudos
Message 16 of 24
(2,157 Views)

Hi Brad,

 

I have written one script for selecting the start & end time and view the data during that time,can u please give me feedback about it.

 

Thanks

Nidhi 

0 Kudos
Message 17 of 24
(2,153 Views)

Hi Nidhi,

 

I reworked your example and am posting it below.  This example assumes the first channel in the selected data file is a waveform and that all the other data channels in that file are also waveforms with exactly the same time information in them.  Note that the SUDialog shows you what the valid time range is and enforces those limits when you change focus away from the edited start or stop time value.  This example was created in DIAdem 10.2.

 

Ask if you have further questions,

Brad Turpin
DIAdem Product Support Engineer
National Instruments

0 Kudos
Message 18 of 24
(2,138 Views)

Hi Brad,

 

Thanks a lot for that modifications,but i m having waveform channel with step width "0.0584947213998023 "  but the line "StartIdx = 1+ (R11 - Offset)\Delta"   & "StopIdx  = 1+ (R12 - Offset)\Delta" is giving error "divison by zero". what to do for that?

 

Thanks

Nidhi 

0 Kudos
Message 19 of 24
(2,128 Views)

Hi Nidhi,

 

Try this instead.  If it also doesn't work, please send me a representative data file.

 

StopIdx  = 1+ CLng((R12 - Offset)/Delta)

 

Brad Turpin
DIAdem Product Support Engineer
National Instruments

0 Kudos
Message 20 of 24
(2,105 Views)