Passing and defining clusters

Hello Labview forum,
I wish to pass a cluster of input parameters to a number of different subVIs.  However, whenever I change my mind of the cluster composition, add another element, I have to go the all the subVIs that use it and redefine it there too.
Is there a way to get around this so I only have to redefine the cluster once?
I can think of 2 possible ways of achieving this but am not sure how or whether labview does them?
   1) Define a a cluster in a central location.  All subVIs look at this definition.
   2) Pass the cluster by reference and the subVIs can then unbundle components by name.
Any ideas?
Regards,
Jamie
Using Labview version 8.0

Jamieg wrote:
Thanks tbd,
I have create 2 typedef controls for 2 different clusters I have.
However, one of them has undesirable behaviour and I don't know why.
When I load the VI, cluster A's elements are all set to 0 instead of my default values.  Also, if I change the values and save the VI, the cluster's values get reset to 0.  In the saved control the cluster has the desired default values so this isn't the problem's cause.
Also, the VI now always has an asterix in the title bar, usually indicating changes have been made since the last save.  However, even after I click save, the asterix is still there.
On the other hand, cluster B has my desired qualities where it remembers default values and loads to them.
How can I fix cluster A?
Regards,
Jamie
PS
Another bit of strange behaviour I noticed was when I right click on the control in the VI front panel, there is the option to open the typedef.  However, if I have already opened the typedef for the other cluster control, then the option is no longer available.
The default data is associated with the VI not with the typedef. You usually don't want the default data to change in all VIs when you make modifications to the typedef. But as Dr. Ivel said there has been a bug in older LabVIEW versions where modifying the cluster typedef made all controls loose their default data and return to LabVIEW's default default data. Means they revert to empty strings, 0 for numbers, etc.
Rolf Kalbermatter
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions

