When using DCF on a matrix element there seems to be no 'straight forward' way to determine what DCF interface corresponds with what matrix in or output nbr.
To execute a crosspoint set one has to specify the matrix in and output numbers.
But when resolving interfaces through DCF the only way I could determine the matching in/output id of the matrix command is to go through the labels assigned (but these are not mandatory and not guaranteed unique neither).
Is there any unambiguous way to link DCF interfaces to matrix i/o numbers ?
Although I haven't tested this, I think you can achieve it as follows.
Given a DCF interface ID go to the [Interface] table (General Parameters --> DataMiner Connectivity Framework --> Configure... --> [Interfaces] (table id = 65049)
On the header enable the column [Interface Dynamic Link] id 65095, the content of the column is a semicolon seperated string.
The first part indicates if it's an input (1) or output (2). Second part should be the i/o number of the table.
So from automation doing something like Convert.ToString(element.GetParameter(65095, <DCFInterfaceID>)).Split(';')[1] should give you the index of the source or destination table