05-25-2016 07:48 AM - edited 05-25-2016 07:58 AM
hello all
I would like to ask you for help again about the handling of class commands through VIs
I work with an OLE object (activex like) embedded in an exe. (out-of-com process) for this, I'm using the refnum automation that is working fine.
The first step is to register this object in regserver32, then select a path by right click in my refnum, where the .exe is stored
Problem:
depending of the bench, this object is not at the same path. everytime I deploy my program I have to change the path pointed by the refnum, else it doesn't work
To solve this I tryed to facilitate the changing of path, by creating 2 refnums (refnum A and refnum B), pointing at the same OCX but with different incorporated paths, and put them in higher levels of calling VI that implies to pass the refnum as a command
Involved problem n°1:
class conflict. the refnum automation command that I pass doesn't support the refnum A and B the same time wherehas the only thing that is changing is the path inside.
to solve this again, I changed my refnum commands into standard automation object
Involved problem n°2:
anything is working, the refnum is not called
can you help me to solve this? you will find below a picture of my calling VI hierarchy + a zip file containing the .VI (labview 2015)
06-15-2016 03:04 AM
Bonjour Pierre,
I am not sure that I understood well the issue, but is it possible to use 2 commands for each refnum instead of one?
Regards,