02-06-2016 04:56 AM - edited 02-06-2016 04:59 AM
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
02-07-2016 10:11 PM
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):
Let me know if that change is not listed in the DIAdem 2012 Help System, and I will check on this further ...
Otmar
02-07-2016 10:46 PM
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).
I hope this is helpful, feel free to ask if you have any additional questions,
Otmar
02-08-2016 09:40 PM - edited 02-08-2016 09:48 PM
Hi,
Sorry the syntax I put was taken from internet. Pls refer the below screenshots taken from the software installed in PC.
2011
2012
In 2011 there is only 7 result channel whereas in 2012 version there are 8.
02-09-2016 01:57 AM
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
02-09-2016 07:25 AM
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.
02-09-2016 11:37 PM
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
02-10-2016 01:42 AM - edited 02-10-2016 01:45 AM
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.
02-12-2016 12:38 AM
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