OnlineVariable.SetMemCfg & WriteBack
Ladies & Gentlemen,
to speed up value updating in SICAM230 I'm trying to implement shared memory access to SICAM230.
OnlineVariable.SetMemCfg uses as it's first argument a name for the shared memory area:
VARIANT_BOOL SetMemCfg(
BSTR szMemName,
SAFEARRAY(BSTR)* szPvNames,
SAFEARRAY(long)* lOffsets,
VARIANT_BOOL bAsRawValue);
How does this name refer to the name of the mapping object needed for the C function? Using just the same name does not work.
sharedMemoryMutex = CreateMutex(NULL,
FALSE,
szName); // name of mapping object
What is the meaning of the SetMemCfg return value? Currently I'm obtaining "false".
Any ideas and hints (and sample source codes ;-) are urgently welcome!
Best regards,
Christian.
This is a migrated post! Originally posted on 25.10.2012 by user glomb. Please be aware that information can be outdated.