Similar Messages

  • Staroffice Basic, Calc, passing and using ranges

    Okay, I was trying to transfer a VBA function from Excel to StarOffice.
    The routine call looks like this:
    =PS_MUL($K$22:$K$277 ; $L$22:$L$277 ; $F$22:$F$277 ; F22)
    That is, there are three ranges, and a value input.
    Here is my attempt at STAROFFICE's version of this routine
    Function PS_MUL(Tay1_A as Object, Tay2_A as Object, Rank_Vector, Rank_A as Long) as Double
       Dim Product_sum as Double
       Dim Element1 as Double, Element2 as Double
       Dim i as Integer, j as Integer
       Dim cell1 as Object, cell2 as Object
       Product_sum=0
       i=0
       For Each Element1 in Rank_Vector
          i=i+1
          j=0
          cell2=Tay2_A.GetCellByPosition(i,0)
          For Each Element2 in Rank_Vector
              j=j+1
              cell1=Tay1_A.GetCellByPosition(j,0)
              If Element1+Element2=Rank_A Then Product_sum=Product_sum+cell1.Value*cell2.Value
          Next Element2
       Next Element1
       PS_MUL=Product_sum
    End FunctionIn VBA, I simply refereced "Product_sum=Product_sum+Tay_1A( i ) * Tay_2A( j )"
    That is, the input cell ranges are 1-D arrays, and Tay_1A was implicitly defined. So I just used them as arrays, and no problem.
    Here, no matter what I try to do with my code, including getting a cell reference by position and taking its value or whatnot, I still get errors.
    I think it is becoming clear to me that I don't understand how to pass and use range references in StarBasic.
    If anybody could help me out with understanding passing and using these range references, I'd appreciate it.
    Just for comparison, here is the function in VBA:
    Function CombSumProd(Tay_1A, Tay2_A, Rank_Vector, Rank_A As Variant) As Variant
    Dim Product_sum As Variant, Element1 As Variant, Element2 As Variant
    Dim i As Integer, j As Integer
    Product_sum=0
    i=0
    For Each Element1 in Rank_Vector
      i = i+1
      j = 0
      For Each Element2 in Rank_Vector
          j=j+1
          If Element1+Element2=Rank_A Then 
                 Product_sum=Product_sum+Tay1_A(i) *Tay2_A(j)
       Next Element2
    Next Element1
    CombSumProd=Product_sum
    End Function

    Hi
    Follow the steps below - (I am assuming that you are using BI queries in your model & your tabs are as per quarter - one tab for each quarter)
    1. Create one radio button & in entry list create static list as 1 - Quarter 1, 2 - Quarter 2 & so on.
    2. Now you want plan Vs actual in one graph & Currency in another. So create these reports for each quarter separately, so in all you will have 8 reports (2 for each quarter)
    3. IN the layout you have to arrange it vary carefully, you take all the 'Plan Vs Actual' report for all the quarters & arrange them exactly one over the other. Same for Currency reports also.
    4. NOw Give visibility condition for each report example - if report is for first quarter then condition will be - bool(if(radio button string=="1",true,false)) & assign the default value in radio button as 1. so that at the time of execution you will get these reports by default.
    5. Like wise give condition for all.
    6. When you execute this report you will get radio buttons at the top & as you select different buttons differents report will get opened.
    7. As you have plased these exactly one over the other, user will not come to know these are different reports.
    Try this method, if you have any doubts for this, please do ask me.
    Regards
    Sandeep

  • Passing user-defined field to Backend system

    Hi All,
    Please advice how we can pass user-defined fields of shopping cart to same user-defined fields in purchase requisition/purchase order in backend R/3 system.
    I know there is parameter IT_CUF_ITEM in BADI BBP_CREATE_REQ_BACK. If anyone know how to pass field values by this parameter or otherwise, it will be very helpful to me.
    Thanks & Regards,
    Kamaljit Singh

    Hello Kamaljit,
    If you want to pass the custom parameters then you can use the badi BBP_CREATE_PO_BACK/BBP_CREATE_REQ_BACK to fill the header/Item level parameters.
    while building the item level parameters internal table, make sure that you are passing the header guid and the item number and the R/3 BackEnd table name,Fieldname(R/3 Custom Fieldname) with the value(SRM Custom field value).
    Hope this information will be useful to you.
    Regards,
    Mani.
    Please assign points for usefull answers
    Message was edited by: Mani Sreedharala

  • How to log in with my old Apple account? I forgot my pass and I did change my apple ID before canceling first?? I am from Croatia so did folow al the discussion and the to resolve the problem but no luck. Can not call from Croatia the Apple help desk

    How to log in with my old Apple account? I forgot my pass and I did change my apple ID before canceling first?? I am from Croatia so did folow al the discussion and the to resolve the problem but no luck. Can not call from Croatia the Apple help desk.i did try all the options but I can not find the phone number to call from Croatia,
    I can not change my Apple ID to the old mail (not possible!)
    The old mail don't accept the new password..
    I can not delete the Icloud all the time asking my the password of the old mail!
    I realy need help

    You can not merge accounts.
    Apps are tied to the Apple ID used to download them, you can not transfer them.

  • What is the difference between variable and Define

    WHAT IS THE DIFFERENCE BETWEEN
    these different declarations when it is done using the keyword "variable" and "define"
    and both of these are done OUTSIDE "DECLARE"
    VARIABLE g_monthly_sal NUMBER
    DEFINE p_annual_sal =5000
    -- I understand that p_annual_sal will be taken as a CHAR.
    -- ALSO IF DEFINE variable acts as macro variable, SO is it necessary to give it some value whenever we define it.
    if not what value would be substituted for it?
    OR does that mean whenever we want to specify data type for a bind varible we should use VARIABLE and
    when we do not want to specify type we use DEFINE?
    THANK YOU
    Edited by: user6287828 on Feb 24, 2009 11:03 AM
    Edited by: user6287828 on Feb 24, 2009 11:04 AM

    Both are SQL*plus commands. In a real programming environment you will not use such constructs (except a few rare scripting cases).
    The difference is how the construct is later used. DEFINE is more like a copy&paste string. Whereever the name of this substitution variable is found it will be pasted into the sql*plus session.
    VARIABLE creates a real variable. You can change the value and if follwos the usual principles of variables (including binding).
    Example can be found the docs:
    from the docs
    Where and How to Use Substitution Variables
    You can use substitution variables anywhere in SQL and SQL*Plus commands, except as the first word entered. When SQL*Plus encounters an undefined substitution variable in a command, SQL*Plus prompts you for the value.
    You can enter any string at the prompt, even one containing blanks and punctuation. If the SQL command containing the reference should have quote marks around the variable and you do not include them there, the user must include the quotes when prompted.
    SQL*Plus reads your response from the keyboard, even if you have redirected terminal input or output to a file. If a terminal is not available (if, for example, you run the script in batch mode), SQL*Plus uses the redirected file.
    After you enter a value at the prompt, SQL*Plus lists the line containing the substitution variable twice: once before substituting the value you enter and once after substitution. You can suppress this listing by setting the SET command variable VERIFY to OFF.
    Using Bind Variables
    Bind variables are variables you create in SQL*Plus and then reference in PL/SQL or SQL. If you create a bind variable in SQL*Plus, you can use the variable as you would a declared variable in your PL/SQL subprogram and then access the variable from SQL*Plus. You can use bind variables for such things as storing return codes or debugging your PL/SQL subprograms.
    Because bind variables are recognized by SQL*Plus, you can display their values in SQL*Plus or reference them in PL/SQL subprograms that you run in SQL*Plus.
    Creating Bind Variables
    You create bind variables in SQL*Plus with the VARIABLE command. For example
    VARIABLE ret_val NUMBER
    This command creates a bind variable named ret_val with a datatype of NUMBER. See the VARIABLE command for more information. (To list all bind variables created in a session, type VARIABLE without any arguments.)
    Referencing Bind Variables
    You reference bind variables in PL/SQL by typing a colon (:) followed immediately by the name of the variable. For example
    :ret_val := 1;
    To change this bind variable in SQL*Plus, you must enter a PL/SQL block. For example:
    BEGIN
    :ret_val:=4;
    END;
    /

  • HT203167 i purchased a tv show season pass and it is not showing up in my itunes account

    i purchased a tv season pass and it isnt showing up in my itunes

    I always check email for a confirmation of purchase before I worry- and I did get one. But apparently ( not like normally) this last pass purchase I made had some kind if delay in showing up as purchased on ATV. Half an hour later- there it is.... Which is good sine I had to answers on what to do other than restart again. If it doesn't show in yr acct or have a receipt- id rebut it. It's easier to get them to refund a duplicate than search for the invisible.

  • I have bought a Season pass for The Big Bang Theory. I have downloaded alle recent Epiodes without any Problems. But now... i can't download the latest Version for free. Itunes doesn't recognize my Season pass and let's me buy it again. Whats going?

    I have bought a Season pass for The Big Bang Theory. I have downloaded alle recent Epiodes without any Problems. But now... i can't download the latest Version for free. Itunes doesn't recognize my Season pass and let's me buy it again. Whats going? Do I miss something?
    Best regards,
    Michele

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • What I have to do because when I want to automatically synchronize a tone, even 5 seconds pass and tells me that the session was unable to synchronize?

    I do because when I want to automatically synchronize a tone, even 5 seconds pass and tells me that the session was unable to synchronize

    Hi Jen.  My daughter just compleated her nursing program and is now working as a full time nurse.  Focus and study hard and soon you will be there too.  Now to the problem at hand.  I have the same problem.  I gave up on it and satisfied myself with my iPod without the upgrade.  Reason being I've read so many posts of people having problems after the upgrade.  But I'm sure other factors are involved.  Nevertheless here is the fix most say works to solve the problem:  What ever virus protection you have installed on your computer, disable it.  Then try to install the update. After that enable the protection. I had Kaspersky, and it does it's job well. The thinking is, the virus protection is blocking the upgrade.  Hope this works.   Charlie

  • Explain me Auth_id  and definer rights in detail with example.

    Explain me Auth_id and definer rights in detail with example.

    ibney wrote:
    Explain me Auth_id and definer rights in detail with example.How do I ask a question on the forums?
    SQL and PL/SQL FAQ
    unwilling or incapable to Read The Fine Manual yourself?
    http://docs.oracle.com/cd/E11882_01/server.112/e25789/toc.htm

  • Assign and define name in numbers version3.2

    how to assign and define a name.
    In excel I created a table with exchange rates assigning a name to sfr/euro, sfr/us$, sfr/can$ and so on.
    When actualizing the exchange rate in the three above colums I could obtain the actualisation of the entire file (100 colums in 14 sheets).
    I cannot find anything similare in numbers version 3.2.
    Thank you.

    Numbers doesn't have an equivalent to named ranges, exactly. but if you turn on "use header names as labels" then use absolute referencing, lock the cells, it will almost duplicate the same feel.
    Jason

  • Passing user defined parameters in oracle reports thru command line

    Hi All
    We are currently using Reports 6i with Oracle 10g 10.2.0.4.0
    I would like to know that is it possible to pass user defined parameters values while calling report from command line.
    For Example: I am using following coding to call report from command line.
    for /f "tokens=1-3 delims=/ " %%a in ('date /t mm/dd/yyyy -1') do (
    set mm=%%b
    set dd=%%a
    set yyyy=%%c)
    rwrun60 report=c:\reports\banks.rdf userid=express/test@test_rs2 destype=FILE desname=c:\reports\banks%dd%%mm%%yyyy%.pdf desformat=PDF BACKGROUND=NO BATCH=YES
    The report contains some user defined parameter which is using in where condition of reqport query.
    Select * from banks
    where id = :Bank_ID
    Now I want to Pass value for :Bank_Id from command line (like we pass parameter list while calling report with run_product), how it is possible?
    Thanks
    Hassan

    Hi guys
    Fortunately I am able to perform the required task as I just added the report parameter field as follows:
    rwrun60 report=c:\reports\banks.rdf userid=express/test@test_rs2 destype=FILE desname=c:\reports\banks%dd%%mm%%yyyy%%h%%mi%%ss%%ts%.pdf desformat=PDF BACKGROUND=NO BATCH=YES ERRFILE=c:\reports\error.log LOGFILE=c:\reports\joblog.log bank_id='MCB'
    bank_id is the report parameter using in where clause.
    Regards,
    Hassan

  • Expressions and Defining High/Low Limits

    I have an accuracy requirement to assign a 1.5% and a 1% High/Low  from a previous test.  The previous test is a Numeric Array where the first 12 values have to be assigned a 1.5% limit and the remaining 4 have a 1% limit.  
    Is there a way to do two while loops on the same step or do I have to break out each element in the array and define its own Parameter.
    So basically I have something like this so far:
    First test with post expression:
    Parameters.Test = Step.NumericArray
    Then I have an expression step with the loop options going 1-16 with this... 
    RunState.NextStep.Result.Measurement[ RunState.LoopIndex ].Limits.Low = (Parameters.Test[ RunState.LoopIndex ] * 0.985),
    RunState.NextStep.Result.Measurement[ RunState.LoopIndex ].Limits.High = (Parameter.Test RunState.LoopIndex ] * 1.015)
    But as you see that will add a 1.5% to all of them...Do I have to break out each element in the array individually?? Or is there a way to modify that expression to make the last 4 values of my array multiply by .99 and 1.01?
    Thanks
    Message Edited by Roons1159 on 02-20-2007 03:22 PM

    I got it.. I didn't know I could define paramters for any given step in a sequence, only thought Step, previous step, and next step...

  • NSDate, NSTimeInterval, Calculating time passed and Core Data

    I'm creating a timesheet/stopwatch application of sorts for the iPhone.
    I am using an NSDate in CoreData and following this pattern:
    1) Start:
    Session* session = (Session*)\[NSEntityDescription insertNewObjectForEntityForName:@"Session" inManagedObjectContext:managedObjectContext_\];
    session.startTime = \[NSDate date\];
    2) Calculate time passed and update label:
    NSTimeInterval timeDiff = -1*\[session.startTime timeIntervalSinceNow\];
    cell.textLabel.text = \[NSString stringWithFormat:@"%f", timeDiff\];
    I also see that I could use:
    NSTimeInterval timeDiff = \[\[NSDate date\] timeIntervalSinceDate:session.startTime\];
    cell.textLabel.text = \[NSString stringWithFormat:@"%f", timeDiff\];
    I don't like this since it is needlessly creating a lot of dates - and there could be 100s of these timers running at the same time ... or, does timeIntervalSinceNow possibly also create a new date evertime under the covers and I'm pre-optimizing or something too early. Can anyone suggest a better way to do this? For instance, initially, I was simply using NSTimeInterval:
    NSTimeInterval startTime = \[NSDate timeIntervalSinceReferenceDate\];
    NSTimeInterval endTime = \[NSDate timeIntervalSinceReferenceDate\] - startTime;
    But I end up struggling with the best way to manage this as part of a CoreData entity. Should I uses a double? or a Date? I understand that a Date is implemented as an NSTimeInterval but I can't assign or subtract an NSTimeInterval directly to my entity.date
    session.startTime = \[NSDate timeIntervalSinceReferenceDate\];
    NSTimeInterval timeDiff = \[NSDate timeIntervalSinceReferenceDate\] - session.startTime;
    Obviously, this won't compile when startTime is a Date object but I think it illustrates what I'm after. Trying to 'lightly' calculate time passed by using the start time assigned to an Entity. Maybe the original way is just fine. I'm just looking for suggestions. I guess I could try running this inside a profiler. As a side note, is there a better way to print the stopwatch output to the screen? It seems like overkill to constantly update a Label's text property ... hundreds, maybe thousands of times especially when there may be 10 or so timers running on the same screen. Does anyone have any advice for stopwatch type 'update the time' label behavior?
    I'm doing this in an NSTimer potentially set to fire every .01s ... IE: this method will get hit quite a bit ...
    Thanks.
    Message was edited by: LutherBaker

    LutherBaker wrote:
    I don't like this since it is needlessly creating a lot of dates - and there could be 100s of these timers running at the same time ... Can anyone suggest a better way to do this?
    That doesn't sound good. Why would you have so many?
    I'm just looking for suggestions. I guess I could try running this inside a profiler. As a side note, is there a better way to print the stopwatch output to the screen? It seems like overkill to constantly update a Label's text property ... hundreds, maybe thousands of times especially when there may be 10 or so timers running on the same screen. Does anyone have any advice for stopwatch type 'update the time' label behavior?
    I'm doing this in an NSTimer potentially set to fire every .01s ... IE: this method will get hit quite a bit ...
    That doesn't seem like a side note. That seems like the main point.
    As "good" video is typically around 30 frames per second, it doesn't make any sense to update the user interface any more frequently than that. Also, you really only need one timer. Let that timer update all the values. You may not need any timers. You could do everything via key-value coding and let the OS handle all the work.

  • Royal Battle Bears game is suddenly denying me access. Is asking me to sign in and when I get my pass and username doesn't recognized it? Helpppp

    We have been using the game frequently since we bought the app, our last purchase related to the game accesories was on June 22 but in June 25 the game started to asking for my pass and username, when I put the info in doesn't recognize it and marks it as invalid. What should I do? If I p[en a new account all the info gained in the game would be lost :{

    You might get more help contacting the developer, or checking to see if anything is mentioned about it in the App Store.  If there is a general problem with an app, the developers will sometimes post a statement about it, or reviewers will say something about it.  It may be an issue with their server capacity or something.

  • 4th time I am trying to post this question!!! Why can't I watch season 5 episode 9 of Downton Abbey?? I have purchased a season pass and have watched all previous episodes

    4th time I am trying to post this question!!! Why can't I watch season 5 episode 9 of Downton Abbey?? I have purchased a season pass and have watched all previous episodes. I can't watch on any of my devices. iMAC - iPad 3rd gen. - iPhone5

    What happens when you try to watch it ?

