Control refnum for a typedef

I have a typedef on a VI front panel and I would like to programmatically resave it to a new path/name.
with a VI I would open a reference to the VI and use the method "Save.Instrument" save a copy: true, and input a path.
What I have tried was to open a reference to the VI that uses the typedef, got a property node reference to it's panel,  then a property of array of control references - but generally controls can't be 'saved-as' but a typedef could - only there is no method for this.
Is there a way to do this? 
Lawrence M. David Jr.
Certified LabVIEW Architect
cell: 516.819.9711
http://www.aleconsultants.com
[email protected]
Solved!
Go to Solution.
Attachments:
saveCtlAs.JPG ‏63 KB

The control class has a property called TypedefVI which returns a reference to the VI of the typedef which you can then save. The only catch is that this method seems to be a scripting method, so you will need to install scripting first.
Another alternative, if you don't want to use scripting stuff, is to use the Callees property on the VI. This will return the names of all the typedefs it uses (which you can then use with the Open VI Reference primitive), but you should note that this doesn't give you a way of associating a specific control with a specific typedef.
Try to take over the world!

Similar Messages

  • Using control refnums in srtict typedef cluster

    I'm having a small problem using control refnums. I've not used them much so this could just be me doing something wrong!
    I'm building an application with a GUI which will need updating with data from within various subVIs and a couple of parallel loops. So, what I wanted to do was "build" a strict typedef cluster of references to the front panel objects I want to update, then I can pass this cluster to any subvi or structure which may need to update a FP object. So far so good...
    The problem:
    On my main GUI I have a strict typedef'd tab control, which I want to be able to reference. When I build my cluster of refnum's I duly create one for this typedef'd tab control. The problem is, if I modify the tab control in anyway, the cluster of refnum's breaks.
    Anyone tell me why this is happening?
    I've attached an example VI I created which shows the problem. Basically, open the typedef to the tab control and change anything, you'll see the cluster of refnums break... you can see a video of it here:  Video
    Any thoughts would be gratefully appreciated!
    Thanks
    Paul
    Attachments:
    refnums.zip ‏15 KB

    Hai,
    Just went through the post
    The strict typd controls automatically gets updated when the parent control changes.  But the refnums that are created out of the strictly typed controls needs manual updation coz there is no linkage between refnum that was created and the strict type control.
    You just create a strict type refnum that carries the properties of a strict type control and in no way a linkage exists between these two.  Hopefully if there is an option to link the refnum and control with "Update from typedef" will solve the problems
    With regards,
    JK
    (Certified LabVIEW Developer)
    Give Kudos for Good Answers, and Mark it a solution if your problem is solved.

  • Creating a type defined control refnum cluster?

    Hello -
    Is it possible to create control refnums for front panel objects and make a type defined cluster out of them?  I don't seem to be having any luck, but I could swear I've seen it done before.
    I am trying to pass a cluster of control references into sub-vis that will be called dynamically (using call by reference).  I want to create a standard cluster for use in all of the sub-vi's without having to go back and edit the cluster in every VI if anything is changed or added.
    If not, is there a better way?
    Thanks,
    Mike
    Solved!
    Go to Solution.

    Once I created that type def (look at my Mini Nugget to see how I did that) the type def was used as shown below to update control from a sub-VI.
    I had an app with hundereds of controls and indicators that needed updated.
    So I bundled refes for all of the control into logical groups.
    Then passed these refs to the sub-VI
    And the sub-VI used those named refs to do the updates.
    I hope that help,
    Ben
    Message Edited by Ben on 03-25-2009 10:41 AM
    Message Edited by Ben on 03-25-2009 10:43 AM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    FP.PNG ‏88 KB
    Bundle_refs.PNG ‏92 KB
    Pass_to_SubVI.PNG ‏82 KB

  • Listing existing properties and refnums for a control

    I'm relatively new to LabView programming and this is probably a basic question.  I need to list the existing properties and corresponding refnums for a custom control that was created before I started maintaining an existing application.  I would like the information in a form I could print if possible.  Thanks for any help.
    Mel
    Solved!
    Go to Solution.

    Hi Hootowl,
    ok, it's a cluster of several subitems. So you can use standard property nodes to get the properties of each sub-item programmatically.
    Otherwise you can list the properies of the (standard) sub-items as they are listed in the LabVIEW help...
    Or what else do you need? What's the goal of listing all the properties? (As said before, the cluster contains standard elements and all their properties are listed in the LV help...)
    Message Edited by GerdW on 07-09-2009 09:08 PM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome
    Attachments:
    Untitled 1.vi ‏27 KB

  • Is there a way to save data accessed through Control Refnum?

    Hi,
    I am controlling 4 instruments, each from its own VI. (LabVIEW 7.1)  I have built a seperate VI which calls all the instrument VIs as subVIs and displays all the readings.  I would like to save the data I am displaying in the main VI.  In the subVIs, I use loops to continuously read data, so I use Control Refnums in the main program to access and display the changing readings.  Is there a way for me to save the data from the Control Refnums in my main VI, preferably all in the same file?
    Thanks!
    Jessica

    Mike,
    Thanks for replying so quickly.  I've attached a screenshot of my block diagram. 
    I've worked on it a little more since my post, and now the data is being saved, but it doesn't make sense.  I am saving it as a .lvm file and opening it in Excel.  I'm new to LabVIEW, so I may simply be struggling with the syntax and logic.  From my experience coding, it makes sense to have the data stored inside the while loop.  However, in this program, it seems that the data doesn't start saving until after I've stopped the subVIs. 
    Attachments:
    screenshot of Control.doc ‏72 KB

  • LabVIEW 8.2 control refnum type descriptor missing

    In LabVIEW 7.1, the control refnum had a type descriptor property, I do not see it in LabVIEW 8.2.1?  How do you get the type descriptor from a control refnum in LabVIEW 8.2.1?
    Respectfully,
    Robert

    Matthew Kelton wrote:
    The problem I have is that I have a generic control reference, so I don't know the type.  That is why I was using the descriptor to determine the type to properly use variant to data on the Value Property.  As it stands now, 8.5 still supports the Type Descriptor if it exists in VI I upgrade, but how long before it disappears?  I use this in a generic VI that is used in every project I do, saving me hours per project.
    The least NI could have done was just name is TypeDescr16 and TypeDescr32 or something.
    TypeDescr32 is NOT exposed and on purpose too so there can't be such a property. And yes there is a chance that the old TypeDesc property disappears at some point. However it won't be tomorrow. The 4.x compatibility mode for the Typecast function (necessary for the boolean size change from 4.x to 5.x) is still there but for the Flatten/Unflatten it had to make place for the 7.x compatibility flag. And it might disappear with LabVIEW 9.x since as I have found out today, LabVIEW 8.5 is the first version that refuses to load 4.x VIs directly.
    So the TypeDesc property will probably work until around LabVIEW 12.x when it will cease to support loading LabVIEW 7.x VIs. (Note, this prediction is just a very wild guess and should be taken with a big grain of salt).
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Unable to set tabbing order for a typedef

    Attached is a .CTL file that is for a typedef in my project. I'd like to set the tabbing order. I'm using the "Array to Cluster" VI (is it a VI?) to fill it with data, however because the controls are not in the correct order, the data is no being put in the right place. When I edit my CTL, Edit|Set Tabbing Order is greyed out. Why is this and how do I fix it?
    See my attached file.
    Solved!
    Go to Solution.
    Attachments:
    Accumulated Metrics.ctl ‏19 KB

    Never mind - I figured it out. Right click on the cluster containing my controls and select "Reorder controls in cluster..."

  • Strictly typed refnum vs normal refnum for a waveform chart

    I know that one way of clearing a waveform chart is to write an empty array to the 'history' property of the charts property node. The help file for this states: "use strictly typed refnums when reading this properrty"
    I am looking at a program coded in LV 8.6
    a number of control refnums are carried around in an array (so strict typed)
    in some cases (but not all) the programmer used "to more specific class" to designate a waveform class when writing to properties for scaling the Y-axis, etc. Other times this is not done(?)
    We are now having an issue which appears to be that the chart is re-initialized when dynamically rescaled (I am not sure if that is what is going on, but that is what it looks like). 
    It looks like when the chart is dynamically rescaled the previously acquired data is gone and the chart starts populating fresh. 
    Haven't figured out what is causing this, and I am wondering if strict type refnums vs generic refnums may be a factor?
    Lawrence M. David Jr.
    Certified LabVIEW Architect
    cell: 516.819.9711
    http://www.aleconsultants.com
    [email protected]

    Waveform charts can hold different data types (they are polymorphic), such as DBL or 1D-array of DBL. When you want to set the history, you need a 1D DBL or 2D DBL respectivily. The correct data type is part of the 'strict type', I guess you will get the default instance if you use the non-strict (generic) type.
    But if this is releated to your problem, I can't even guess. 
    Felix 
    www.aescusoft.de
    My latest community nugget on producer/consumer design
    My current blog: A journey through uml

  • How do I apply properties to a control refnum from another VI and whose type I know?

    Hi,
    I have programmatically retrieved the Control refnum of a Table running on a separate VI. I search for its name and when match ocurrs I would like to use its control refnum to change som cell values in it by either the Invoke node or Property node. Nevertheless even though I know it is a Table I am not allowed to wire the control refnum to a property node with "Active cell", "BG color" et.c. I am not either allowed to wire it to an Invoke node with the method "Set Cell Value".
    Is there a work around for this?
    Solved!
    Go to Solution.

    Well, i assume that Santhosh solution works too (i hope he tested it before ). So no mistake here. Still, if you like, you can take the "solution" flag back from a post and redistribute it....
    Norbert 
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Control refnum

    what are control refnum, applications and advantages. is there any tutorial on control refnum.

    A contol's refnum allows you to have access to the control from anywhere you want - another loop, another VI, even another computer.
    The advantage of using programmatic control is when you want to manipulate your UI, control things remotely or control things dynamically. The main disadvantages are a performance hit which comes from using property nodes and the breaking of the dataflow. Using property nodes to change the values of control remotely can be very hard to debug, because unlike local or global variables, you have no way of searching for it. 
    You can start by reading chapter 17 of the LV user manual (Help>>Search the LabVIEW Bookshelf) and by having a look at this tutorial about class hierarchies in LV.
    Try to take over the world!

  • Printer control app for iphone

    is it possible to roll back to a previous version of the Printer Control app for iphone?  I recently and stupidly updated the HP Printer Control app when offered through itunes on October 30 and have lost all the functionality I previously had to print directly from my iphone to my photosmart 7520.  Previously I could print whatever pages I chose from Safari and could change the print settings for either draft or normal, colour / black & white before printing.  Now when I try to print a page, you don't get the option to just print page 1 and it wastes ink.  If I open a pdf (all I've tried so far) document within this new AiO Remote app - even though my printer is listed and supposedly set up - I can't print at all!  I desperately want to ditch this abysmal update and go back to the version that worked perfectly.  I have conctacted Apple and they were unable to help as it's a third party app and referred me back to HP.  Does anyone know how to do this?

    Hi brattynat. I have found a few older documents which might help you revert back.
    Just to clarify, when you print from Safari, what are you clicking exactly to start your printing process?
    How do I downgrade an iPhone app to a previous version?:
    http://www.iphonefaq.org/archives/971543
    Recover Older Versions of iPhone Apps After Updating:
    http://gigaom.com/2010/08/25/recover-older-versions-of-iphone-apps-after-updating/
    TwoPointOh
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • Is there port of "HP Printer Control " app for Windows Phone?

    Are there port of "HP Printer Control " app for Windows Phone? This is at the same time request if there is not.
    Regards.

    Hello Zubru,
    I saw your post, good question! There are no apps at this time available for the windows phone however here is the link to the HP ePrint site to keep an eye out for any possible changes to that.
    Click the KUDOS star on the left to say “thanks” for helping!
    Please mark a reply “Accept as Solution” if it solved your issue so others can find it.
    I work on behalf of HP.
    I worked on behalf of HP.

  • Follow up control action for Training and Event Management

    Dear Expert,
    I am new to TEM module. After the training course, I would like to set the course result to each participant (pass or fail)
    I tried to set the "Follow-up control options" for the selected course type and then execute tcode pv15, but still cannot trigger the follow up action.
    Can anyone help me on this?
    Million thanks,
    WF

    Hi Wiliam,
    For this purpose, implement BADI HRBAS00INFTY - IN_UPDATE method.
    IF sy-tcode = 'PV15' OR ( sy-tcode = 'PSV2' AND sy-xcode = 'EVFO' ).
    LOOP AT PLOG_TAB ...
    POP-UP ....
    ENDLOOP.
    ENDIF.
    Regards,
    Dilek

  • HT4759 i downloaded the icloud to my pc it says to login with apple id and it says it is a valid apple id but not cloud but i cannot get the control panel for icloud to come up to set it up on my pc which runs windows 8

    i downloaded the icloud to my pc it says to login with apple id and it says it is a valid apple id but not cloud but i cannot get the control panel for icloud to come up to set it up on my pc which runs windows 8

    An update.
    From iCloud Control Panel 2.1.1 for Windows
    "iCloud Control Panel 2.1 and later includes support for Windows 8"
    but you still need to set it up on a Mac or iOS device, "Note: To create an iCloud account you need an iPhone, iPad, or iPod touch with iOS 5 or later, or a Mac with OS X Lion v10.7.5 or later."

  • No control line for line item - error while posting bd to accounting

    Hi all,
    Billing document showing err "no control line for line item" while posting to accounting doc.Sales document is complete no in completion logs.
    Previous errr: g/l missing for line item" in order incompletion after maintaining company code for customer, then refresh the g/l missing for line item is no more logs and showing the error "no control line for line item" while posting bd to accts.
    Please help
    Regards
    anush

    Hello Anush,
    if the company data of the payer was not created when the sales order has been created, then the system could not create the correct records in table VBREVK. Once the company data has been maintained the VBREVK records could be corrected by re-saving the sales, but only if no billing document exists.
    In your case you already created the billing document.
    Please try these step:
    1. reverse billing document
    2. run VA02 add a blank char to PO number, save
    3. create new billing document
    Best regards,
    Ivano.

