Shared variables + timed loops + naming conventions + how to find all

Being almost halloween, thought I'd share some more eerie behavior I've noticed with shared variables.
1st strangeness with timed loops already mentioned here:  http://forums.ni.com/ni/board/message?board.id=170&message.id=209475
2nd strangeness:  If you have a shared variable that is network-enabled, it is OK to use a "?" in the name (eg, "RT_Simulate?"). 
However, should you decide to change that variable to single-process, or if you create it that way in the first place, you will get this dandy message from the broken arrow you now have:
"LabVIEW could not generate code for the shared variable. You must open the VI in the project that contains the library where the shared variable resides."
..............whaaa?????      Loosely translated, this seems to mean "Don't use a "?" in your single-process variable names."
3rd strangeness:  I don't know if this has been mentioned before....
If you have an application that references a network shared variable, and the library has NOT been deployed, the app will hang for some time (approx. 7 seconds! on my machine) before returning with an error.  This seems to be the case whether or not the error ins/outs of the variable are wired.  This looks bad to me, and I'm not sure what is causing it (some sort of timeout when attempting communication with the SVE I assume).  Has anyone else noticed this?  It should be easy to reproduce.  Any ideas?
I haven't done any bug notifications yet, but will do if there are no positive solutions by next week some time.
-Have a Great Halloween Weekend

WHAVEman,
Currently (as of LabVIEW 8.20) there isn't a way to programmatically interact with the shared variable engine outside of using DSC. If you had DSC you could "hack" a way to determine if a shared variable was deployed.
I think the best way to get around your program hanging is to have an initialize state where you write a dummy value to each variable. If the variable isn't deployed, then you should get an error out of the shared variable. Problem is that there's probably going to be a timeout associated with determining if the shared variable is deployed. But at least you can use the information from your initialize state throughout the rest of your deployed application.
Chris C
Chris Cilino
National Instruments
LabVIEW Product Marketing Manager
Certified LabVIEW Architect

