You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to attach a dataset to a RCB:
std::string dataset_ref = "simpleIOGenericIO/LLN0$" + "CS_sub" + std::to_string(sub_id);
// std::string dataset_ref = "@CSdatasetsub" + std::to_string(sub_id);
I try to create dataset dynamically:
IedConnection_createDataSet(iec61850_client_.ctx, &error, const_cast<char*>(dataset_ref.c_str()), dataset_entry);
and the error show OK.
but when I try to read the dataset with:
if (error == IED_ERROR_OK) {
ClientDataSet clientDataSet =
IedConnection_readDataSetValues(iec61850_client_.ctx, &error, const_cast<char*>(dataset_ref.c_str()), NULL);
if (error == IED_ERROR_OK) {
ClientDataSet_destroy(clientDataSet);
} else {
printf("Failed to read data set (error code: %d)\n", error);
}
}
the error shows 22, no the created dataset. So should I make any configurations in server side?
the server I use is the examples/server_example_config_file
I try to attach a dataset to a RCB:
std::string dataset_ref = "simpleIOGenericIO/LLN0$" + "CS_sub" + std::to_string(sub_id);
// std::string dataset_ref = "@CSdatasetsub" + std::to_string(sub_id);
but the setRCBValues always return error = 32 which means invalid dataset reference.
please help give some hints why the error happens.
The text was updated successfully, but these errors were encountered: