Is it possible for a cluster to be set to allow variable data input?

I posted this question at the bottom of a different thread but it looks like that one has died out plus this is really a separate question. So I hope no one minds me starting a new thread here.
I made the program Convert2Matfile.vi which I intend to use as a SubVI in other programs. How I want this program to work is I would like to bundle up double any quantity of 1D/ 2D arrays and or numeric values and pass them to this tool which will then convert what ever it is sent to an appropriate variable in a matlab file using the element name as the matlab variable name.
The issue I am having here, is that currently I have a 1D, 2D and a numeric value sitting in the cluster definition on my front panel of the Convert2Matlfile.vi. Because I have this, the code is looking for every cluster to be structured exactally like the one I have in the front panel. How do I source that code more generically? See the photo below of the broken wire. Error message is as follows;
You have connected two arrays of different dimensions.
The dimension of input cluster -> array #2 is 1.
The dimension of Cluster In -> array 2 is 2.
So clearly it is looking for the Cluster to be exactally like the one it is looking for. Is there any way to do this more generically so it can accept any type of cluster of any quantity of values so long as they meet my criteria?
Attachments:
conv2mat.vi ‏49 KB
Convert2Matfile.vi ‏58 KB
Conv2Matlab Cluster Issue.png ‏33 KB

Well it looks like I will likely need to treat this as a variant. Unfortunatley for me I hate dealing with Variants in LabVIEW likely more as a result as a lack of understanding when it comes to how to deal with them than anything. My stratedgy I would think should be as follows figure out how many items are in my variant that are either a numeric, a 1D or a 2D array. Then one by one go to each of those values. If say it is a numeric get the numerical value, get the label name and send it over to my convert to Matlab program one by one.
So that would be the theory behind how I would try to do this. Now how the heck do I actually do anything along those lines? I can't even figure out how to get the number of elements in my variant. I would have thought the "Get Variant Attribute function" would be a great place to start. So I made up the exploreVariant.vi below. See the images of the code plus the front panel after execution. I followed the instructions from the following location;
http://zone.ni.com/reference/en-XX/help/371361J-01​/lvhowto/retrievingattribsfromvard/
Add the Get Variant Attribute function to the block diagram.
Wire variant data to the variantinput of the Get Variant Attribute function.
Leave the name input and the default valueinput of the Get Variant Attribute function unwired.
Right-click the names output and select Create»Indicatorfrom the shortcut menu.
Right-click the values output of the Get Variant Attribute function and select Create»Indicatorfrom the shortcut menu to retrieve the values associated with each attribute.
Run the VI.
Even after following the instructions above nothing shows up in either the names or values collumn. So how the heck do I actually do what I want to do? I just can't seem to figure out how to index through a variant at all.
Attachments:
exploreVariant.vi ‏10 KB
variantcode.png ‏35 KB
VariantFrontPanel.png ‏73 KB