Maybe you are looking for

  • I cannot get a dvd to play. The error message says "media type not supported". I think it is a .m2ts. Any idea on how I can get it to play?

    I cannot get a dvd to play on my computer. The error message says in iDVD is "media type not supported". The DVD was produced with a video camera and is in HD format. I think the the format is .m2ts? Any ideas on how to get this to play?

  • MX870 connection issues with MacBook Pro

    Hi I have a MacBook Pro on 10.8.5 and I cannot find or connect the MX870 printer wirelessly. It used to connect perfectly and now doesn't at all. I have an iMac on 10.9.3 that runs the MX870 without issue. Not sure how to resolve? Thanks

  • TS3274 My iPad will not show up in My Computer

    After updating iTunes last night only to find that Apple Support services would not start, and doing a clean reinstall of iTunes and all its componants, I now have another problem... My iPad will not register on my computer, or iTunes. It wants to co

  • NO CONNECTON

     am getting very frustrated I have used my entire day trying to make my skpe work. I know that my computer is working fine. I can hear programs play music etc. I used to be able to use skype without a problem. I got a new skype friendly head set and

  • Negative 0NETPRICE in BW when an item is deleted in R/3

    Hello everyone -- We're using the LO-Cockpit.  Can someone tell me why 0NETPRICE becomes negative in BW when a PO line item is deleted in R/3?  Is this standard functionality or a bug in the system?  I tried implementing OSS note 791334, but 0NETPRIC