From 11:00 PM CST Friday, May 9th - 3:00 PM CST Saturday, May 10th, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From 11:00 PM CST Friday, May 9th - 3:00 PM CST Saturday, May 10th, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
‎06-22-2010 09:02 PM
Similar to Antoine CHÂLONS' question on renaming a project item...
Does any know if there is a way to invoke the Replace With... method in a LabVIEW Project?
Antoine's topic's solution only works if the original file exists.
The reason for this is that I want to invoke this method after a SCC transaction which removes the file from disk.
I want to then update the LabVIEW Project to maintain correct linking.
By the way, this seems to be a pain if the item is owned by a Library (but I have to investigate further) - in case anyones got any comments on that too?
Cheers
-JG
‎06-23-2010 09:16 AM
Nope. Most of the project-level popup items (meaning menu items that can appear on any project item, as opposed to those that are specific to particular item types) do not have scripting support.
‎06-23-2010 09:23 AM
Bugger! But cheers for the reply AQ.
One work around I have found has been to copy the new file to the old location then call Antoine's replace method.
This means the file replaces itself so there is no problem there, then I just delete the file I copied.
Messy, but it seems to work.
‎06-23-2010 09:28 AM
Right, time for a feature request then!
Let's call it "support for all the project-level popup items (meaning menu items that can appear on any project item, AND to those that are specific to particular item types) in the LabVIEW API"
AQ, do you think the LabVIEW Idea Exchange is the best place to request feature regarding the LabVIEW API?
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
‎06-23-2010 09:30 AM
Hey you are reading my mind... I am adding it as we speak!
‎06-23-2010 09:31 AM
do you think the LabVIEW Idea Exchange is the best place to request feature regarding the LabVIEW API?
I would say that the Idea Exchange is the best place to make any LabVIEW feature request, as the request has a chance to gain a lot of momentum in the LV community.
‎06-23-2010 09:32 AM
Great job!
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
‎06-23-2010 09:37 AM
Do you want to do a combined one?
I will pick your brain here.
Are you just after the "Replace With..." method?
Or are you thinking a little larger?
I am thinking requesting that all LabVIEW Project methods be made available.
If you can do it with a Right Click Popup then you should be able to script it?
Thoughts?
‎06-23-2010 09:38 AM
Ok.
So I shall stop using the "Product Suggestion Center" when I place a LabVIEW related feature request/suggestion, right?
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
‎06-23-2010 09:42 AM
Yes, if you think other users care about the suggestion as well, and are willing to make some noise about it on the Idea Exchange