Check in vis Programmat​ically

Hi,
I want to develop a program which can:
Check in
Get Latest version
check out
Assign Labels
VIs, Folders/ Documents from Microsoft visual source safe (VSS). Will it be possible to check out the folder/ document/ vi with a perticular "Label"?
Can any one guide me on this further? Sample code will be of great help. Also a document/ paper/ link on this forum will be helpful.
ThanX!

If you have the LabVIEW Professional Development System, you have access to the SCC API using the palette in Connectivity >> Source Code.
Without the PDS, you will have to write your own API (if possible at all.....)
hope this helps,
Norbert 
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.

Similar Messages

  • Programmat​ically redirect shared variables

    I can programmatically change the data binding for a shared variable from (from on RT target to another) using method 1 as described here:
    http://digital.ni.com/public.nsf/allkb/2E8BAD0EA21​8A7558625712E0003F044
    However the change is only associated locally with the current VI, if I restart the VI or access the shared variable from a different VI it returns to the initial data binding as defined in the variable library.  I have to change the binding each time a start a VI.
    Is there a way to programmatically change the data binding in such a way that the change is persistent and shared between vi's?

    Hi PESobol,
    when you want to store changes you actually need to store them!
    You can access shared variables programmatically using functions like "Open Variable connection". So you could load a text file with descriptions of your shared variables and connect to such a variable based on information of the text file. For me that seems like a better way of configuration than having to change and save VIs all the time…
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How can I find the instances of a subvi programmat​ically

    When one subvi appears for several times in the blockdiagramm, who can I get a ID number for every instance of the subvi?
    When I right-click on the subvi -> "Find all instances" then I get how often the subvi appears on the blockdiagramm but i need the information programmatically.
    Thanks for helping!
    Mathias

    LabVIEW won't let you save "DAsst_mxwScript_Get SubVI Refnums.vi" for a previous version of LabVIEW since its a "toolkit vi" if you try to do this with the "Save with Options" feature. However, LabVIEW *will* let you invoke the "Save for Previous" VI server method on toolkit VIs :-)
    Attached are the VIs saved in LV 6.1
    -Jim
    Attachments:
    Find_All_SubVIs_by_Name-6.1.zip ‏39 KB

  • How do I programmat​ically open block diagram?

    Hi, All
    How do I programmatically open block diagram of subVI and add frame to event structure
    Thanks,

    Could you be a bit more specific on what you are trying to do?
    Do you want to programmatically edit an existing VI that is currently not running? As mike said, scripting could work but it is unsupported (see the Lava scripting forum for details: http://forums.lavag.org/LabVIEW-VI-Scripting-f29.h​tml). Somehow, adding an event case does not give you much, you would also need to add the code contents and hook everything up to the existing controls, indicators, and other nodes.
    If you just need an event that is not always active during run, maybe you can use user events. Check the online help. (Also have a look at e.g. section 4 in the following application note:
    http://zone.ni.com/devzone/cda/tut/p/id/2994.
    LabVIEW Champion . Do more with less code and in less time .

  • Resolving Symbolic Paths Programmat​ically in LV 8.5

    Hello,
    I make use of a user-specified path variable in labview, and many of the VIs I use expect an absolute path. I'd like to be able to resolve symbolic paths programmatically in LabVIEW 8.5. I found this page showing a private Resolve Symbolic Path  method, but can't seem to locate it within the "invoke method" node. Beyond that, I've dug up surprisingly little on how to do this exactly.
    Any help or suggestions would be appreciated, thanks.

    The method is a private method. 
    If you need this function, see this LAVA post for a version of the VI you see in the LabVIEW wiki page.
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • Programmat​ically change the IAK on the fieldpoint controller​.

    Inside a g-based program.

    Rascal,
    If you are referring to changing the IAK file programmatically on the host see the following Knowledge Base:
    http://digital.ni.com/public.nsf/websearch/AD7E2B9​7C60086B886256DDE006FBED2?OpenDocument
    Changing the item names that are downloaded on to the controller is not supported, but here is a possible solution (untested):
    1. Download the item names to your controller.
    2. FTP to the controller and then change the name of the following file: ftp:///NI-RT/SYSTEM/fpbank.ini. This is the file that holds the I/O modules names.
    3. Repeat the previous two steps until you download several different sets of item names to the controller.
    4. When you want to switch which configuration you are using just use the file I/O VIs to ch
    ange the name of the item name file to fpbank.ini.
    5. You may have to restart the controller before the new item names are valid.
    As I said this is completely untested and unsupported, but a possible solution to want it seems you want to do.
    On a side note you should try to be a little less harsh to people who are just trying to help you out.
    Ames
    Applications Engineering
    National Instruments

  • Programmat​ically autosize a string indicator

    Here is a real challenge I would say: Programmatically size a string indicator and/or the window size, such that it mimics the behaviour of the 'message' indicator of the One Button Dialog box.

    This isn't difficult. You just have to find the right VIs to do it 
    Use the "Get Text Rect.vi" in picture.llb (in LV7.1). Depending on the
    font and other parameters it'll return the size of the text in pixels.
    Use this output to set the string indicator size (maybe adding a
    constant) and the windows size (adding a constant).

  • Programmat​ically Inserting search directory

    Hi Ppl,
    I tried programmatically inserting a search directory. I used the method Engine.SearchDirectory.Insert. After calling this method I called the SearchDirectory.Reload method. Despite calling this method the newly added directory was not displayed in the search directories list in sequence editor. When we change Mytypes.ini or other configurations external to sequence editor I get the pop up to reload them. But when I inserted search directory It didnt ask for reloading. I had to restart sequence editor for the new directory to be listed. How do I reload without restarting sequence editor ?
    Below is the code that I used .
    Solved!
    Go to Solution.

    Sathish -
    I believe the behavior you are seeing is expected. When you call the VI stand-alone outside of TestStand, you are creating a different instance of the engine. Thus, you have one instance of the TestStand Engine in the Sequence Editor process, and one instance of the TestStand Engine in the LabVIEW process.
    Now, when you call SearchDirectories.Reload() from the LabVIEW VI, you are telling the LabVIEW instance of the TestStand Engine to reload the SearchDirectories that it has cached from the SearchDirectories on disk, however, this has no effect on the Sequence Editor instance of the TestStand Engine.
    Now, if you were to call your VI as a code module from a sequence that you execute within the Sequence Editor, and you pass the Engine as an input to the VI (RunState.Engine), then you would see the behavior you are expecting.
    You could also try the following as a test: With the Sequence Editor open, run your VI as you have been. Then, in the Sequence Editor, execute a step that calls RunState.Engine.SearchDirectories.Reload() (if you're in TestStand 4.0 or newer, you can simply call this in a Statement step). Then check the Search Directories... have they updated?
    Hope this helps.
    Manooch H.
    National Instruments

  • Find breakpoint programmat​ically

    Hi All,
    I accidentally posted this question in the special interest forum by mistake so sorry for the duplicate post but i thought it might never get read over there.
    http://forums.ni.com/ni/board/message?board.id=Bre​akPoint&message.id=4162
    Hi all,
    I was wondering if there is a way to search the vi hierachy for breakpoints programmatically?  Why you may ask?
    I have a piece of code that takes approximately 10 Hours to run.  In order to use my time wisely i usually run the test overnight then review the results in the morning, modify code then re-run overnight.  However i came in this morning to notice i had left a breakpoint in my code about an hour into the test.  So what i would like to be able to do is search the code for breakpoints first and warn me before i go home if i have left any in there!
    Thanks in advance
    Craig
    LabVIEW 2012

    Although this is still manual, you can search for breakpoints.
    Message Edited by Stradis on 09-14-2007 09:25 AM
    Paul <--Always Learning!!!
    sense and simplicity.
    Browse my sample VIs?
    Attachments:
    findBreakpoint.PNG ‏15 KB

  • Programmat​ically configure Modbus server.

    Is it possible to programmatically configure an I/O server (e.g. Modbus Ethernet) in any way other than the Express VI provided with the DSC module? Many of the attributes are "hidden" in the dialog boxes, instead of being easily readable on the block diagram. Additionally, if I want to create a class encapsulating Modbus clients, there seems little ability to write accessors for attributes such as "maximum data points per command" or "first word low in 32-bit data types."
    Any help/thoughts are appreciated. If the functionality doesn't exist, then I hereby submit a feature request.

    I'm learning how to use the Actor Framework to build an application for controlling, monitoring and aquiring data from a large research facility. One thought for creating a hardware abstraction layer is to have a generic "Modbus client" class. Modbus clients all share general characteristics, such as the attribute settings currently rolled up in the Express VI for creating and configuring I/O servers. Certainly, one can imagine setting up each client "by hand," but then you're not saving yourself any work. If you could handle full setup programmatically, then when a new Modbus client object is instantiated, the work load should be lessened. There's also the issue of transparency to someone creating a new object. Since you can't write accessor methods for advanced attributes, the only way to interact with those attributes is via the dialog box, which obscures how the client is configured and subsequently behaves.
    Since I'm relatively new to the OOP stuff, it's possible that I'm overthinking the whole issue and making it harder than it needs to be. It still would be nice to be able to write a method to set the advanced attributes, instead of having to hunt through dialog boxes to find the options. I'm not generally a fan of Express VIs, because I'm often engaged in tasks that are beyond the functionality they provide and they obscure reading of code by failing to provide full disclosure about inputs and outputs.

  • Add a VME device programmat​ically

    Hi all,
    is there any possibility to add a new VME device programatically. 
    using NI-MAX its possible using a wizard as shown.
    thanks & regards
    RENN
    Kudos always welcome for helpful posts

    Hi Gregor,
    i have NI-VXI 3.9 installed on my PC. And i could also see the VXI/VME settings using the VISA instrument property node.
    can i create a new VME device using the VISA functions?
    i have created a testVI to check the VXI/VME settings offered.  still haven't checked which properties should ne checked to create a VME device.
    also had a look at the System Configuration functions, but with no luck. 
    Best Regards
    RENN
    Kudos always welcome for helpful posts
    Attachments:
    VXI-VME Settings.vi ‏12 KB

  • Is it possible to programmat​ically modify camera descriptio​n files?

    Hi all,
    Basically I'm trying to figure out how to store to file the changes a user made to the .iid and/or .icd values during an app run.
    For instance... I have utilities built up that help the user vary the Black and White reference voltages (using an IMAQ 1408) interactively (they can see the results of each new value nearly instantly). The problem is that these changes only last for that program run... meaning that once the app is restarted the values found in the .icd file (I presume) are re-loaded.
    I had thought that the .icd file was similar enough in format to the standard configuration file format to make using the read/write config file VIs applicable. However th
    ere are subtle differences that cause problems when re-writing the file.
    I am also not sure that the values stored in the .icd file are exact matches with those presented under MAX. For instance the key names that seem to be related to the black and white reference voltages don't always reference numerical values that are matches with those displayed in MAX.
    Does anyone know of a way to store programmatic changes to IMAQ properties, without having to store all the modified values into a seperate file?

    The only way I know to record changes in an ICD file is to use MAX, other than directly editing it as a text file. Any changes you make during the execution of a program will, as you said, revert to the default values the next time you run the program.
    To store the changes, the easiest way would probably to have the user use MAX for permanent changes. The MAX interface is relatively easy to use (after a short learning curve). You can get immediate updates after changing values by using the grab button to continuously update the image.
    If you don't like the MAX interface, I think you are going to need to store the values in a separate file. You could try to change the contents of the ICD file by using string manipulation, but I don't think it would be worth t
    he amount of time it would take to develop the tools.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • How to change the text in the legend of a graph programmat​ically in labview

    I have many graphs in one plot and want to show the legend the name of the graph (i.e. the filename). How do I change the text in the legend programmatically?

    Create a property node for your graph. Use the property node "Active Plot" to define which plot (or line) you want to rename. Then write the new legend label to the property node "Plot.Name". See attached.
    Tim
    Attachments:
    legend.vi ‏12 KB

  • How to make my applicatio​n programmat​ically switch between English and Russian

    Greetings from Colorado...
    My application needs to be switchable between English and Russian.  Future languages to add are Spanish and Chinese.  The user selects a language
    from a control before starting the program and then the program changes the Captions, Boolean Texts, Graph Labels, and Enum Type Strings to the
    chosen language.  For Russian, this requires a different set of characters.  I have made substantial progress by:
    Control Panels>Region and Language>Keyboards and Languages>Change Keyboards added Russian>Keyboard>Russian on my development
    computer.
    In the LabVIEW.ini file, I added UseUnicode=TRUE (thanks to a suggestion found in this forum)
    Made property nodes for controls and used properties such as Interpret As Unicode (True for Russian, False for English), Text, Font Name, Font Size, etc.
    I have used fonts Arial and Arial CYR for Russian and MS Sans Serif for English
    Set the keyboard for Russian and enter Cyrillic characters into text constants that are set for Arial or Arial CYR font.  Sometimes one works and
    sometimes the other works.  As long as I set the font name in the property node the same way the text went into the text constant, it generally
    works.  I wish I could understand why one works sometimes and the other works other times!
    I have had trouble with the Boolean Text going off-center when changing fonts and languages and it seems that by setting the Lock Text In Center
    property to False and then True again, it seems to work.  Often changing Boolean texts between short and long texts causes some of the long text
    to be non-displayed; I have remedied this by explicitly setting the width of the Boolean text in a property node.
    Often, the Russian text appears as gibberish with strange right-angle characters, :s, =s, and tiny numbers.  I have been able to remedy this on my
    development computer by ensuring that the text constant on the block diagram has the same size as the caption is supposed to have.  This
    is not necessary for normal programming in English, but it seems to help here.  But it doesn't always solve the problem.
    Sometimes the English text appears as Chinese gibberish in an Enum Type selection list or in a graph label.  On my development computer,
    it seems that making the text the last property to change helps here.
    By changing the sequences of assignments to a single property node with a long list of properties, I have been able to make some of these
    controls to switch between languages without gibberish showing up.
    A few hours ago, I had the Russian strings in the Enum Type control working, except that when selecting from the available items, only the first
    word of the Russian string was displayed.  Two of the items start with the same word, so the user can't distinguish them.  
    At that time the English strings were appearing as Chinese gibberish while the list during the selection process displayed in English.  As soon
    as I changed the selection, future attempts to change the selection gave Chinese gibberish during the selection process, too.  But this was only
    a problem in the executable version; the source-code version worked fine.
    In an attempt to get rid of the Chinese gibberish, I made new constants and retyped the items into them.  This worked!  But then, the Russian
    stopped working and gave gibberish angles and tiny numbers, even though I didn't touch any of the code that sets the properties in Russian mode.
    After trying a few sequences of setting the properties for the graph X label on page 2 of my tab control, this label started working correctly for both
    languages.  But the text of that label comes through on page 1 of the tab control, partly obscured by other controls on that page.  After the
    program runs a few more seconds, these shadows disappear.
    Most times I restart LabVIEW, I get an error message saying there was a crash due to fontmgr.cpp, line 7494.  But there actually wasn't a crash.
    My computer has Windows 7 64-bit.  Deployment Computer has Windows 7 32-bit.  LabVIEW version is 8.5.  
    I have probably 50 or 100 more controls and indicators to change to language programmability and figuring out all this stuff for each one is
    terribly time-consuming and there is no assurance that all of them will ever work.  
    At this point, I'm hoping that I am on an entirely wrong path and someone will send me a clue to get me on a path that is more predictable.
    Thanks in advance to all who post ideas!
    Cheers
    Halden 

    Hi All,
    I've made a lot of progress on this translation, but it's been really hard.  There are lots of weird things going on that must be logical because they're in a computer, but I can't figure out what the logic is.  When changing a font on a caption using the front panel, it sometimes changes the font on the caption and sometimes doesn't although the indicator always indicates the new font.  Removing the first character of the unicode font string being sent to the caption seems to help...huh?  Anyway, tabs still can't change language programmatically, and niether can ring controls (some kinds will take the new list of strings, but when selecting, they only display the first word of the string!).  Boolean text can be reprogrammed, but only if the boolean text is set to be the same for both true and false states.  When reprogramming captions on a non-displayed page of a multi-page tab-controlled user interface, the new text appears on the current page until I change pages back and forth.  What a pain!
    Sooo, NI....does LabVIEW 2011 have support for unicode fonts?  Or, is there anything else in the new control style that will support programmatic language changing?
    Halden 

  • What's the best way to put a programmat​ically sizeable transparen​t image onto a VI front panel

    The problem is twofold: 1) how can programmatically read a transparent image (i.e. image with transparent background) and 2) how can I programmatically position and size that image onto a VI front panel. The best luck I had with item 2 was with a boolean custom control with an imported image. However, this control does not have a programmatic method for importing an image, so the image had to be manually cut&pasted into the custom control.

    Hi,
    If the image is static, it's possible. You can drop a metafile on the front
    panel, and use Panel>Decorations> to get a reference to the image. Resize it
    as desired.
    Changing the image (e.g. from file) is not possible this way, but you can
    put multiple images on the screen and change the visibility...
    If you want to make a picture viewer, I'd consider an activex control (this
    way you can load several picture formats without any programming).
    Regards,
    Wiebe.
    "Jim Campbell" wrote in message
    news:506500000008000000AF4E0000-1023576873000@exch​ange.ni.com...
    > The problem is twofold: 1) how can programmatically read a transparent
    > image (i.e. image with transparent background) and 2) how can I
    > programmatically position and size that ima
    ge onto a VI front panel.
    > The best luck I had with item 2 was with a boolean custom control with
    > an imported image. However, this control does not have a programmatic
    > method for importing an image, so the image had to be manually
    > cut&pasted into the custom control.