Similar Messages

  • Is it possible for a mac to recognise a camcorder as a video input without using imovie/final cut?

    Is it possible for a mac to recognise a camcorder as a video input without using imovie/final cut, I use web based video capture software and need an HD input that the mac would recognise as if it were a webcam?
    Any help would be greatly appreciated!
    Thanks

    HI,
    I used to use an analogue Camcorder and a DV converter that had Firewire output at one stage when starting out in iChat.
    See the Item 3  in the "Before your Start" item on this page
    8:41 PM      Saturday; November 12, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously
    Message was edited by: Ralph Johns (UK)

  • Possible for Oracle to consider constraints when using bind variable?

    Consider the following table with a check constraint listing the possible values of the column
    create table TEST_TABLE(
    my_column varchar2(10));
    insert into TEST_TABLE select 'VALUE1' from dba_objects;
    alter table TEST_TABLE
    add constraint TEST_TABLE_CHK1
    check (my_column in ('VALUE1', 'VALUE2'));
    begin dbms_stats.gather_table_stats(ownname=>user,tabname=>'TEST_TABLE');END;Let's see the number of logical I/O's needed for the following SQL statements.
    (The value was obtained by the delta ofselect m.value from v$mystat m, v$statname n
    where name='session logical reads' and m.statistic#=n.statistic#)
    If string lateral is used:
    declare
       n number;
    begin
      select count(*) into n from test_table where my_column='VALUE1';
    end;
    Consistent Gets: 21
    declare
       n number;
    begin
      select count(*) into n from test_table where my_column='VALUE2';
    end;
    Consistent Gets: 21
    declare
       n number;
    begin
      select count(*) into n from test_table where my_column='VALUE3';
    end;
    Consistent Gets: 0Oracle can eliminate the table if it knows the queried value can't satisfy the constraint. Good.
    (Actually, the execution plan for the last query included the 'FILTER' operation.)
    However, if bind variable is used:
    declare
       n number;
       x varchar2(10);
    begin
      x := 'VALUE1';
      select count(*) into n from test_table where my_column=x;
    end;
    Consistent Gets: 21
    declare
       n number;
       x varchar2(10);
    begin
      x := 'VALUE3';
      select count(*) into n from test_table where my_column=x;
    end;
    Consistent Gets: 21Oracle can't eliminate the table using the constraint. I can understand that because bind variables are used, Oracle can't directly eliminate the table when generating the execution plan. However, is it possible to eliminate the table, or at least employ some shortcut in runtime? If not, will this be a performance loss compared with using values laterals when check constraint exists?
    (And is it possible to use autotrace on PL/SQL block in sqlplus?)
    Oracle:
         10.2.0.4 SE
         11.2.0.2 SE
    OS:
         RHEL5

    However, is it possible to eliminate the table, or at least employ some shortcut in runtime? I can't see how to do this. Oracle has a sqltext that has an embedded bind variable in it. And for this sqltext it has an execution plan in the shared pool that will be used irrespective of the actual bound values at runtime.
    Maybe in 11G, with adaptive cursor sharing / plan bind awareness, Oracle might be smart enough to introduce a second execution plan for the VALUE3 case.
    If not, will this be a performance loss compared with using values laterals when check constraint exists?Only if you submit the dumb query and search for records with VALUE3... Normally your application code would not hold/generate these queries.
    Will it?
    For columns whose values are bound by a CHECK constraint, one might even consider to never use bind variables, since very likely you will have few versions of queries that use these columns.
    Not?
    Edited by: Toon Koppelaars on Jun 22, 2011 1:20 PM

  • Is it possible for the test equip. to tell me the measured data is ready?

    When programming to read from a test equipment (e.g. ocsilloscope)
    connected to PC/GPIB, many times I have to set a delay before reading
    the value, otherwise the return value will be some invalid numbers
    (e.g., 0). To achieve valid test results and testing time reduction, I
    used trial-and-error to get a "minimum" delay time. But even this
    delay time which works for one equipment may not work for another.
    It's such a headache!!!
    Is it possible to poll/inquire the status of the test equipment in the
    program if the measured data is ready? If yes, how?
    Thanks a lot for your answer!

    If you are programming using VISA, the following link takes you to some examples of waiting until the instrument has data available. The example link also includes other examples of synchronizing your application with your instrument.
    Using Instrument Status Registers with Service Requests and Polling

  • Possible for POJO to have a set of children with only one table?

    I have a situation that I'd like to model with Hibernate, but I'm not sure how to proceed.
    I've got two objects: Filter and Criterion. Filter has a java.util.Set of Criterion children.
    I currently have a schema with two tables: FILTERS and CRITERIA. The FILTERS table has nothing more than a primary key. CRITERIA has a foreign key relationship with FILTERS. I have a FilterDAO that will query the FILTERS table and bring back a Filter object that will use the one-to-many, parent-child relationship between the two tables to populate the Set.
    A DBA here has pointed out that the FILTERS table is anemic - it has nothing more than a primary key. She suggested that I eliminate it and go directly against the CRITERIA table to populate that Set.
    I'm so used to thinking about these things in terms of primary/foreign key relationships that I'm not seeing how to accomplish this with Hibernate. Is it a mere <set> declaration that populates the child java.util.Set<Criterion>? The WHERE clause would have to include a filter type. Is that where the JOIN has to come? Is the two table schema absolutely necessary, or can I get away without it?
    Hibernate allows the object model to be more fine-grained than the schema. The classic example is a PERSON table that has address information it in. I can model this on the object side using Person and Address classes and ask Hibernate to fetch the Address state as a component. Is this the same situation as my Filter and Criterion?
    Sorry if I sound confused, or if the question rambles. I guess I don't understand Hibernate well, because any time I get off the beaten path I fall into a hole.
    %

    Well, you're more advanced than me with Hibernate. I'd be very surprised if that were true, DrClap. 8)
    I can't even get one-to-many relationships working the
    way I'd like, every time I think I have it right
    (i.e. just the same as the examples) it gives me some
    guff about backreferences not existing.I'm finding Hibernate to be a bit difficult, especially when I don't have control over the schema. Our DBAs don't seem to follow all the "best practices" that Hibernate recommends.
    So my advice might not be the best. But if you don't
    have the Filters table, but you still need to get all
    the Criterions with "filter key" = x, then isn't that
    just a Query? Sure, you get the data back as a List,
    but you can wrap that in a Set pretty easily.I've gone back to the DBA and concluded that we have to have a FILTERS table (there's a FILTER_TYPE descriptor field that I've added). It's back in, so the 1:m with CRITERIA should work fine.
    But it begs the question: Does Hibernate and O/R mapping demand at least one table per object?
    If I look in "Hibernate In Action" on page 92, it says "A major objective of the Hibernate project is support for fine grained object models" - more classes than tables. There should be an adjective "persistent" applied to classes in that phrase, because I can have many more classes that are not persisted.
    So I take this to mean that the limit is one persistent class per table, but never less. True?
    %

  • Can i set an allowance for myself in the itunes store?

    i want to set monthly or weekly spending limits. for obvious reasons. can i set an allowance?

    An alternative is to buy prepaid iTunes Store cards. If you remove the credit card information from your iTunes Store account, you'd then be limited to the amount of balance from the cards.

  • Is it possible for a process to participate in two separate clusters

    Is it possible for a process to participate in two separate clusters? For example if our application would like to get market data in one cluster that has a separate multicast address, and post order in another.

    The easiest way for a client to access multiple clusters is via Coherence*Extend:
         http://wiki.tangosol.com/display/COH33UG/Configuring+and+Using+Coherence*Extend
         The client would not be a member of the cluster, instead it would connect to the cluster via a proxy node that is in the cluster. Using <remote-cache-scheme>, you can configure a cache to point to one proxy (in cluster A) and have another cache point to another proxy (in cluster B.)
         Thanks,
         Patrick Peralta

  • Maintaince view creation for a cluster table

    Hi friends,
    I have created a maintaince view for a cluster table bseg and i have activated it its working fine..
    now my problem is i can create maintaince view for mutiple tables if other tables are linked with primary table using foriegn key relationship..
    Now can any one tell me is it possible to create maintance view for cluster table with multiple tables as i need a linked table with bseg which iam not able to get... ie : when i click on the relationship tab iam not getting the linked tables for bseg...
    now can i create a maintaince view with 2 linked cluster tables..
    if so can any one tell me how to create it.
    As sap says we can create projection view for cluster and pooled table and we cannot create database view for cluster and pooled tables , but it does not mentioned like that for maintaince view....
    I assume we can do it.... as iam trying to create a maintaince view with single cluster table then it shoudl allow me to create for multiple linked cluster tables.... and is it mandatory to maintain TMG for this maintaince view....?
    Regards
    KUMAR

    yes.. ur right inserting values into a cluster table other than standard sap tarnactions is dangerious....
    But sap didnot mentioned any where that we cannot maintain data for cluster tables using maintaince view... which it said for database view..that pooled and cluster table cannot be used for database view..
    Regards
    Kumar

  • Can we create secondary index for a cluster table

    hi
    can we create secondary index for a cluster table

    Jyothsna,
    There seems to be some kind of misunderstanding here. You <i>cannot</i> create a secondary index on a cluster table. A cluster table does not exist as a separate physical table in the database; it is part of a "physical cluster". In the case of BSEG for instance, the physical cluster is RFBLG. The only fields of the cluster table that also exist as fields of the physical cluster are the leading fields of the primary key. Taking again BSEG as the example, the primary key includes the fields MANDT, BUKRS, BELNR, GJAHR, BUZEI. If you look at the structure of the RFBLG table, you will see that it has primary key fields MANDT, BUKRS, BELNR, GJAHR, PAGENO. The first four fields are those that all cluster tables inside BSEG have in common. The fifth field, PAGENO, is a "technical" field giving the sequence number of the current record in the series of cluster records sharing the same primary key.
    All the "functional" fields of the cluster table (for BSEG this is field BUZEI and everything beyond that) exist only inside a raw binary object. The database does not know about these fields, it only sees the raw object (the field VARDATA of the physical cluster). Since the field does not exist in the database, it is impossible to create a secondary index on it. If you try to create a secondary index on a cluster table in transaction SE11, you will therefore rightly get the error "Index maintenance only possible for transparent tables".
    Theoretically you could get around this by converting the cluster table to a transparent table. You can do this in the SAP dictionary. However, in practice this is almost never a good solution. The table becomes much larger (clusters are compressed) and you lose the advantage that related records are stored close to each other (the main reason for having cluster tables in the first place). Apart from the performance and disk space hit, converting a big cluster table like BSEG to transparent would take extremely long.
    In cases where "indexing" of fields of a cluster table is worthwhile, SAP has constructed "indexing tables" around the cluster. For example, around BSEG there are transparent tables like BSIS, BSAS, etc. Other clusters normally do not have this, but that simply means there is no reason for having it. I have worked with the SAP dictionary for over 12 years and I have never met a single case where it was necessary to convert a cluster to transparent.
    If you try to select on specific values of a non-transparent field in a cluster without also specifying selections for the primary key, then the database will have to do a serial read of the whole physical cluster (and the ABAP DB interface will have to decompress every single record to extract the fields). The performance of that is monstrous -- maybe that was the reason of your question. However, the solution then is (in the case of BSEG) to query via one of the index tables (where you are free to create secondary indexes since those tables are transparent).
    Hope this clarifies things,
    Mark

  • Grid Infrastructure for a Standalone Server or Grid Infrastructure for a Cluster?

    Hi,
    I want to install a single instance database and I want to use ASM.
    Now my configuration is only one node but in the future probably it scale on multiple node.
    So, can I use Grid Infrastructure for a Cluster for only one node or I must use Grid Infrastructure for a Standalone Server?
    Regards

    If you plan later ro use more than one server, than install the cluster grid infrastructure. It is possible to install on one server.

  • Performance Tuning for A016 (cluster table) Query

    Dear SDNers,
    Issue:
    The report runs  successfully sometimes and sometimes the report gets timed out.
    My findings
    Query which is taking a  long time to execute is the query on A016(cluster Table) to fetch the condition details
    SELECT kschl
             evrtn
             evrtp
             knumh
             FROM a016 INTO TABLE t_a016
             FOR ALL ENTRIES IN t_ekpo
             WHERE
             kappl EQ c_m (Application)
             AND kschl IN s_kschl
             AND evrtn = t_ekpo-ebeln
             AND evrtp = t_ekpo-ebelp.
    where t_ekpo contains entries (4354)from ekko and ekpo based on the selection screen entries.
    I see that a016 is a cluster table that is being used here and t_a016 contains (390*) records after the above fetch.
    Dear readers,Please help me as to what has to be taken care of inorder to fine tune this select query?
    what are the things that i need to make corrections in.
    How can i make this fetch effective and faster?
    Please help me with your inputs.
    Regards,
    SuryaD.
    Edited by: SuryaD on Oct 26, 2009 6:29 PM

    Hi,
    1) Try to hit the table A016 with only unique entries of t_ekpo for EBELN and EBELP...
    Use some temp table lt_ekpo = t_ekpo
    i.e. sort lt_ekpo by ebeln ebelp
    delete adjacent duplicates from lt_ekpo comparing ebeln ebelp.
    Now write you select query as below...So that the table might be hit with less number of entries...
    SELECT kschl
    evrtn
    evrtp
    knumh
    FROM a016 INTO TABLE t_a016
    FOR ALL ENTRIES IN lt_ekpo
    WHERE
    kappl EQ c_m (Application)
    AND kschl IN s_kschl
    AND evrtn = lt_ekpo-ebeln
    AND evrtp = lt_ekpo-ebelp.
    Please note that there will be no change in the output data if you hit with duplicate entries/unique as FOR ALL ENTRIES will fetch only unique entries matching the where condition.
    2) Order of where conditon fields should be same as the order in table for better performance...
    3) If you find any index on the table, try to include the fields in where condition(if possible) for better performance
    Hope this helps
    Regards
    Shiva

  • ACFS recomandations for weblogic cluster

    Hi,
    Can some one help me to findout material(step by step) for ACFS usage with weblogic clustering.
    Originally I started thread here :
    Re: ACFS recomandations for weblogic cluster
    Thanks in advance for valuable time
    Datla

    The first question you need to ask yourself is for what purpose do i need this type of filesystem when using a WebLogic Cluster?
    The first which comes to mind is the migration of so-called singleton service, such as JMS Servers, persistence stores and JTA.
    For example, when a machine fails, we must bring the services, running on the failed machine, up on other machines. The JTA
    service plays a critical role in recovery from a failure scenario where transactions are involved. In-flight transactions can hold locks
    on underlying resources. If the transaction manager is not available to recover these transactions, resources may hold on to these
    locks for a long time. This makes it difficult for an application to function properly. JTA service migration is possible only if the server's
    default persistent store (where the JTA logs are kept) is accessible to the server to which the service will migrate.
    This where a shared storage mechanism comes into play - to store files which need to be accessible from every server. The concept
    of ACFS which is useful in this scenario is the mount model (http://download.oracle.com/docs/cd/E14072_01/server.112/e10500/asmfilesystem.htm#CACJGEAC)
    To set-up a mount point you can follow the steps presented here: http://download.oracle.com/docs/cd/E15051_01/wls/docs103/cluster/service_migration.html#wp1049463
    This link contains the steps in order to configure JMS migration: http://download.oracle.com/docs/cd/E15051_01/wls/docs103/cluster/service_migration.html#wp1065826
    This link contains the steps in order to configure JTA migration: http://download.oracle.com/docs/cd/E15051_01/wls/docs103/cluster/service_migration.html#wp1054024

  • Port required for Veritas cluster implementation

    hello there ,
    i need to know what are the port required for veritas cluster implementation on Sun Messaging Server 6.2 . anybody care to help me on this ?
    thanks

    > We are planning a 2 node Oracle 9i RAC cluster on Sun
    Cluster 3.Good. This is a popular configuration.
    Can you please explain these 2 questions?
    1)
    If we have a hardware disk array RAID controller with
    LUNs etc, then why do we need to have Veritas Volume
    Manager (VxVM) if all the LUNS are configured at a
    hardware level?VxVM is not required to run RAC. VxVM has an option (separately
    licensable) which is specifically designed for OPS/RAC. But if
    you have a highly reliable, multi-pathed, hardware RAID platform,
    you are not required to have VxVM.
    2)
    Do we need to have VxFS? All our Oracle database
    files will be on raw partitions.No.
    IMHO, simplify is a good philosophy. Adding more software
    and layers into a highly available design will tend to reduce
    the availability. So, if you are going for maximum availabiliity,
    you will want to avoid over-complicating the design. KISS.
    In the case of RAC, or Oracle in general, many people do use
    raw and Oracle has the ability to manage data in raw devices
    pretty well. Oracle 10g further improves along these lines.
    A tenet in the design of highly available systems is to keep
    the data management as close to the application as possible.
    Oracle, and especially 10g, are following this tenet. The only
    danger here is that they could try to get too clever, and end up
    following policies which are suboptimal as the underlying
    technologies change. But even in this case, the policy is
    coming from the application rather than the supporting platform.
    -- richard

  • Install a grid infrastructure for a cluster for single node Windows Server

    Hello,
    Can you suggest me how to install a Oracle Single Node RAC 11g on a Windows Server 2008 x64 bits? It's for testing purposes and I don't need two nodes. I know that Linux is better, but my company only uses Windows servers. Our former consultant was able to do it, but didn't tell us how to and that server was lost.
    I know that we have to install first Grid Infrastructure. Running the "Oracle Grid Infrastructure" installer, I could successfully install a "Grid Infrastructure for a Standalone Server". But that grid is not for a RAC database. When trying to install the Database software, it allowed to me to only install "Single instance database", not "Real Application Cluster database installation".
    Running the "Oracle Grid Infrastructure" installer, I tried to select option:
    "Install and Configure Grid Infrastructure for a Cluster" -> Typical Installation:
    SCAN Name: SRVORAC-cluster
    Validating SCAN information
    INS-40922 Invalid SCAN Name - unresolvable to IP address.
    Is it possible to install a grid infrastructure for a cluster for a single-node or one-node Windows Server ?
    Edited by: user521219 on Jan 30, 2012 12:46 PM

    HI,
    You probably have misconception about Single node RAC. This feature does not need that you have only one physical machine in a RAC, it actually means that in a RAC environment (2 or more nodes), you can run your database on only one node(single instance) and then later you can move this single instance to any other node of the RAC (so that you can do some patching on this node making your database available all the time). This also has some other benefits, see bellow.
    http://www.oracle.com/technetwork/database/clustering/overview/ug-raconenode-2009-130760.pdf
    http://docs.oracle.com/cd/E11882_01/install.112/e25666/whatsnew.htm#sthref8
    Salman

  • PO 'No goods receipt possible for purchase order'

    Hi gurus!
    While trying to make Confirmation of a PO in the SRM Portal the user is getting the error 'No goods receipt possible for purchase order'
    The scenario used is Classic, so PO is replicated directly to the R/3 system.
    Any idea why this is happening?
    Thanks a lot!

    Hi, thanks for the quick reply!
    Where i can check the Item category?
    I found a field called 'subitem category' but it's blank
    with this possible values:
    1 Variant                               
    2 Discount in kind: inclusive bonus qty.
    3 Empties                               
    4 Discount in kind: exclusive bonus qty.
    5 Prepack item                          
    6 Display item                          
    7 Set item                              
    8 Interchangeable items (IBU: A&D)      
    9 Pre-packing (SLS items)               
    H GT Bill of Material, Header Relevant  
    I GT Bill of Material, Item Relevant    
    About PO type i think it's EC (doc_type?), in R/3 is shown as EBP PO
    I checked in backend system, in the item details > Delivery and the 'Goods Receipt' is checked.

Maybe you are looking for

  • Home Sharing Not Working Properly

    Hi everyone, I've been through the support pages and the forums here and I've tried just about everything I can think of and whatever was suggested but I'm still having Home Sharing issues. Well, it works for one Mac. I have: 24" iMac 2.8GHz, running

  • Updation of material data using a function module

    HI   i want to update fields in the mvke table,but the field is a Customer field in the table, not sap table field.i want to update the field using a program , not going to mm02. which function can i use for the updation.There is a function module MA

  • Clicking sound on optical drive

    I tried burning cd or dvd on my macbook, and i keep hearing a clicking sound ,and gives me an error, so it ejects the cd or dvd, so that means my optical drive needs to be replaced?

  • I have a problem  but  first i need my serial number where  is it on a mac book pro

    i have somehow uninstalled my  word and excel.   microsoft said you had to help me.  but first i cannot find my serial # for my mac book pro

  • Setting Character encoding programmaticaly?

    Hi, I am using Sun J2ME wireless toolkit 2.1, and i have a problem with characer encoding. I am receiving text from a .NET web service, and after some processing in the client, i send the string back. The problem is, the string i am sending back incl