LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW 8.5 et objets.NET

Solved!
Go to solution

Bonjour,

 

Je développe une application sous version 8.5 qui permet de communiquer avec un automate Unitronics. Le fabricant met à disposition un fichier assembly.net. Le problème est que je n'ai pas accés à toutes les classes des objets de ce fichier ("Cette classe ne contient pas de constructeurs publics" me dit LabVIEW). Or aprés renseignements auprès du fabricant, la classe dont j'ai besoin et qui n'est pas reconnue par LabVIEW est déclarée en "Public static". Existe-t-il un moyen de résoudre mon problème?

 

Merci d'avance

 

0 Kudos
Message 1 of 9
(3,279 Views)

Please try posting in english here

 


I am developing an application in version 8.5 that can communicate with a controller Unitronics. The manufacturer offers a file assembly.net. The problem is that I do not have access to all classes of objects of this file ( "This class contains no public constructors" said LabVIEW). But after information from the manufacturer, the class I need and that is not recognized by LabVIEW is declared "public static". Is there a way to solve my problem?

 

0 Kudos
Message 2 of 9
(3,268 Views)
Post in the french board for better response
0 Kudos
Message 3 of 9
(3,267 Views)

Sorry, I didn't know that the forum was only in english.

0 Kudos
Message 4 of 9
(3,239 Views)

SonnyB wrote:

Sorry, I didn't know that the forum was only in english.


No no dont go away. I meant this particular board is in english. As mentioned above you have an exclusive french board. Keep visiting........

0 Kudos
Message 5 of 9
(3,224 Views)

It's OK. I go to the french board but I recieve no answer for my problem. Have you got some propsition for my problem?

 

Thank you very much

0 Kudos
Message 6 of 9
(3,219 Views)

Bonjour,

 

Je vous suggère de jetter un oeil à cette KB : How LabVIEW Locates .NET Assemblies qui explique comment LabVIEW localise les assembly.net.

 

Cordialement,

 

Steve M.
0 Kudos
Message 7 of 9
(3,207 Views)
Solution
Accepted by SonnyB
I'll answer in English, and hope that it can be understood, or at least translated for you. According to the translation, you are dealing with a static class. In this case, you do not create an instance of the class using the Constructor node. Static classes are not instantiated through a constructor. Instead, you directly call the method you want. So, you plop down a .NET invoke node, and then select the method directly from the class.
0 Kudos
Message 8 of 9
(3,201 Views)
Thank you smercurio_fc, I can communicate with the automat now.
0 Kudos
Message 9 of 9
(3,186 Views)