LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
McQuillan

Replace Malleable VI with Static VI Instance

Status: New

I really like using VIMs; however, I have been having a lot of issues when saving for previous versions / VIM based bugs.

 

What I would like is a right-click (under the advanced tag) to convert VIM to VI copy (which you could then save) and a 'tools>Advanced>replace all VIM instances in the project' tool.

 

I attempted to make this myself, but it turns out the 'Replace' scripting method doesn't work with VIMs and I don't really want to go down the route of deleting, placing, rewiring.

 

So either, could I suggest creating the tool, or providing the scripting functions for us to create the tool.

 

NB: This is the proof of concept I was trying out to change VIMs to VIs:

Order of operation:

  1. Get a reference to SubVIs and filter for VIMs
  2. Create a copy of the VIM and save as a VI
  3. Replace VIM with new VI

Converting VIM to VI.png

 

3 Comments
crossrulz
Knight of NI

I view this as a similar thing to "Open Front Panel" on an Express VI.  But I am having trouble coming up with another reason other than the Save For Previous.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
McQuillan
Active Participant

I don't know if this has been fixed now (I hope so), but there was/is a bug when building VIPs (using vipm) when your VIM was in a class. There also seems to be bugs when sharing the source code of the VIM not finding the correct instance - I can't remember the exact cause, but it meant I had to manually convert the vim to a vi (hence attempting the scripting tool).

McQuillan
Active Participant

I ran into an issue I have had in the past, but it popped up again. I think I've only had this issue with 'Is Value Changed.vim'. I'm not sure what is causing this to happen, however, this is one of the reasons I would like to be able to convert from vim to vi.

Is Value Changed.vim not foundIs Value Changed.vim not found