Maybe you are looking for

  • Custom Tags starting with $: lots of problems

    I'm building an extension for MovableType template tags. Those tags can be delimited in several ways: <MTNameOfTheTag> or <$MTNameOfTheTag> or even <$MTNameOfTheTag$>. Since the dollar sign is not allowed as tag name, i put a prefix="<$" in tag defin

  • Oracle 9i (SE) Solaris 9 (Trace Files)

    Hi Guys, Is it wise to delete the trace files and where are they located. I've got space issues so I need to cleanup. Thank you.

  • Connection Pool Name Missing from Drop Down when Creating a New Datasource

    Hi All, I'm running Weblogic Server 8.1. I've successfully created a connection pool for DB2 using the Non-XA JDBC driver from IBM (Version 7.1). When I attempt to create a datasource for this pool and un-check the "Honor Global Transactions" checkbo

  • Technical HR ABAP Topics

    Hi GUrus,               Can any one please let me know all the Technical HR ABAP Topics available ? So that it will be very easy for me to learn HR ABAP Technical. Ashok...

  • Can't reopen my Safari, but other browsers are working

    Problem Details: Process:               Safari [723] Path:                  /Applications/Safari.app/Contents/MacOS/Safari Identifier:            com.apple.Safari Version:               8.0.2 (10600.2.5) Build Info:            WebBrowser-760000200500