LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reload external files ?

I have a problem that's sort of a big pain in the a** :

I'm developing in VisualStudio .NET DLL's that then get used in LabView. 

Whenever i re-compile the DLL in VisualStudio (cause i did some minor changes) i have to:

  1. close LabView entirely down
  2. re-open LabView
  3. reload the VI where the DLL is used
  4. delete the .NET Constructor-Node that references that DLL
  5. re-add the .NET Constructor-Node to reference the new DLL
  6. also delete & re-add all invoked methods & properties i connected.
  7. re-connect that .NET Node to the other elements

I have to do this because LV is caching like hell and there's literally no way to tell if it did load the new version until i do this burdensome procedure everytime. I've burned so much time already on this over the last week and this is slowing me down massivly.

 

Is there some sort of "RELOAD/REFRESH all external dependencies" button (sort of a Webbrowser "F5 key" just for LV) ?

0 Kudos
Message 1 of 6
(2,748 Views)

The answer is almost surely "No".  If you think that this is something that many LabVIEW Developers would like, submit it as a proposal on the Forum "Idea Exchange", which is designed to let LabVIEW Users tell NI what new features they need.

 

Bob Schor

0 Kudos
Message 2 of 6
(2,730 Views)

Hi

The same issue and so far, no clean solution. 

Imagine that for every single modification or debugging, you must do it again. 😞

 

 

Thanks for your consideration

 

0 Kudos
Message 3 of 6
(1,635 Views)

There is this,

ldn.png

 

But I doubt that it would cause a reload.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 4 of 6
(1,620 Views)

@ESiTo wrote:

Hi

The same issue and so far, no clean solution. 

Imagine that for every single modification or debugging, you must do it again. 😞

 

 

Thanks for your consideration

 


Better to use a .NET code to debug the DLL instead of using LV to debug the DLL.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 5 of 6
(1,615 Views)

I know it's too late for the original post 3+ years ago... but I have found that if you create a new DLL with the same version number then you have all of these problems, but if you have a new version number you only have a subset of these problems:

 

You do still need to do this (swapping the old DLL for the new one in between numbers 1 and 2):

  1. close LabView entirely down
  2. re-open LabView
  3. reload the VI where the DLL is used

But you do NOT need to do this UNLESS you are using .NET generics (such as Lists<>):

4. delete the .NET Constructor-Node that references that DLL

5. re-add the .NET Constructor-Node to reference the new DLL

6. also delete & re-add all invoked methods & properties i connected.

7. re-connect that .NET Node to the other elements

 

Even if you are using .NET generics then the only thing you need to do is number 6 and 7 on a few specific nodes that use said generic.

 

I'm not saying it's not a pain (it is) but it's not as severe by far if you just increment your version each time you build a new one.

Message 6 of 6
(1,597 Views)