Programmatic read access to (conditional disable) symbols in project

Hi,
I'm wondering if there's a way to achieve programmatic way to achieve a read access to the symbols defined within a project apart from the conditional disable structure? I have tried access via VI server, but haven't succeeded
For me, it would be a nice way of passing certain enviroment settings....
Thanks a lot!
Oli
Sorry this should've been posted to the LabVIEW board....
Message Edited by Oli_Wachno on 04-12-2007 03:13 PM
Programming languages don't create bad code, programmers create bad code....

Unfortunately there is no other way to access the symbols via VI server. It is not possible to edit these symbols at runtime in general, which would not make sense, because these symbols are ment to give the user the opportunity to do conditional compiling, and so the state of these symbols needs to be set BEFORE the VI is compiled/started.
You could accress the value of these symbols, by reading the .lvproj File directly. The .lvproj files are XML-Files, and there is a item called
<Property Name="CCSymbols" Type="Str"> .XXX.</Property>  in the XML File. The XXX stands for the name and value of a symbol.
You could use File I/O functions to access these values.
Hope this helps!
André

Similar Messages

  • Programmatic read access to project symbols

    Hi,
    I'm wondering if there's a way to achieve programmatic way to achieve a read access to the symbols defined within a project apart from the conditional disable structure? I have tried access via VI server, but haven't succeeded  
    I'm (still ) using 8.20.
    For me, it would be a nice way of passing certain enviroment settings....
    Thanks a lot!
    Oli
    Programming languages don't create bad code, programmers create bad code....

    I know this is an old thread, but I'm betting that more people will want to know how to do this, and it's not all that intuitive.  I wrote a VI that gets symbols for the project itself, or for a target within the project, including "My Computer."  I haven't written a VI to set symbols yet, but it's the same idea except that you'd use the "Set Tag" method instead of "Get Tag."
    This one is in LabVIEW 8.6.1, just because that's what I'm using today.  (Sorry, no LabVIEW 2009 snippet) 
    Jim
    Attachments:
    Get Conditional Disable Symbols.vi ‏20 KB

  • Programmatic read access to applet console trace level

    Is there any apis for getting the current trace level setting of the applet java console?

    thanks for the info.
    But as a user I would find it confusing, especially as that would mean to see traces from your applet I would have to turn on, and see, traces from the JVM mixed in with them.I'm surprised others don't use System.out.println, or e.printStackTrace in their applet code. Is that not common? It irritates me to know end that i'm not allowed (by the company) to have them there. So a problem occurs at a customer site, and there's no way to know what happened. So i was able to talk them into emitting important stuff as long as the user consciously set the trace level up, something a normal person would never do, most likely.
    So how do other people log information from applets? I can't imagine you're actually logging errors to the filesystem? sending them back to the server? seems hard to believe anyone would do that?

  • Is it possible to programmatically change the value of a LV8.2 project symbol at runtime?

    I need to programmatically change what a conditional disable structure will execute at runtime. (See this thread for more details if you're interested.)  As far as I can tell the only way to do this is to change the value of a project symbol at runtime.
    I've tried to find a property that allows me to do this but so far it eludes me.
    Anyone know how to do it?
    Troy
    CLDEach snowflake in an avalanche pleads not guilty. - Stanislaw J. Lec
    I haven't failed, I've found 10,000 ways that don't work - Thomas Edison
    Beware of the man who won't be bothered with details. - William Feather
    The greatest of faults is to be conscious of none. - Thomas Carlyle

    This is definetly not possible. When the conditional disable structure is compiled, only the actual case is compiled. The other cases don't even have to have valid code, they can have broken wires or bad VI's in them!
    Like Mike suggested, you need to load VI's that do the task dynamically.
    Regards,
    Wiebe.

  • Build application with conditional disabled VI's still tries to load them ...

    Hi,
    we have a big LV-project with some "conditional disabled" or with a "switch" unused VI's. But LabVIEW still tries to load them when building an application (even when they are not used). Is there a setting to prevent this behavior? Something like "ignore unused/missing VI's during built"?
    Thanks
    Peter

    The difference is disable structure and Conditional disable structure.  unconditionally disabled code can be broken as it cannot run.  Compare that to a case driven by a constant- the unreachable code is removed by the optomizer in certain conditions (We won't guess what conditions prohibit this optomization and it has been changeing a lot since 8.6 to 2013 I imagine it will continue to evolve) however, Because the optomization is not garanteed to occurr the unreachable code cannot be broken.  This is simillar to the conditional disable symbols- they are not evaluated untill runtime and the condition may depend on variables external to LabVIEW.  So, all cases must be compilable.
    @ Mike- Yup, I believe those symbols values CAN be manipulated external to the app instance (Certainly App.Kind comes to mind).  I don't have any experience doing that. 
    Jeff

  • Reading terms and conditions page 3 of new account for iTunes Store before I  put in US$ voucher purchased in Zimbabwe. If I'm traveling world wide, willI still be able to access the US services via this same account?

    Reading terms and conditions page 3 of new account for iTunes Store before I  put in US$ voucher purchased in Zimbabwe. If I'm traveling world wide, willI I still be able to access the US services via this same account?

    You can only use the US store if you are in the US with a US billing address on your account - the US store's terms of use (and they will be similar for all countries) :
    The iTunes Service is available to you only in the United States, its territories, and possessions. You agree not to use or attempt to use the iTunes Service from outside these locations. Apple may use technologies to verify your compliance.

  • Access to conditions in BTE 1050

    Hi all,
    we have following problem.
    We want to post a logistic invoice (TA MIRO). During the transaction we want to have access to the condition records during the BTE 00001050 (After FI POST_DOCUMENT).
    We don't have the information in the parameters.
    How it is possible to access the conditions???
    Kind regards
    André

    <i>It seems, that this is not working, because the function module for the BTE belongs to another function group.
    So I can not assign (PROGRAM)FIELD to a field symbol.</i>
    With this way you can assign it even if it's in a different Function group, program, whatever if it's in the memory!!!
    Debug this example to understand how this approach works.
    In this case you can get a value from program SAPLSFES, which has no relation with program ztest_external at all.
    However with this approach it works.
    Peter
    PS: If it helps, don't forget about the reward points:-)
    REPORT ztest_external .
    DATA: fake_external_var(20) TYPE c VALUE 'I am external'.
    DATA: fieldname1(100) TYPE c.
    DATA: fieldname2(100) TYPE c.
    MOVE '(ZTEST_EXTERNAL)fake_external_var' TO fieldname1.
    MOVE '(SAPLSFES)C_DPTABLESIZE' TO fieldname2.
    FIELD-SYMBOLS: <fs1> TYPE ANY.
    FIELD-SYMBOLS: <fs2> TYPE ANY.
    START-OF-SELECTION.
      ASSIGN (fieldname1) TO <fs1>.
      ASSIGN (fieldname2) TO <fs2>.
      WRITE: / <fs1>.
      WRITE: / <fs2>.

  • Programmatically add a dimension condition in my BI JSP crosstab page

    How can I programmatically add a dimension condition on a existing measure in my BI JSP page?? My case is that I have a fact table which stores all department cost. I want my BI JSP crosstab can only display one department cost total "not" all department total. But, the department condition is base on which user logined. For example, "A" user should display "aa" department and "B" user should display "bb" department. Please HELP!!!!!!!!!!!! Thanks very much!!!!!
    Regards,
    Eric

    I would recommend using the built-in security feature of the analytic workspace. There is a command called PERMIT that can be applied to both dimensions and cubes and controls user access to dimension members.
    There is a document on the OLAP home page that explains how to secure and AW using the permit command
    http://www.oracle.com/technology/products/bi/olap/olap10g_applying_aw_security.doc
    Hope this helps
    Keith Laker
    Oracle EMEA Consulting
    BI Blog: http://oraclebi.blogspot.com/
    DM Blog: http://oracledmt.blogspot.com/
    BI on Oracle: http://www.oracle.com/bi/
    BI on OTN: http://www.oracle.com/technology/products/bi/
    BI Samples: http://www.oracle.com/technology/products/bi/samples/

  • What are the valid values for CPU in conditional disable structure config?

    After diggin' around for some time (but to no avail)...
    Does somebody know the valid values for the CPU (symbol) in the conditional disable structure configuration or where I can find this information?
    Best regards,
    Horst

    Not sure but you can try this:
    http://zone.ni.com/reference/en-XX/help/371361E-01/lvprop/app_apptarget_cpu/
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies

  • Adobe Reader DC, doesn't disable "Display PDF Document in the web browser" when option is unchecked.

    The option under Accessibility>Setup Assistanct to uncheck the "Display PDF Document in the web browser" doesn't correctly disable Display PDF in browser when unchecked, it still defaults to opening in Internet Explorer even after restarting the browser.  Confirmed this tested agianst with IE 8, 9, 10 and 11 with the same behavior.  Moving back to Reader 11.0.10 and using this same setting works flawlessly.  Anyone else experiencing this issue?

    I am out of the office until 1/22/13.
    If you need assistance with technical issues, please contact the Help Desk at:  518-402-8888
    >>> Test Screen Name <[email protected]> 01/17/13 10:30 >>>
    Test Screen Name http://forums.adobe.com/people/Test+Screen+Name created the discussion
    "Re: Adobe Reader XI enterprise deploy-disable display PDF in browser?"
    To view the discussion, visit: http://forums.adobe.com/message/5001441#5001441

  • Accessing the Condition Tables

    Hi,
        I have a situation here. I am fetching the Price Data from the Condition master data tables. I am getting data from T685,T682I and T682Z tables. Now, when I am getting the field T682Z-KOZGF, it gives me a value "A001" for KAPPL = 'V' and KVEWE = 'A'. Now, I need to access the condition table A001 and access its fields  like DATAB and DATBI. How do I do that? Can somebody help me with this?
    Also, I would like to access the field ZIFNA which will give the values "VKORG", "VTWEG" ,"SPART","KUNNR". I would also like to Check these values with the Same input fields I have. How do I achieve that? Please help me with this.
    Thanks,
    John.

    Hi Prabhu,
                 Thanks for your quick reply. In fact, I am developing a BAPI function Module in which I am sending pricing scales to the external interface. For the same reason, I have to access the condition tables to find out the pricing scales. So, please help me find out the procedure to access the condition table (ex: A001) which comes as a value into my internal table.
    Thanks,
    John.

  • "orcladmin" access has been disabled & some FTP problems & user IDs

    Hi,
    I was working on a problem with OCS 10g (10.1.2) where we can only upload/ftp successfully file types (with extensions: BMP, JPG, WAV, MP3 & LOG). Txt, Doc and XLS files get an access denied error.
    So I try to logon to "http://myocsserver.com:7778/content/" as orcladmin to change any applicable settings to allow all file types to be uploaded to my library in Content Services. When orcladmin access gets an error message "Error
    Your access has been disabled. Contact your system administrator for more information."
    I've tried looking at the product documentations, OTN and even MetaLink. Unfortunately I couldn't find anything. Can anyone tell me how to get my orcladmin account to work again on "http://myocsserver.com:7778/content/" ?
    When i goto "http://myocsserver.com:7777/oiddas/" and even "http://myocsserver.com:1810", orcladmin works just fine. When I examince orcladmin account in OID I see that it is not locked and is enabled. So I can't seem to understand/figure out why I get the error "Your access has been disabled. Contact your system administrator for more information."
    BTW, we also tried to create another super user account. We created it in OID granted it with all the privileges available and assigned it a domain admin role. However when it is able to logon to "http://myocsserver.com:7778/content/" it is not able to access the administration mode.
    Hopefully someone can point me in the right direction.
    Thanks in advance.
    Regards,
    -Ken

    Hi user544366,
    Thank you for the suggestion, I appreciate it.
    Hi all,
    Got a fix from Metalink support personnel on the orcladmin user access disabled issue. Apparrently you have to de-provision Content for orcladmin and re-provision again. After doing that we were able to login to Content services again ("Http://ourOCSserver:7778/content/").
    My remaining issue now is that even after I log on as orcladmin to Content Services I cannot find any settings that will fix my original problems. Using any user id (orcladmin etc) I can only successfully upload files w/ extensions (WAV, MP3, BMP, JPG & LOG) to Content services. I cannot upload -fails - (DOC, TXT, PDF, PPT & PDF) files to Content services. If I use FTP I get "Access Denied" error. If I use the web interface to upload I get an error "Error An Item must be selected etc."
    TIA.
    :)

  • Conditionally Disable Button

    I read this thread
    Howto disable a button within APEX?
    to conditionally disable a button in a form. And it worked as per the suggestion of user FFS.
    But I want to do something similar to a button showing in a report region. There are different conditions which will show the button in the disabled mode.
    When I tried to repeat the same steps as per the above thread(user FFS comments), I couldn't create a hidden item that will come after the button I want to disable.
    I also wrote this in the page's html header section:
    <script language="JavaScript" type="text/javascript">
    if ($x('P13_EMP').value >'0')
      $x_DisableItem('SAVE');
    </script>Did not disable the button either.
    Please help.
    Using apex3.2, it is an HTML button.
    Thanks,
    RN
    Edited by: RN on Jul 20, 2011 4:05 PM

    I normally just jQuery to disable buttons. See the first response: http://stackoverflow.com/questions/577548/how-can-i-disable-a-button-in-a-jquery-dialog-from-a-function
    I think $x_DisableItem probably isn't working for you because its not an Item. You can create buttons as region buttons or as items (if I recall correctly).
    If you don't have jquery/want to load it it should be able to still do it.
    (untested code, but something to the effect):
    i.e.
    var els = document.getElementsByTagName('input');
    for (i=0;i<els.length;i++){
      if (els.type == 'button'){
    if (els[i].value == 'LABEL'){
    els[i].setAttribute('disabled', true);
    } Someone else might have a more elegant solution ;-)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Remove condition disable through VI Server

    We currently have a rather large project with two different versions. A conditional disable is used to select what code should be executed based on a project variable selecting the version. Since the new version is ready to be released to other  users, we would like to separate the project into two projects on different computers: one for critical bug fixes for the old code, one for the new code. Therefore we want to remove the conditional disable structure everywhere, but doing this manually would take a considerable effort. Is there any way we can do this through VI Server?

    I don't suppose there is a built in way to do this, but using VI scripting you can go through you hierarchy and call the Remove Structure method on all of these. If you want more details, go look in the LAVA forums scripting forums.
    I would probably avoid doing that, however, and I suggest you try to do a find of all the structures and remove them manually.
    P.S. For handling different versions of the same project, you should probably check out source code control.
    Try to take over the world!

  • Conditionally disable input field

    I was hoping for suggestions or practical advice on how to conditionally disable field on an ADF from. As the user enters data on the form I would like to grey out certain field based on the fields that are being populated.
    Thanks

    Hello
    I have a similar situation..thats not working.
    This is what I have: (levels are nested)
    Level 1: panelGroupLayout -scroll (pgl1)
    Level 2: I have a SELECT ONE RADIO (sor1) in a panelFormLayout. (pfl1)
    Level 3: Two input fields in a panelGroupLayout. (pgl2)
    The SELECT ONE RADIO has autoSubmit = TRUE, and the partial trigger for pgl2 is set to sor1 and I used EL Expression for Rendered to #{bindings.RI.inputValue=='YES'}.
    But whenever I run it, the pgl2 is not showing which is correct, but when I select YES from the radio buttons, it won't show up either.
    Any suggestions?

Maybe you are looking for

  • Digital Signatures - Enterprise

    Hello, My company owns 55 licenses of Adobe Acrobat Standard for Windows version 9.4.5. I want to be able to have all of my employees digitally sign documents. I figured out the process thanks to online documentation. The cert is self-signed so it co

  • Exchange Adobe Acrobat Standard for Pro?

    I have a Mac and it does not support the Standard version, how do I make the upgrade if I already purchased the standard for Windows?

  • User Status CRTD Error

    While creating Sales Order with reference to Quotation Error occured. ""Create sales document" not allowed (User Status CRTD, object VB0005000006000000)" Same error is also appear while creating Sales Quotation w.r.t. Sales Inquiry How to solve? Chin

  • Listener hangs 10g Red Hat 3.0

    Any ideas anyone please. I have 2 databases installed, one is a test database (not used) and the other is a development database (heavily used). After about 12 hours the listener log shows a hang and ps ef shows 2 listener processes. The "good: liste

  • Flash CS5.5 - Out of memory

    Hi, I have a project here that, all of the sudden, I can't export the SWF. The first couple of times it gave me and "out of memory" error in the Java subsystem or something and to change the value of memory in the jvm.ini. I did but nothing changed.