From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Configure windows DCOM settings programmatically via LabVIEW?

Hello Everyone,

 

How to Configure windows DCOM settings programmatically via LabVIEW?

Like we can edit windows registry via LabVIEW, is there any VI or example to edit DCOM settings via LabVIEW?

 

Thanks.

0 Kudos
Message 1 of 4
(2,569 Views)

Do you really use DCOM on a machine somewhere far off? Than access right considerations over the network would be the main issue.

 

Local COM should be handled easily enough with Active-X nodes.

 

Open a reference and then you have access to all methods and properties.  (don't forget to close it if not needed anymore)

 

Gabi 

7.1 -- 2013
CLA
0 Kudos
Message 2 of 4
(2,564 Views)

Hi Gabi,

 

Can you please any VI refrence/example for doing this.

0 Kudos
Message 3 of 4
(2,562 Views)

For a beginning try this:

Open a new VI, goto diagram.

 

Place "Automation Open"  from connectivity>Active-X on the desktop an create a constant on it's reference input. 

 

Then right click on that constant and find  "select Active x class". You can browse for any registered Active-X components or enter a path to a not registered one.

 

The output of the open is a refnum that you can wire to the other parts of the Active-X-Connectivity.

 

Is that OK ?

 

Regards Gabi 

7.1 -- 2013
CLA
0 Kudos
Message 4 of 4
(2,557 Views)