Similar Messages

  • How to find all solutions for reordering of vector

    hello everyone
    -I have problem in finding all possible solutions for reordering of vector.
    -I have vector named (vect_temp) and I want to find all possible reordering of this vector.
    -I have function named Min_diff(vect_temp,next_point) works as follows : I should gave it an element (next_point) in the vector (vect_temp) and it must generate the vector (vect_diff) that contains all possible elements next elements.
    -The function nex_min(vect_temp,next_point) works as follows : I should gave it an element (next_point) in the vector (vect_temp) and it must generate the vector (vect_min) that contains all possible elements next elements.
    -reordering critriea:
    -Min_diff(vect_temp,next_point) and nex_min(vect_temp,next_point) and (next_point) in this first iteration is equal to any selected element in the (vect_temp). after calling the functions, if element in the (vect_diff) is equal to the element in ( vect_min) then add this element into the ordered set [ vec_ordering] and call functions Min_diff(vect_temp,next_point) and nex_min(vect_temp,next_point) again , next_point now is the equal to the element that we have been added in the previous step into the ordered set [ vec_ordering] and repeat this process until all elements in (vect_temp) are ordered according to this criteria.
    - I'm able to do reordering according to the cirtira above and find one solution. but the problem is that if (vect_diff) contains many elements that equal to many elements in ( vect_min), in this case I need to do reordering for the first equal element and this will be one solution and then find reordering for the next equal element and so on.
    let's consider this example:
    - let (vect_temp) contains element [5,9,7,3,1]
    - for the firs iteration let the next_point equal to 7
    - after calling function Min_diff(vect_temp,next_point), then (vect_diff) will contain [ 5,9,3]
    - after calling function nex_min(vect_temp,next_point), then ( vect_min) will contain [ 5,9]
    so for now (vect_diff) and ( vect_min) will have two equal elements.
    - the first solution must be that fist take the first equal element and do reordering such that ordered set [ vec_ordering] will equal to [7,5] then call functions Min_diff(vect_temp,next_point), and nex_min(vect_temp,next_point) again. the( next_point) in this iteration is qual to 5, these funtions will find next elements, let's consider that (vect_diff) and ( vect_min) will have equal element [3] then add this element to the ordered set [ vec_ordering] and repeat calling functions util all elments in (vect_temp) are added to the ordered set [ vec_ordering]. This will be one solution. now the second solution will be is to take second equal elment [9] instead of [5] and continue calling functions and finding ordered list.
    so that each time vect_diff and vect_min will have many equal elements, then do reordering for first equal element this is one solution and then do reordering for the second equal element and so on.
    -my code that can only find one solution that takes only first equal element in (vect_diff) and ( vect_min) and continue ordering is below
    for (int y = 0; y < vect_temp.size(); y++) {
         Min_diff(vect_temp);
         nex_min(vect_temp, next_point);
        for (int i = 0; i < vect_diff.size(); i++) {
         String element_min = vect_diff.get(i).toString();
         if (vect_min.contains(element_min)) {
           vec_ordering.add(element_min);
         _2nd_min_element = element_min;
          vec_temp.removeElement(next_point);
          next_point = _2nd_min_element;
          i = vect_diff.size();
         }// end if condition
        } // end for (i)loop
    }// end for (y) loop
    I hope that someone can answer me how to find all posssible reordering set it is urgent pleasssssse

    DarrylBurke wrote:
    Two months on and you still haven't done your own homework?
    [http://forums.sun.com/thread.jspa?threadID=5423090]
    dbWell, nobody has given the answer yet, so how can (s)he?

  • How to find all open POs and there SUM

    How to find all open POs and there SUM
    Please help.
    Thanks,
    vihar9

    Have you tried looking at the tables, standard reports, or the PO display transaction?  Have you asked your functional analyst or development team lead? This is not a forum to post a requirement and get your job done for you...

  • How to find all JMX ports on a server?

    How to find all jmx ports on particular server (say localhost) on windows
    I have multiple JVM's running on my local server, and there is extensive use of JXM mbeans by the applications running on each server. So I want to connect to all these JMX servers and to instrument the MBeans using Jconsole(Jconsole localhost:<port>). But I don't know the port numbers, and its not logged by the application.
    How do I find all the ports jmx servers connected?
    Note : In my case I can not instrument using the PID.
    thanks,
    bala K

    Hi kajbj,
    I tried stop/start the application, but couldn't find any difference in the netstat command. I know it should show the JMX port (I am able to see on a test application), but this application's JMX port usage is missing.
    netstat -ano --> Do i need to use any other commands?
    I just injected few lines of code ( to list the MBeanServers programatically), to this application (did some usual tweaks to let this code execute at some time) and its listing couple of MBeanServers and lot of MBeans.
    MBeanServerFactory.findMBeanServer(null); and so on.....
    Is there a way to get the port using the Management API's?
    thanks,
    bala K

  • How to find all the tables associated for a particular transaction

    Hi-
    May I know how to find all the tables, related(foreign key) tables for a transaction within SAP GUI?
    Up to my technical knowledge, this can be achieved by looking database diagrams from DB level. But that would be for entire database as a whole. What I'm expecting is to see transaction level relative tables that too from SAP GUI. Please share the possibilities if any.
    Regards
    Sekhar

    Dear Micky Oestreich
    May be we possess expertise or high level experience, it should not show up in our way of communication. Every professional starts with the basic stuff to learn. When the question is raised in such minimum polite way, the same level of courtesy is expected in return. If you felt my question was basic, you might have refused it gently. If you are in good mood or bad mood it doesn't matters.
    Hi Vengal Rao
    Thanks for your response. It helped me.
    Regards
    Sekhar

  • User being removed from Domain Admins...how to find all servers his account is being used.

    We have a user that is being removed from IT (more like being forcefully demoted) and our owner still finds him valuable in other departments. My challenge is to find all servers that he may be using his account locally on (as a service or added to a local
    admin group). It hasn't happened yet, but we need to be prepared to say we know all the servers his account is on when the owner demotes him.
    I'm hoping someone has an approach to this that doesn't include going through tons of Event Viewer Security logs. We do have System Center Configuration Manager and Operations Manager 2012 w/ SP1, but the guy that is responsible for those is the guy we are removing
    and none of us are aware on how to use the possible tools that those have. If you feel that those would do the trick then please point me to a "how to" and I'll try to learn on the fly. Otherwise I'll take any other suggestions.
    ~Rick

    Hi Rick,
    Based on my research, you can filter events logs based on user name and event ID:
    Advanced XML filtering in the Windows Event Viewer
    http://blogs.technet.com/b/askds/archive/2011/09/26/advanced-xml-filtering-in-the-windows-event-viewer.aspx
    Best Regards,
    Amy

  • How to find all intersections of children of currency dimensions and currentmembers of all other dimensions where data exists

    Hi all, I have a requirement where I need to find all intersections of children of currency dimensions and currentmembers of all other dimension wherever data exists for them.
    Its a ASO cube with and version is 11.1.2.2.
    If I try to write the formula in a the below way to test, I get an error that 'Currenttuple can only be used with a named set'. But when I try to create a named set with the 'WITH' keyword, it not able to recognize the 'WITH' keyword. I think I am missing something obvious and this may not be the correct way to achieve this. Please help.
    1st try with just Currenttuple - error 'Currenttuple can only be used with a named set'
    iif(
      (isgeneration([Time].currentmember,4)),
      CASE
      WHEN NOT ISEMPTY(
    Crossjoin([Currency].Children,
    {([Time].currentmember,[Org].currentmember,
    [S Org].currentmember,[C Code].currentmember,
    ).Currenttuple
      THEN  Missing
      ELSE Missing
    END, Missing)
    2nd try to create a named set with 'WITH' keyword - syntax error at WITH
    /*with set [NewSet] as                                      
    'Crossjoin([TC].Children,
    {([Fiscal].currentmember,[Organization].currentmember,
    [Sales Org].currentmember,[Company Code].currentmember,
    [Measures].currentmember,
    [Product].currentmember,
    [Channel].currentmember,
    [Order Reason].currentmember,
    [Country].currentmember,
    [Billing Type].currentmember,
    [Business Area].currentmember,
    [Sales District].currentmember,
    [Data Source].currentmember,
    [View N/A]
    iif(
      (isgeneration([Fiscal].currentmember,4)),
      Filter([NewSet], NOT IsEmpty([NewSet].CurrentTuple))
    , Missing)

    Hi Tim,
    Thanks for you reply and sorry for my delayed response. Actually there is one more requirement in this, which makes it a bit complicated. There are another set of members in the Measure dim called FXDirrate and FXIndrate. The logic is :
    1. If data exists for the combination of a Currency.children, FXDirrate and current member of all other dims
    then convert the value for Currency.children by diving by FXDirrate
    2. If data exists for the combination of a Currency.children, FXIndrate and current member of all other dims
    then convert the value for Currency.children by multiplying by FXIndrate
    3. Then value of the calculated members will be sum(all FXDirrate converted + all FXIndrate)
    Currency does roll up but as the data for its children can either be in Dirrate or Indrate and the sum needs to be taken after the conversion, there I am not able to proceed as I am not able to check the existence of data in individual children of currency as Isempty isn't working on a set . Thanks a lot for your help.

  • How to find all Hypercard documents in Leopard?

    When I upgraded to a Mac Pro from a G4, I lost my ability to work with Hypercard (I do use Sheepshaver occasionally, but it crashes frequently). I recently purchased Supercard, in order to be able to continue to work in a Hypercard-like environment (and it works great), but I have to convert my Hypercard projects and stacks to Supercard format.
    I have several old Hypercard documents scattered throughout my mac's hard drives, and want to be able to find them all using Leopard's find abilities. However, I have discovered that (unlike in Tiger), Leopard cannot search by Creator Code or file Type Code, only by "Kind". When I try to search by "Kind" for "HyperCard" or "Hypercard Document" (Leopard displays the latter in the Get Info box for a Hypercard stack), I get no results. It works for "Microsoft Excel", but not for Hypercard.
    None of content, size or date help work; there is a wide range of stack sizes and date (I was working on various projects from the late 1980s through last year). Content varies widely as well.
    Any ideas on how I can find all Hypercard stacks on my drives? Perhaps there is a 3rd party tool that allows me to do this (I've searched with no luck on this front yet).
    Thanks!

    I tried this and it works as you describe, but not all Hypercard documents appear to have the same content type, as described by Terminal.
    The first Hypercard stack I tried came up with the content type:
    dyn.ah62d4rv4ge8xe6u
    The search only found the one result with this type (the same stack).
    Then I tried using the Hypercard "Home" stack (a pretty central stack to Hypercard's functioning), and it had a content type:
    dyn.ah62d4rv4gk8zgzcbmq
    (note the type is longer with a different ending; only the first 14 characters are identical to the first stack).
    This search found 317 items, which is likely most of my Hypercard documents, so this is some progress.
    Unfortunately I know that since the first stack I tried had a different content type, there may be other Hypercard stacks on my hard drive with yet a different content type, not caught by these searches.
    I then tried a wildcard, thinking that if only the first 14 characters of the content type are identical, I focus my search on those characters only, using asterisk as a wildcard at the end. So I searched for:
    dyn.ah62d4rv4g*
    The result was 526 hits, including many documents that are not Hypercard. So this doesn't help.
    It appears that the content type is not exactly specific to a the File Type or Creator Code, so while I can find many of a particular document, this method cannot find all of one type of document.
    I tried searching using raw query by the Terminal-reported File Type Code (kMDItemFSTypeCode= "STAK"), but this revealed no items.
    Perhaps I should suggest this to Apple as a bug fix for Leopard, to restore the ability to search by Type Code or Creator Code as a choice in the OS Find service? I know these codes are no longer relied on as much as they used to be, since now the OS uses extension as much as anything else, but there is lots of older software that still run in Leopard that use Type and Creator codes. And Apple still recommends registering the creator code of any new software.
    Thank you!

  • How to find all bookmarked PDF documents in Preview in Mavericks?

    Hi there,
      the problem is that before upgrading to Mavericks I could view all my bookmarked PDF documents just via menu bar in Preview, but now in Mavericks I have no idea how to manage this bookmarked documents - I can see bookmarks only after opening these PDF files which have been bookmarked. Just imagine that you have thousands of documents of which only a couple have been bookmarked for later reading - as I can see the only way to find these documents in Maverick is to open documents one by one and see whether they have bookmarks or not... Is there any way to bypass this painful procedure?
    Thanks in advance!
    Kind regards,
    Alex

    I tried this and it works as you describe, but not all Hypercard documents appear to have the same content type, as described by Terminal.
    The first Hypercard stack I tried came up with the content type:
    dyn.ah62d4rv4ge8xe6u
    The search only found the one result with this type (the same stack).
    Then I tried using the Hypercard "Home" stack (a pretty central stack to Hypercard's functioning), and it had a content type:
    dyn.ah62d4rv4gk8zgzcbmq
    (note the type is longer with a different ending; only the first 14 characters are identical to the first stack).
    This search found 317 items, which is likely most of my Hypercard documents, so this is some progress.
    Unfortunately I know that since the first stack I tried had a different content type, there may be other Hypercard stacks on my hard drive with yet a different content type, not caught by these searches.
    I then tried a wildcard, thinking that if only the first 14 characters of the content type are identical, I focus my search on those characters only, using asterisk as a wildcard at the end. So I searched for:
    dyn.ah62d4rv4g*
    The result was 526 hits, including many documents that are not Hypercard. So this doesn't help.
    It appears that the content type is not exactly specific to a the File Type or Creator Code, so while I can find many of a particular document, this method cannot find all of one type of document.
    I tried searching using raw query by the Terminal-reported File Type Code (kMDItemFSTypeCode= "STAK"), but this revealed no items.
    Perhaps I should suggest this to Apple as a bug fix for Leopard, to restore the ability to search by Type Code or Creator Code as a choice in the OS Find service? I know these codes are no longer relied on as much as they used to be, since now the OS uses extension as much as anything else, but there is lots of older software that still run in Leopard that use Type and Creator codes. And Apple still recommends registering the creator code of any new software.
    Thank you!

  • Newbie: How can find all unused objects in XI ?

    How can I find all unused objects in XI Integration Repository? 
    Thanks,
    Badari

    Hi,
    Have a look at these thread, it might be helpful to you
    XI Server Object Cleanup
    How to delete Integration Repository Objects?
    Thanks,
    Pooja
    ps: please mark helpful answers

  • How to find all photos that have NO faces, as opposed to UNNAMED faces?

    I find that iPhoto often misses faces entirely, especially if the face is wearing sunglasses or a hat or both.  Sometimes it is rather inexplicable that it has missed a face, as the face seems obvious.
    If you use the smart album method to find all "unnamed" faces, the photos have at least one unnamed face identified.  You can then add any missed faces to those photos.
    But what about photos in which iPhoto has failed to identify the existence of even one face?  Or for that matter, if I want to see only pictures of landscapes or objects that have no people?  Does anyone have a method for finding all photos that have no faces in them at all?
    For me, the idea is to find all unidentified faces and add them.  But as I pointed out above, there may be other uses for this.
    Any ideas, anyone?
    Thanks

    Awesome !!! Thank you very much. I did not realize you could use JavaScript to code against iTunes ...
    I don't know if you have written any of these yourself, but do you know how to maybe create a smart playlist with this information via script? If not, no big deal. At least I know have something which I can use, I will just have to run it every so often.
    Thanks again for pointing me to that site!

  • How to find all ORA error code and the message in Oracle10g?

    Does anyone knows how to list all ORA error code and message in SQL Plus or find a full list of ORA error code in documentation?

    If you want ALL Oracle ORA error codes in single page or even downloadable (html or pdf format) then check following post.
    http://www.oratraining.com/blog/2010/08/complete-list-of-all-oracle-ora-errors/
    Regards,
    Tushar
    Edited by: oratraining on Aug 18, 2010 12:20 AM

  • How to find all z-programs in system using spars field in select  ???

    hi all,
       i have to make change in all program in my system in which spars field is used in select statement. how to fin all those z-programs
    points will be awarded for all useful answers.
    Regards
       Deepak Kumar

    run the report RPR_ABAP_SOURCE_SCAN, give 'z*' in "Program name" field, and 'SPRAS' in "Find string" field, u'll get to know the places where SPRAS is used, modify those programs accordingly....
    Reward points if useful, get back in case of query...
    Cheers!!!

  • How to find all tables that are associated with a given domain name.

    I want to find all table, excluding the structures, of a given domain name, say, waers.
    Some of the tables are directly contains the domains while others are related with a data element which is connected to that domain.
    I want to find tables for all two case -either tables connected directly to the domain or connected via data element- and exclude the structures.
    thanks in advance.

    Hi,
    The following thing may help you.
    in se11-> search for tables having names like 'DD*'.
    From this list of tables you can find the required table to get domain, data element nad table name.
    one way of doing it:
    SELECT rollname domname
      FROM dd04l
      INTO CORRESPONDING FIELDS OF TABLE it_tab.
    SELECT rollname tabname
      FROM dd03l
      INTO CORRESPONDING FIELDS OF TABLE it_tab1
      FOR ALL ENTRIES IN it_tab
      WHERE rollname = it_tab-rollname.
    SORT it_tab1.
    DELETE ADJACENT DUPLICATES FROM it_tab1.
    LOOP AT it_tab1 INTO wa_tab.
      MODIFY it_tab FROM wa_tab
      TRANSPORTING tabname
      WHERE rollname = wa_tab-rollname.
    ENDLOOP.
    LOOP AT it_tab INTO wa_tab.
      WRITE:/ wa_tab-domname,
              wa_tab-tabname.
    ENDLOOP.
    Regards,
    Manoj Kumar P

  • How to find all APIs for AOL Module

    Hi Friendz,
    Can anybody please tell me the API for Request Group.
    Also how to find the APIs for different Screens in AOL like creating Form Functions,Forms,Menus,Responsibilities,Value Set,Value Set Names,Securing attributes etc.,
    I have tried with this URL, http://irep.oracle.com/index.html
    but page is displaying error.
    Suggest me other option.
    Can i get this through metalink
    Regards,
    Uma Jayakumar

    may be the link is broken for time being..that is the best link for APIs.
    have a look at the following this might help you.
    http://download-east.oracle.com/docs/cd/B25516_11/current/html/docset.html
    Regards
    Prashant Pathak

Maybe you are looking for