DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Is ChDx still a valid function in Diadem 2018?

I have an application that calls vbs scripts and the script uses this function ChDx in it. I noticed that this function does not change color in Diadem (like the other functions do), and I am having errors with this in the script when I reach this line. The error is " Illegal access to data matrix 'CHDX(0,9)' " . 

 

I am wondering if that function is still usable in my version of DIAdem (2018) and I need to rewrite the script or use a older version of DIAdem?

0 Kudos
Message 1 of 2
(1,149 Views)

Hi Lulogi,

 

Yes, CHDX can still be used – also in the latest version DIAdem 2021 – but it is marked as one of the obsolete variables and functions. Please have also a look at the “Searching for Obsolete Commands and Variables”.

Very old commands and variables, which have been replaced by new technologies, are marked as obsolete in DIAdem. This means that these commands and variables are no longer supported in one of the upcoming DIAdem versions. This example opens a dialog box in which you can select the scripts you want to check. DIAdem generates a logfile with respective notes for these scripts.

 

Since about 2008 we have a faster way to access the values in the Dataportal – the Data-API.

Here is an example:

 

Old access:

 

CHDX(index, “[1]/Speed”) = value

 

New access:

Set oMySpeedChn = Data.Root.ChannelGroups(1).Channels("Speed")

oMySpeedChn(index) = value

 

The advantage is that you work with meaningful variable names and especially it is much faster.

So your goal should be to use the new API in DIAdem SCRIPT

 

Greetings

Walter

0 Kudos
Message 2 of 2
(1,116 Views)