10-03-2008 08:35 AM
I have a command that works in 10.2 but not 11.0. If I change the command to work in 11.0 it no longer works in 10.2....
dim index
index = 10
dim nizame
'nizame = ChnPropValGet("[" & index &"]/Names"",""description") 'This line works in 10.2 but not in 11.0
'nizame = Data.Root.ChannelGroups(index).Channels("Names").Properties("description").Value 'This line works in 11.0 but not in 10.2.
msgbox nizame
Is there a command that will work in both versions and will continue to work in all versions going forward. I thought if I wrote scripts in older versions of Diadem they would play well with newer versions as well.
I have attached the zipped TDMS and TDMS_Index files
10-03-2008 10:14 AM
Hello bbanacki,
The script you posted has two typos in the code you created for DIAdem 10.2. If I run your code, I get a syntax error. If you replace it with this :
nizame = ChnPropValGet("[" & index &"]/Names","description")
it will work. The second line cannot work in DIAdem 10.2 because it uses the API introduced with DIAdem 11. But the code you developed with 10.2 will continue to work in future versions of DIAdem.
Andreas
10-03-2008 11:31 AM