Maybe you are looking for

  • Calling infotype 0002 in ALV  report for showing employee photo

    Hi all, The requirment from business side is a report in which employees personal data shuold be shown with employee photo, I had tried for employee photo in ALV report but it didnt sucessed, then I went for other solution like calling transaction in

  • Mass change of account assignment group in sales order

    Dear All. We have created a new Account assigement group and assigned revenue accounts to it.When the orders are registered this data will flow from the master data automatically.Where as in the open orders i need to make the changes manually.Is ther

  • Splitting the goods receipt qty at the time of COR6N

    Hello Friends, Actually we want to do auto goods receipt at  the time of confirmation (cor6n).I have given the PI03 control key to the operation and phase.So system shows the goods receipt item in goods  movement screen in COR6N. We manage all the ma

  • Link other dll to Adobe plugin

    Hi, I sucessfully build a plugin that uses other functions from an external .lib file (Subversion API). When my plugin loads, AI loads the DLLs used in the .lib successfully. But when I set a break point at the function that supplied by the .lib file

  • ALE Delta using Change Document

    Hi Experts, Im having a problem here.. We need to create R3 Delta Extractor for SAP Standard tables but these tables doesnt have the delta-specific field that can be used as delta. So we tried to use ALE Delta for some of the sap standard tables and