DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

List of Script command syntax changes from Diadem 11 to 12?

 

Hi,

 

Found out a difference in command syntax between 2011 and 2012.

 

Syntax in 2012 version

Call ChnDurInjuryCalc(X, Y, X1, Y1, X2, Y2, DurationType, R, R, R, R, R, R, R, R, CalcSteps, CalcDuration)

 Syntax in 2011 version

Call ChnDurInjuryCalc(X, Y, X1, Y1, X2, Y2, DurationType, E, E, E, E, E, E, E, E)

 

Is there any document listing out every such changes?

 

Regards,

Fazil

0 Kudos
Message 1 of 9
(4,944 Views)

Hello Fazil,

 

Every new release of DIAdem incluses "Release Notes" in the help system, that should cover all changes made in the software.

 

Please check in the Help system here (this is for DIAdem 2015, but it's been in every DIAdem version for a while now):

 

Help Release Notes.png

 

Let me know if that change is not listed in the DIAdem 2012 Help System, and I will check on this further ...

 

     Otmar

Otmar D. Foehner
0 Kudos
Message 2 of 9
(4,922 Views)

And just for completeness, here is what changed in that particular command from 2011 to 2012:

 

All E  channels were turned into R channels, only for documentation purposes. E -> R is the translation from German "Ergebnis" to English "Result" - that change has no effect on the function of this command, it's just a spelling correction in the help system.

 

The two additional parameters: CalcSteps and CalcDuration were added at customer request to allow for additional user defined parameters in this function. These parameters are only required if the radio button (or parameter in the command) is set to "user defined" in the dialog box, else they will be ignored (and greyed out in the dialog).

 

CrashDuration.png

 

I hope this is helpful, feel free to ask if you have any additional questions,

 

     Otmar

 

Otmar D. Foehner
0 Kudos
Message 3 of 9
(4,920 Views)

 

Hi,

 

Sorry the syntax I put was taken from internet. Pls refer the below screenshots taken from the software installed in PC.

 

2011

2011

  

2012

2012

 

In 2011 there is only 7 result channel whereas in 2012 version there are 8.

0 Kudos
Message 4 of 9
(4,894 Views)

In addition to the Release Notes there is also a list of new commands in the DIAdem Help, but this will not list modified commands.

For DIAdem 12 you can found it here:

http://zone.ni.com/reference/en-XX/help/370858M-01/diadem/readme_news/

 

But this list will not include modified commands.

 

Winfried

0 Kudos
Message 5 of 9
(4,878 Views)

 

Hi,

 

I am working on shifting, an already developing script, from 2011 to 2012. During this I came across an error due to the above change in syntax.

Hence I was thinking if there is list of modified syntaxes it will help me resolve issues easily.

 

Regards.

0 Kudos
Message 6 of 9
(4,870 Views)

Hello Faz,

 

I missed the additional result channel that was added in 2012 for this function at customer request, to separate out the positive and negative load durations into separate positive and negative duration channels (that's what I get for answering forum posts at 10:30 pm when my concentration wanes).

 

Typically, changes are documented in the Release Notes (I don't have access to installed DIAdem 2011 or DIAdem 2012 versions on this PC). We try to limit changes to commands as much as possible to avoid the issue you just ran into, but in this case it was unavoidable in order to add additional functionality.

 

In my experience Scripts typically transfer without too many issues between different DIAdem versions - unless we make major architectural changes, which are announced ahead of time and usually phased in over multiple DIAdem releases (moving to object-oriented programming on major DIAdem components in the past would be an example).

 

If you run a 2011 Script in 2012 and it doesn't return errors such as in this case, it will not have any issues and you won't have to hunt down individual commands to check that they work correctly. The Script will either run without changes or throw an error message if additiponal parameters have been added to a command. The error message should point you to the place where corrections are needed.

 

I hope that clarifies some of the answers I posted before.

 

Best regards,

  

     Otmar

Otmar D. Foehner
0 Kudos
Message 7 of 9
(4,858 Views)

 

Hi,

 

So normally the existing comands are not modifed from version to version so that the existing scripts can run without hindrances. 

But this particular one was an odd case where you modifed existing command syntax and doesnt need to be expected for more similar instances. Hope we have the same understanding.

 

[Just for clarity: Is there any differnce in the positive and negetive duration channels (only x axis)?]

 

Thanks for all the replies.

 

Regards,

Fazil Shah.

0 Kudos
Message 8 of 9
(4,851 Views)

Hello Fazil,

 

Yes, we have the same understanding with regards to Script and command changes.

 

I am not sure about the last question you had (difference between positive and negative channels) and forwarded that question to our software R&D team, I am hoping to hear back from them to clarify.

 

Best regards,

 

     Otmar

Otmar D. Foehner
0 Kudos
Message 9 of 9
(4,817 Views)