File globals scope?

I would like to have some of my File Globals shared across multiple executions while others are execution specific. Is it possible to accomplish this using the Advanced properties flag (PropFlag_Shared?) for the specific variables I would like to be common?

Scott -
Sorry about that. The sequence editor assumes that a variable that is marked as shared is a type. We limit users in this way because if users edit a shared property in a step instance, it would edit the type definition itself.
In your case there is no type but the sequence editor incorrectly limits you. I have written up a problem on this behavior internally.
Since shared-at-runtime does not work as we discussed and you want to still use shared, you will have to unshare the property before editing its value. Unfortuneately, the sequence editor may not allow you to edit the flags because it is shared. Instead of using the Advanced button on the Properties dialog box to edit the flags, you can use the shortc
ut Ctrl-Shift-F1 to open the dialog directly.
Keep in mind that we never considered someone wanting to share individual file globals as you are doing. We will consider supporting this in the future better.
I hope this helps...
Scott Richardson
Scott Richardson
National Instruments

Similar Messages

  • Persisting variables to global scope (M spec's 'shared' keyword?)

    Hi,
    I wanted to declare multiple variables I'd like to reuse in a query, and be able to keep them in scope afterwards for use in other queries. The alternative of redeclaring them in each query separately would seem tedious, while individual queries can also
    only return one variable each (be it a table/list).
    I read in the M formula specification that it should be possible to global-scope a variable using the 'shared' keyword, though apparently this was only for use in the 'sections' part of the M specification unimplemented in Power Query itself. Am I missing
    something? Might there be some other way to persist a variable to the shared (global) scope from within a query?

    Thank you for the further clarification on sections; I didn't really know they are still kind of there in the background.
    Reconsidering, I suppose my perceived issue isn't really so bad. I think what I wanted (using M functions from text files like an external library) is pretty well doable, so I've Github'd (https://github.com/tycho01/pquery) what I have for others to try;
    perhaps that may help illustrate my use case a bit. I think I'm actually satisfied now, though I may as well explain better what I was trying.
    What I'm imagining (as an analogy to my experience with Excel VBA) is basically having a larger library of user defined M functions to flesh out the built-in ones, with smaller functions for relatively basic tasks, and mid-level functions building upon those
    and upon each other.
    Considering the (current) effort in adding a bunch of functions to different workbooks, not to mention edit syncing concerns, keeping such all-purpose functions separate from individual workbooks (in analogy to VBA's 'personal' workbook) would seem sensible.
    If that were to work out, eventually it may be preferable if things were to 'just work', in terms of all functions being in scope, so each such library function could freely call other such library functions.
    At present, if you load multiple functions through Expression.Evaluate(), possible in batch through lists/records as you mentioned, they will all be available in the original scope.
    However, with no effective way to pass this around (unless environments?), the loaded functions will not know of each other though. What I do now is to explicitly load used library functions in each function where they are needed. Under this limitation of losing
    scope between functions, it might be ideal to have all available functions loaded only once.
    Reloading in batch (i.e. load the whole library rather than the parts needed) within every new function scope may become less desirable in terms of unnecessary overhead.
    I suppose for the most part my scenario is still largely hypothetical though, so I might as well try and see if the general idea would take off in the PQ community for now. In either case, thank you for your replies.

  • Comment, "sequence file global"

    I'm running a Win2K (8186 Controller) machine running TestStand 3.0 and LabWindows/CVI 7.0.  How can I place comments in the comment field of my Sequence File Globals?  There are fields on the column headings labeled Field, Type, Value, and Comment. The column labeled Comment does not have a box in Properties... to place a comment.
    Tony 

    Hey Tony,
    When you double click on the Sequence File Global, does a dialog come up allowing you to change the value and properties of the Global?  If this is the case could you post a screenshot of what this dialog looks like?  Also I just want to double check, this is all in the TestStand Sequence Editor, and not a TestStand Operator Interface correct?  I have pasted a screenshot of what mine looks like below.
    Message Edited by Patrick P. on 03-05-2007 09:25 AM
    Pat P.
    Software Engineer
    National Instruments
    Attachments:
    TSscreenshot.JPG ‏685 KB

  • Create file global in labVIEW

    I have a VI, which is called in TestStand. The VI starts new executions according to a test.ini files. It means, the VI is running until all the seqeunces are done.
    In the beginning of this VI I create new FileGlobals. My problem is, that I see the new FileGlobals just after the VI finishes to run. I want to see the changes during the VI is running.

    I create the file globals once when the VI starts, and I also set their values. Then the VI starts some new executions (sequences) in the sequence file, where my VI is called from. During those new execution I watch the new file globals, which should be there as I created them programmatically. But the new file globals cannot be whatched, because it seems they are not created.
    When all my new executions are done, the VI stops, and then I see immediately the new file global in the whatch viewer in the sequence editor.

  • Resolving session scoped component in global scope component.

    Hi,
    I am implementing batch process and i am need to resolve session scoped component in global scoped component.
    In global scope component (one of the component referred by my scheduler which also in global scope as usual) and i need to resolve session scoped "/atg/epub/workflow/WorkflowView" component in my scheduler.
    I tried all possibilities but nothing worked out. I do not have access to current request, because its batch process. following ways i tried,
    1. getResolveName("/atg/epub/workflow/WorkflowView") method of GenericService which is extended by my global scope component -- This returns null.
    2. Tried to get the current request on ServletUtils to use resolveName() method on request.
    ServletUtlis.getCurrentRequest() - This returns null as expected.
    Is there any way to resolve session scoped component in global scope component. Thanks in advance.
    Edited by: 938890 on Jun 30, 2012 4:59 AM

    Try below :
    If you want to resolve the name of a Nucleus component from Java code that is not itself a Nucleus service, you must first initialize Nucleus with this construct:
    Nucleus.getGlobalNucleus().resolveName("target component")
    where target component is the name of the component you are looking up. Note that this construct works only for components with global scope.
    You can also resolve names of Nucleus components using the Java Naming and Directory Interface (JNDI). The following example shows how you can use JNDI to access the Scheduler component:
    String jndiName = "dynamo:/atg/dynamo/service/Scheduler";
    Context ctx = new javax.naming.InitialContext ();
    Scheduler s = (Scheduler) ctx.lookup (jndiName);
    reference - oracle ATG docs.
    ~ Praveer

  • Using SWF file globally

    I have an xcelsius model where I want export the model as  swf . As I am using xcelsius locally when I export to  SWF it generates  a link on my desktop where I can only use it , how can I make it global so that when I send the swf file by email every one can access it.
    Thanks

    Hi Sany,
    You can use your swf file globally without any issue and modification if the swf is based on static data.
    By static data I mean based on standalone excel sheet and which does not have any live data connection.
    Incase you have live data connection, you will need to publish it to some server where others users have rights to view it.
    Please let me  know if you have further queries.
    Thanks,
    Amit.

  • Some shared paths in file /global/nfs/SUNW.nfs/dfstab.nfs-res are invalid

    Hello,
    I try to configure a NFS service in a SC 3.1 cluster environment, but this is impossible as the resource is not existing on the secondary node.
    I'm sure this is some kind of mis-configuration. I read the docs, but still don't know why.
    +/opt/ppark/gateway/logs+ should be the NFS share, whereas a defined RG (ppark-rg) contains the NFS share.
    Another requirement: the NFS resource should be a member of this RG (ppark-rg).
    My steps were as follows:
    1. define the RG.
    # scrgadm -a -g ppark-rg -h pixtest1,pixtest22. define the LogicalHostname -
    # scrgadm -a -L -l ppark-lh -g ppark-rg1. register the agent -
    # scrgadm -a -t SUNW.nfs2. add HAS+
    # scrgadm -a -t SUNW.HAStoragePlus3. add the HAS+ Resource
    # scrgadm -a -j ppark-stor-res -t SUNW.HAStoragePlus -g ppark-rg -x FilesystemMountpoints=/opt/ppark -x AffinityOn=true4. now, the RG can be brought online -
    # scswitch -Z -g ppark-rgHere is the NFS part:
    1. making a administrative directory on both nodes -
    # mkdir -p /global/nfs/SUNW.nfs2. define the share in /global/nfs/SUNW.nfs/dfstab.nfs-res on both nodes -
    # share -F nfs -o rw,anon=0 /opt/ppark/gateway/logs3. define the NFS resource
    # scrgadm -a -g ppark-rg -j nfs-res -t nfs -y Network_resources_used=ppark-lh
    pixtest2 - Some shared paths in file /global/nfs/SUNW.nfs/dfstab.nfs-res are invalid.
    VALIDATE on resource nfs-res, resource group ppark-rg, exited with non-zero exit status.
    Validation of resource nfs-res in resource group ppark-rg on node pixtest2 failed.and of course the resource /opt/ppark/gateway/logs is invalid!
    According to the syslog on the secondary node the share is not existing - but how should it? It can be only mounted on one node at a time.
    Jun 24 13:39:31 pixtest2 Cluster.RGM.rgmd: [ID 707948 daemon.notice] launching method <nfs_validate> for resource <nfs-res>, resource group <ppark-rg>, timeout <300> seconds
    Jun 24 13:39:31 pixtest2 SC[SUNW.nfs:3.1,ppark-rg,nfs-res,nfs_validate]: [ID 382252 daemon.error] Share path /opt/ppark/gateway/logs: file system /opt/ppark is not mounted.
    Jun 24 13:39:31 pixtest2 SC[SUNW.nfs:3.1,ppark-rg,nfs-res,nfs_validate]: [ID 792295 daemon.error] Some shared paths in file /global/nfs/SUNW.nfs/dfstab.nfs-res are invalid.
    Jun 24 13:39:31 pixtest2 Cluster.RGM.rgmd: [ID 699104 daemon.error] VALIDATE failed on resource <nfs-res>, resource group <ppark-rg>, time used: 0% of timeout <300, seconds>How do I prevent this?
    Many thanks for some input.
    -- Nick

    You need to explicitly set the resource dependency to the SUNW.HAStoragePlus resource for the SUNW.nfs resource, like:
    scrgadm -a -g ppark-rg -j nfs-res -t nfs -y Network_resources_used=ppark-lh -y Resource_dependencies=ppark-stor-resGreets
    Thorsten

  • GetVariableData() usage with global-scope primitives (BPEL 2.0)

    My composite has a global scope variable named "length" that is defined as an integer.  When I attempt to access it at the same scope from an embedded Java using getVariableData() I get a funky error.
    My variable definition is:
        <variable name="length" type="xsd:integer"/>
    And my embedded Java looks like this:
    try {
    int pwdLen = getVariableData("length");
    }catch (Exception e) {
    addAuditTrailEntry("Exception occured in length: " + e);
    Can anyone see why this isn't working?

    getVariableData() doesn't return int. The following works:
    try {
    int pwdLen = Integer.parseInt((String)getVariableData("length"));
    }catch (Exception e) {
    addAuditTrailEntry("Exception occured in length: " + e);

  • Transfer files from scope to PC via GPIB

    I want to transfer my hard-copy files from scope to my PC via GPIB link. I am using TDS684B. Is there any possible way. Thanks.
    Saw

    In terms of saving the data, forget that it's coming from a particular instrument (at this point that's an unnecessary bit of detail). There are just so many things you can do with data that comes into LV. You can plot it, analyze it, save it to disk, or print it out.
    Save it however you, or your customer, wants to save it. There's nothing special with this data.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Final variable with global scope?

    Hi,
    We are building a multi threaded server application. We have the need to use some constants (finals) across mutliple classes/threads. Is there a way to create a list of final vars with a global scope? We've considerd a class with static vars, but that would imply using the classname when using the vars. e.g. GlobalClass.VARNAME. We would like to use just VARNAME. Is there a way to do this?

    Hi,
    Here is the thread that addresses the same issue as yours.
    http://forum.java.sun.com/thread.jsp?forum=4&thread=242988
    Putting all these in an interface and let the classes that uses them implement it will be useful.
    Hope this helped,
    Roopasri Vittal
    Developer Technical Support
    Sun Microsystems
    http://sun.com/developers/support

  • Documenting Usage Instances of Sequence File Globals

    I'm new to TestStand 3.5, and I'm inheriting someone else's work.
    Is there a way to find out in what sequences and steps each of the individual Sequence File Globals are being set and called?
    Maybe someone's written a utility to do this? 

    Hi Alan,
    You can use TestStand API methods to get File Globals in your Sequence File:
    1. First, get the Sequence File Object containing the File Globals by using TestStand API method "Engine.GetSequenceFileEx";
    2. Then, get the PropertyObject that contains the default values of the global variables for the Sequence File by calling "SequenceFile.FileGlobalsDefaultValues" property;
    3. Finally, run "Engine.ReleaseSequenceFileEx" method to release the reference of object.
    Regards
    MY

  • How to program File Globals?

    I modified the text sequence editor to suite my requirements.
    I created a "Action" custom type which intern is calling the labview code. I want to pass some numeric value to this function (this numeric value I want to define as FileGlobal.number)
    Any suggestion.

    Vidula,
    1. Create the FileGlobal as a numeric.
    2. In your vi, pass your numeric output to the connector pain.
    3. In Teststand step, use Specify Module (Reload Module for updated vi) and write this numeric output to the file global using expression.
    Should be that easy.

  • Insert file globals with API

    Hello,
    how do I add new properties to file globals using API-calls. (VC++ and TS 3.5).
    The following code snippet doesn't produce any errors but unfortunately doesn't
    produce any file globals either.
    seqfile = engine->NewSequenceFile();
    propobj = seqfile->AsPropertyObject();
    propobjTemp = engine->NewPropertyObject(TS:: PropValType_Boolean,VARIANT_FALSE,(_bstr_t)"",TS:: PropOption_SetOnlyIfDoesNotExist);
    propobj->SetPropertyObject((_bstr_t)"FileGlobals.MyBoolean",TS:: PropOption_InsertIfMissing,propobjTemp);
    propobjTemp = engine->NewPropertyObject(TS:: PropValType_Number,VARIANT_FALSE,(_bstr_t)"",TS:: PropOption_SetOnlyIfDoesNotExist);
    propobj->SetPropertyObject((_bstr_t)"FileGlobals.MyString",TS:: PropOption_InsertIfMissing,propobjTemp);
    propobjTemp = engine->NewPropertyObject(TS:: PropValType_NamedType,VARIANT_FALSE,(_bstr_t)"SomeContainer",0);
    propobj->SetPropertyObject((_bstr_t)"FileGlobals.MyContainer",TS:: PropOption_InsertIfMissing,propobjTemp);
    Thank you for your help.
    Mike

    Hi,
    I have attached an example, which creates a new seqfile, inserts a FileGlobals (check out the lookup string - "Data.FileGlobalDefaults.MyBoolean"), increments the count and saves then releases the sequence file.
    Its a bit crude. It will create the sequencefile "MySequenceFile.seq" in the same location where you open the main sequence file.
    Hope it helps
    Regards
    Ray
    Regards
    Ray Farmer
    Attachments:
    CreateSeqFile_TS35.seq ‏21 KB

  • MyArray is not responding as GLOBAL scope?

    Hello
    I want to have a Array declared in the form, and that Array should VISIBLE to every where of the form.
    Meaning, i can use tthat aray in every page, every subform, every text field to append the elements
    And to loop that array in some button (on click event).
    PLs. let me know how can i declare a array that is GLOBAL in scope, really global? at what level i hv to declare it? at root node level (say, my form name is VISITORinfio, so, keeping curson on this node and declaring array in readDoc event? )
    I tried with these options but not working at all!!

    Pls. help me that let me know how to declare a GLOBAL SCOPE array(i did by using var, with out var key word, i did at TOP level, even i dont hv any functions!) - Thank you

  • Initialization of global/scope variables ONLY through ASSIGN?

    Is it only possible to initialize global resp. scope variables through an explicit ASSIGN?
    Or can I place e.g. a value="...." attribute inside the BPEL source code at the variable declaration
    to initialize it directly?
    Or even better: can I init the variable through JDeveloper GUI?
    Peter

    I looked this up on Oracle Support and there was one thread that it said that it could be resolved with a 11.1.1.6. to 11.1.1.6.2 patch update.
    We have one test environment on 11.1.1.6.6 to which we have uploaded the RPD to receive the same error, although it now additionally indicated a "Blacklisted Connection Pool". Here are the error details:\
    [2013-01-22T00:30:32.000-08:00] [OracleBIServerComponent] [ERROR:1] [] [] [ecid: 004osJjn__ADCgH_qt0FyY0006Py000000] [tid: e9c8a950] [nQSError: 17014] Could not connect to Oracle database. [[
    [nQSError: 17001] Oracle Error code: 12545, message: ORA-12545: Connect failed because target host or object does not exist
    at OCI call OCIServerAttach.
    [nQSError: 43059] Init block ‘XYZ’: Dynamic refresh of repository scope variables has failed.
    [2013-01-22T00:30:32.000-08:00] [OracleBIServerComponent] [ERROR:1] [] [] [ecid: 004osJjn__ADCgH_qt0FyY0006Py000000] [tid: e9c8a950] [43143] Blacklisted connection pool: 'ABC'
    This is the way I have defined the DSN for the OCI 10g/ 11g within the RPD connection pool:
    (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.53.36.93)(PORT=1541))(ADDRESS=(PROTOCOL=TCP)(HOST=10.53.36.94)(PORT=1541))(ADDRESS=(PROTOCOL=TCP)(HOST=10.53.36.95)(PORT=1541))(ADDRESS=(PROTOCOL=TCP)(HOST=10.53.36.96)(PORT=1541))(LOAD_BALANCE=yes)(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=a.b.c)))
    My next test would be to individually test each host and see which one causes it to error out.
    Any insights of what I could look to additionally do?
    PS: The DBA is yet to get back with the exact version of the Oracle 11g DB but it is greater than 11.1.0.7 since that was the version they were running 6 months back and might have upgraded.

Maybe you are looking for