LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Update the C# dll in LabView

Hi.,

 i created C# dll with "ADD"  Function. in that dll contains only that function. for that function i am passing two variables.

 "public int Add(int A, int B) "

 

in the Labview, i use the .NET constructor(Drag and drop the node and in the dialog box i browse the .net dll) and Invoke node to access the

 

method it's working fine..

 

Now the Problem, After build the dll i added some more function in the c# dll.

"public int Sub(int A, int B) "

In the labview i can't see the new method in the "Invoke Node". so in the ".NET Constructor" dialog box i browsed the same dll but i got the Message "The version of assembly you requested was automatically  promoted to a newer version by the .net runtime engine"

the newer version of the dll not updating. How to get the newly added function.

 
Please help to fix this problem
0 Kudos
Message 1 of 11
(6,447 Views)

Have you tried to browse again your updated dll in the "Select a constructor.." dialog box?

 

Have you tried to call the new function of your dll in another .NET langage (C# for example)?

 

Gilles

Regards,

Gilles K.
Electronic System Engineer, Renault F1
0 Kudos
Message 2 of 11
(6,436 Views)

I tried in the labview but is't says the message "The version of assembly you requested was automatically  promoted to a newer version by the .net runtime engine"

 

 

i tried in the other c# project in the same dll it's working. i tried to decompile the dll and i see the code., the new function is there.

0 Kudos
Message 3 of 11
(6,427 Views)
Image.jpg
0 Kudos
Message 4 of 11
(6,424 Views)

Try to delete the constructor, save the VI, add a new constructor and select your dll again.

 

It's a workaround proposed here : http://forums.ni.com/ni/board/message?board.id=170&thread.id=229618

Regards,

Gilles K.
Electronic System Engineer, Renault F1
0 Kudos
Message 5 of 11
(6,422 Views)

Yes. i tried that one. not working..

 

i closed the whole labview and create the new Vi  that time also the same problem.

 

Accidentally my system restarted after i created new VI and browse the dll it's working.... so i add again new function to the dll and checked same issue is coming.... i am getting same Message...

 

i am not able to get what is the mistake!!!!

0 Kudos
Message 6 of 11
(6,408 Views)

Do you tried to increase the version number of your assembly (LVCall 1.0.0.1 for example)?

 

Regards,

Gilles K.
Electronic System Engineer, Renault F1
0 Kudos
Message 7 of 11
(6,390 Views)

yes. i tried that one also.

 

every time building the C# dll i am increasing the Version no... but no luck.....

0 Kudos
Message 8 of 11
(6,382 Views)

Anyone ever figure this out?

 

I've got Labview code that is calling a DLL and that DLL I update frequently.  Very slow and frustrating process.

0 Kudos
Message 9 of 11
(5,389 Views)

Hi I has the same problem with my C# DLL.

(I'm lucky I don't have to update it frequently).

If I remember correctly in order to use the new defined functions I had to

1) Remove constructor nodes and save the VI

2) Exit labview

3) Restart Labview and replace a new constructor node.

 

Regards,

Marco

 

 

 

0 Kudos
Message 10 of 11
(5,372 Views)