Dear all,
I need some help from those who have experience in automation. Perhaps,
the problem does not really belong to Labview, rather C++, but...
So. I have a .dll acts an automation server, the Labview is the client.
The .dll performs operation on a specific hw. Everything works well if
only one vi is runnning. The vi calls the activex methods as usual.
The problem is the case when more than one vi are running
simultaneously. They use the same .dll, so far no problem, but they use
the same/shared hw resource through it. To protect the access and what
could resolve this case is the sychronisation. e.g.: semaphores. The
solutions would be simple if I wouldn't have at least a hundred methods
in the .dll. Those shouldn't be run parallel, consequently every one of
them should be protected by a common semaphore.
Modifying on both the Labview and C++ side seem to be "simple", but not
too elegant: to each method I should add semaphore operations or ...
Is there a common entry in the .dll before the called activex methods
start to run or ...
Well, have got any idea?
Many thanks advance