DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

use cmax to update chn prop in Diadem 9.1

Hi Steven,

 

DIAdem 9.0 contained a complete reworking of the data management in DIAdem, coinciding with the appearance of the Data Portal and the NAVIGATOR panel and the disappearance of the DIAdem 8 era DATA panel.  You are correct that it makes no sense for the CMax() = Value assignment to change the MINIMUM channel property value, or vice versa.  But in all modern versions of DIAdem (9.0, 9.1, 10.0, 10.1, 10.2, 11.0, ...) the MINIMUM and MAXIMUM properties, along with many others, are designed to be read-only.  DIAdem uses these properties to calculate the automatic Y axis scaling in VIEW and REPORT, along with the NOVALUEKEY and MONOTONY properties.  The maximum and minimum values of a channel should not really be user-selectable, they should ideally reflect the correct maximum and minimum values of the channel.  If you are programmatically changing the channel values and wish the MINIMUM and MAXIMUM properties to update to reflect these data value changes, then you sould use the ChnCharacter() or ChnCharacterAll() commands I mentioned in my last post.  These commands were also the expected method to use in DIAdem 8.x to update these properties-- nothing has changed there.

 

If you really need to override the "correct" MINIMUM and MAXIMUM property values and replace them with your own custom values, then you can actually still use the CMin() = Value and CMax() = Value assignments in modern versions of DIAdem.  I'm struggling to understand why you want to do this, but this approach does work for me in DIAdem 10.1, 10.2, and 11.0 -- the 3 DIAdem versions I have handy.  Probably the bug in DIAdem 9.1 you're running into was already fixed in DIAdem 10.0.  Perhaps it's already fixed in one of the DIAdem 9.1 service packs-- have you tried to install any of the DIAdem 9.1 service packs?

 

Would you please explain why you want to set the MINIMUM and MAXIMUM properties to user-selectable values, instead of telling DIAdem to recalculate them to the actual values?  Are you wanting the autoscaling in VIEW and REPORT to use a pre-set constant Y axis range?  Or are you wanting to export the data to a TDM or DAT file with these "different" property values, for some reason?

 

Brad Turpin
DIAdem Product Support Engineer
National Instruments

0 Kudos
Message 11 of 13
(1,438 Views)

Hello Brad,

 

The reason is we'd like set chn maximum or minimum to the value before dummy rebound in crash analysis. It would be helpful if we could use it for this special purpose. We know there are ways around it eg write in chnattrval or chnattrtxt or create a custom variable, but it will then requrie alter our software.

 

We will update DIAdem to 9 SP1 once the installation CD reappears again.

 

 

Thanks for your help, have a nice day

 

 

 

Steven

 

 

 

0 Kudos
Message 12 of 13
(1,432 Views)

H Steven,

 

Thanks for humoring me with an explanation of why you need to continue assigning maximum and minimum properties with the CMax() and CMin() functions.  You don't have to wait for a CD to appear, though, to install the service pack, and the latest one available for DIAdem 9.10 is SP2c.  I hope these 2 steps remove the bug you reported that I verified is no longer in DIAdem versions 10.1, 10.2, 11.0.

 

(1) DIAdem 9.10 SP2 (Full Installer, ca. 70 MB)

http://joule.ni.com/nidu/cds/view/p/id/554/lang/en

 

(2) DIAdem 9.10 SP2c (Self-Extracting ZIP file)

http://joule.ni.com/nidu/cds/view/p/id/557/lang/en

 

Brad Turpin

DIAdem Product Support Engineer
National Instruments

0 Kudos
Message 13 of 13
(1,415 Views)