Simulink OPC Read: Invalid Item ID

Hi!
I'm trying to read data from an OPC server in Simulink using the OPC Read Block of the OPC Toolbox.
Connecting to the servers is working fine, but I'm struggling to add an server item.
The item ID is: CP_Lokal.XXXGroupName.DB14,REAL136
By using a semicolon, Simulink is executing an automatic line break (since you seperate items by suing a semicolon), so I end up having to items in my item list, which are invalid:
(i) CP_Lokal.XXXGroupName.DB14
(ii) REAL136
I've tried the same in Matlab, in order to check the item ID and there it's working
da = opcda('xxxxxxx', 'ArchestrA.DASSIDirect.3');
connect(da);
grp = addgroup(da, 'TRO');
set(grp, 'UpdateRate', 10);
itm = additem(grp, 'CP_Lokal.XXXGroupName.DB14,REAL136','double');
r = read(itm);
Does anyone have a clue, how to solve this problem?
Thanks in advance,
Stefan

Réponses (1)

Marco Poppe
Marco Poppe le 19 Déc 2018

0 votes

Struggling with the same problem. I want to create new Items without using the factory items. Do you handle the problem?

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by