Binding a variable to a shared variable is taking the attributes of that variable?

Is it possible that binding to a shared variable to have the attributes of that variable? With other words shared variable shares attributes also?
Thank you,
Virginia

I builed a vi server that prepears data to be updated to an interface and data has all type of attributs such as color, background and foreground, and for this reason I wanted to be able to be updated with attributs.
I will give up to have like an updated control in my interface but to updated it from the server with detailed attributs in a continous loop instead.
Data with attributs give me not only the value but the status also.
Thank you!

Similar Messages

  • I have iCloud set up fine on Windows 8 and it pulls shared photo streaming great, The problem is that in My Photo Stream folder the photos doesn't charge automatically and is empty, how can I do?

    I have iCloud set up fine on Windows 8 and it pulls shared photo streaming great, The problem is that in My Photo Stream folder the photos doesn't charge automatically and is empty, how can I do?

    Hey appleIC!
    Here is an article that will help you troubleshoot this issue:
    iCloud: My Photo Stream troubleshooting
    http://support.apple.com/kb/ts3989
    Take care, and thanks for visiting the Apple Support Communities.
    Cheers,
    Braden

  • Front Panel Mass Binding Project Variables Issue

    Hello -
    When attempting to bind controls to shared variables through the front panel mass binding option, there is an issue where you can not seem to bind a "project item" to the control. The method of binding I am using is to export a text list of control names, urls, mode, and function to a text editor utilizing the front panel binding mass configuration options.  The text editor shows, in the fourth column, a "0" for no function, a "1" for network item, and a "2" for project item. when attempting to import the list back into the front panel binding mass configuration, all "2" indications become "1", as all items are treated as network. Thus one can not effectively bind to a project shared variable item.
    The binding works fine manually by means of utilizing the properties selection of the control, but it is difficult to do this for 821 controls, as in my application.
    My application is based on a OPC served group of 821 variables which are linked to controls and indicators through the shared variable representation for each item created in the multiple variable editor.
    Does anyone have a work around for this issue, as it is a showstopper right now, ie, you can not effectively bind a large quantity of controls or indicators to project located shared variables as required.
    The rationale behind utilizing project located variables instead of network located variables is to reduce the amount of calls to the OPC server which was causnig a large latency in the refresh of the 821 items. With the items defined as shared variables within the project, a single call is issued, which has tremendously sped up the refresh cycle for the list of variables.
    Thank you in advance for your insight in this matter,
    John DeCroos

    Hello Brian A.,
    In response to you comment --
    "in 2006, and John did not follow up with any more information for Efosa"
     -- a great deal of information was provided to NI (Efosa and many, many others, up to the product manager for the DCS module). I have never heard back on a fix for this bug for the identified version of LabVIEW. The reply by Efosa here was well after we had shipped our product -- (please see date + Efosa's apology) -- we had found our own solution as is identified in the original post.
    My solution was, as is also indicated in my original post, to manually bind each variable. This was unbelievably time consuming, but was all I had.
    The version of software I am now working on uses far less variables, manually bound to avoid the multiple binding issue we had in the past.
    I have checked the mass binding function in LV 8.5.1, it works fine now. I guess it would have been nice to have had a reply that the bug had been resolved ---- would have helped me out a bit.
    Thank you,
    John DeCroos

  • How to bind DATE variables in SQL*Plus

    I have a stored procedure in a package that has a DATE OUT parameter
    myPackage.myProcedure( outDate OUT DATE )
    I am trying to test this from SQL*Plus
    How do I specify a Bind variable for the outDate? The VARIABLE command does not allow DATE types?
    If this was a CHAR type I could have done
    VARIABLE myChar CHAR
    BEGIN
    myPackage.myProcedure( :myChar )
    END;
    PRINT myChar
    How do I do this with DATE data types instead? I am using Oracle 8.1.7.

    you should use VARCHR2 type with the minimum length that can store a value defined by your NLS_DATE_FORMAT
    string. The returned date will be converted to a VARCAHR2 type and the size and format will depend on
    your NLS_DATE_FORMAT setting.
    =============================================================================
    SQL> variable dt VARCHAR2(20)
    SQL> create or replace procedure ret_date(dt OUT DATE) is
    2 begin
    3 dt := SYSDATE ;
    4 end ;
    5 /
    Procedure created.
    SQL> exec ret_date(:dt) ;
    PL/SQL procedure successfully completed.
    SQL> print dt
    DT
    13-OCT-02
    SQL> select sysdate from dual ;
    SYSDATE
    13-OCT-02
    SQL> alter session set nls_date_format = 'DD-MON-YYYY HH24:MI:SS' ;
    Session altered.
    SQL> exec ret_date(:dt) ;
    PL/SQL procedure successfully completed.
    SQL> print dt
    DT
    13-OCT-2002 10:43:23
    SQL>
    ================================================================

  • Queries not working with multiple bind position variables?

    still need help here - can anyone provide any direction?
    (note: this is a follow-up from prior topic, " How to use JDBC Positional Binding Style & ExecuteWithParams?")
    I created two simple view objects off of the same entity
    object to perform this test:
    #1 - ViewObject with one bind position variable - where clause: where id > ?
    #2 - ViewObject with two bind position variables - where clause: where id > ? and id < ?
    I created two separate .jspx pages, view1.jspx (one input field) and view2.jspx (two input fields), for each view object by dragging ExecuteWithParams operation onto the JSF page.
    The .jspx page with one input field works (returns result sets.) The view2.jspx page with two input fields does not work - the query does not return any result sets (no errors produced, it just does not return any rows) - I've tested my query outside of jdeveloper and it works fine. I also tried switching my inputs to make sure I did not have an illogical query (i.e., id >100 and id< 1).
    Is there anything different / extra I need to do to use two bind position variables?
    Everything in this simple test was identical except for using 2 input variables versus 1.
    Technology stack is: jdeveloper 10.1.3, jsf/ADF BC, mySQL 5.01
    Message was edited by:
    javaX

    Using the where clause: "where id > ? and id < ?” for the 2 input variables, I get the same result - no row results returned (though query works outside the browser.)
    Interestingly, I modified the where clause to “where between ? and ?”, and then used values of ‘1’ and ‘100’ to test. Using the BC4J tester, the query gave back a single row with id = 100 (should have brought back 100 rows because there are 100 records with id’s 1-100.) So I got it to return something, but not the right results. This makes me believe that a different query is being sent to MySQL other than what I'm expecting from what is shown in the SQL Statement of the View Object..
    Is there anyway to view what SQL statement is actually being sent to the database using the BC4J tester? Also, could this be an issue related to the mySQL connector drivers and JDeveloper? I’m using mysql-connector-java=3.1.11-bin.jar (10/10/2005)? First though, if I could see what query is actually being sent, this may help me to debug and figure out the problem.

  • How to bind local variables in complex query in PL/SQL

    Hi
    I have long complex query with local varibales; when I run in Dynamic SQL I get an error. Not sure which is the easiest way to bind local variables.
    L_QUERY := q'[select m.segment1 col1,
          '1' col2,
          '13' col3,
          l.operand col4,
          0 col5,
           'Y' col8,
          'N' col9,
          'N' col10,
       decode(h.name,'09_UKOR_*','EOS Credit','10_UKOR_*','TopUp','11_UKOR_*','Main') col18
    from qp_list_headers_v h,
          qp_list_lines_v l,
          mtl_system_items m
    where h.name in ('09_UKOR_*','10_UKOR_*','11_UKOR_*')
    and h.list_header_id = l.list_header_id
    and m.inventory_item_id = l.product_attr_value
    and m.organization_id  = 84
    UNION all
    SELECT qs.PRODUCT_ATTR_VALUE col1,
           hca.account_number col2,
           decode (su.site_use_code,'BILL_TO','21','SHIP_TO','18') col3,
           0 col4,
           qs.operand col5,
           null col6,
           null col7,
           'N' col8,
           'Y' col9,
           'N' col10,     
    --Local variables
          (case when (trunc(nvl(qq.start_date_active,sysdate)) between l_cur_year_from  and l_cur_year_to) and  
                      ( trunc(nvl(qq.end_date_active,l_cur_year_to)) >= trunc(l_cur_year_to) )  then    'TopUp'
                when (trunc(qq.start_date_active) between l_next_year_from  and l_next_year_to) and  
                      ( trunc(nvl(qq.end_date_active,l_next_year_to)) >= l_next_year_to)  then   'Main'              
                when (trunc(qq.start_date_active) between l_last_year_from  and l_last_year_to) and  
                      ( trunc(nvl(qq.end_date_active,l_last_year_to)) >= l_last_year_to )  then  'EOS Return'
           end )col18,
    --Local variables
           (case   when (trunc(qq.start_date_active) between l_next_year_from  and l_next_year_to) and  
                      ( trunc(nvl(qq.end_date_active,l_next_year_to)) >= l_cur_year_to )  then   'N'
              else
                    'Y'  end ) col21
       FROM qp.qp_list_headers_b qlhb,
            qp.qp_list_headers_tl qlht,
            qp.qp_qualifiers qq,
            qp_modifier_summary_v qs,
            hz_cust_site_uses_all su,
            hz_cust_acct_sites_all  sa,
            hz_cust_accounts hca
    WHERE 1=1
          and qlhb.LIST_TYPE_CODE       = 'DLT'
          and nvl(qlhb.active_flag,'Y') = 'Y'
          and qlhb.list_header_id       = qlht.list_header_id
          AND qq.list_header_id         = qlhb.list_header_id
          and qq.list_type_code         = qlhb.LIST_TYPE_CODE
          and qq.QUALIFIER_CONTEXT      = 'CUSTOMER'
          and qs.list_header_id         = qlhb.list_header_id
          and qs.LIST_LINE_TYPE_CODE    = 'DIS'
          and su.site_use_id            = qq.qualifier_attr_value --1064
          AND  su.cust_acct_site_id     = sa.cust_acct_site_id
          AND  sa.cust_account_id       = hca.cust_account_id ]';
    --call Dynamic SQL function
    l_cursor := DBMS_SQL.OPEN_CURSOR;
    DBMS_SQL.PARSE(l_cursor, p_QUERY , DBMS_SQL.NATIVE);
    l_rows := DBMS_SQL.EXECUTE(l_cursor);
    Any help will be much appreciated.
    iI guess I should use DBMS_SQL.BIND_VARIABLE to bind all variables seperately so not to mess with query

    1) What is the error you get?
    2) If you use bind variables inside a query, you should prefix them with colons, so use :l_cur_year_from etc.
    3) Why are you using dbms_sql instead of native dynamic sql and/or ref-cursors?
    Toon

  • Drill Reports (Binding Item Variables)

    Hi
    Does anyone know how to bind to an item variable that does not have a value to return i.e. because the value is blank or missing?
    I have summarised data on one page, and when I drillin, I would like to see the detail for the bound items that have missing data.
    Thanks in advance
    Kezie

    Any suggestions about this?

  • Binding a variable in DBMS_XMLGEN.newContextFromHierarchy

    Hi All,
    How to bind a variable to below query?
    SELECT XMLELEMENT("ROW",
                XMLELEMENT("AssignedPrivs",
                        (SELECT DBMS_XMLGEN.getXMLType(
                             DBMS_XMLGEN.newContextFromHierarchy('SELECT LEVEL,
                                 XMLELEMENT("record",
                                   xmlattributes(VPI.PRIVILEGEID_V AS "jsxid",
                                                  VPI.DESCRIPTION_V AS "jsxtext")
                                    FROM VMS_PRIVILEGE_INFO VPI
                                     START WITH VPI.GROUPID_N IS NULL
                                     CONNECT BY PRIOR VPI.PRIVILEGEID_V = VPI.GROUPID_N
                                     AND VPI.PRIVILEGEID_V IN (SELECT PRIVILEGEID_V
                                                                     FROM VMS_ROLEPRIVILEGES
                                                         WHERE ROLEID_N = :1)' )
                              ) FROM DUAL
                         ))) XMLDOC 
    FROM DUALScript:
    CREATE TABLE VMS_PRIVILEGE_INFO
      PRIVILEGEID_V  VARCHAR2(30 BYTE),
      DESCRIPTION_V  VARCHAR2(40 BYTE)              NOT NULL,
      GROUPID_N      NUMBER(5),
      GROUPORDER_N   NUMBER(2)
    INSERT INTO VMS_PRIVILEGE_INFO ( PRIVILEGEID_V, DESCRIPTION_V, GROUPID_N,
    GROUPORDER_N ) VALUES (
    '10', 'User Management', NULL, 1);
    INSERT INTO VMS_PRIVILEGE_INFO ( PRIVILEGEID_V, DESCRIPTION_V, GROUPID_N,
    GROUPORDER_N ) VALUES (
    '100', 'eTopUp', NULL, 11);
    INSERT INTO VMS_PRIVILEGE_INFO ( PRIVILEGEID_V, DESCRIPTION_V, GROUPID_N,
    GROUPORDER_N ) VALUES (
    '110', 'Application Management', NULL, 12);
    INSERT INTO VMS_PRIVILEGE_INFO ( PRIVILEGEID_V, DESCRIPTION_V, GROUPID_N,
    GROUPORDER_N ) VALUES (
    '1158', 'Create User', 10, 2);
    INSERT INTO VMS_PRIVILEGE_INFO ( PRIVILEGEID_V, DESCRIPTION_V, GROUPID_N,
    GROUPORDER_N ) VALUES (
    '1159', 'Modify User Details', 10, 4);
    INSERT INTO VMS_PRIVILEGE_INFO ( PRIVILEGEID_V, DESCRIPTION_V, GROUPID_N,
    GROUPORDER_N ) VALUES (
    '1160', 'Create Roles', 20, 2);
    INSERT INTO VMS_PRIVILEGE_INFO ( PRIVILEGEID_V, DESCRIPTION_V, GROUPID_N,
    GROUPORDER_N ) VALUES (
    '1161', 'Modify Roles', 20, 4);
    INSERT INTO VMS_PRIVILEGE_INFO ( PRIVILEGEID_V, DESCRIPTION_V, GROUPID_N,
    GROUPORDER_N ) VALUES (
    '1162', 'Configure Master Settings', 110, 2);
    INSERT INTO VMS_PRIVILEGE_INFO ( PRIVILEGEID_V, DESCRIPTION_V, GROUPID_N,
    GROUPORDER_N ) VALUES (
    '1163', 'Unlock Prepaid Account', 90, 20);
    COMMIT;
    CREATE TABLE VMS_ROLEPRIVILEGES
      ROLEID_N       NUMBER(5),
      PRIVILEGEID_V  VARCHAR2(30 BYTE)              NOT NULL
    INSERT INTO VMS_ROLEPRIVILEGES ( ROLEID_N, PRIVILEGEID_V ) VALUES (
    1003, '1158');
    INSERT INTO VMS_ROLEPRIVILEGES ( ROLEID_N, PRIVILEGEID_V ) VALUES (
    1003, '1159');
    INSERT INTO VMS_ROLEPRIVILEGES ( ROLEID_N, PRIVILEGEID_V ) VALUES (
    1003, '1160');
    INSERT INTO VMS_ROLEPRIVILEGES ( ROLEID_N, PRIVILEGEID_V ) VALUES (
    1003, '1161');
    INSERT INTO VMS_ROLEPRIVILEGES ( ROLEID_N, PRIVILEGEID_V ) VALUES (
    1003, '1162');
    INSERT INTO VMS_ROLEPRIVILEGES ( ROLEID_N, PRIVILEGEID_V ) VALUES (
    1003, '1163');
    COMMIT;Regards,
    Abdul

    Hi,
    In above code i had included bind variable in string so i was not able execute the same. So i modified the code as:
    SELECT XMLELEMENT("ROW",
                XMLELEMENT("AssignedPrivs",
                        (SELECT DBMS_XMLGEN.getXMLType(
                             DBMS_XMLGEN.newContextFromHierarchy('SELECT LEVEL,
                                 XMLELEMENT("record",
                                   xmlattributes(VPI.PRIVILEGEID_V AS "jsxid",
                                                  VPI.DESCRIPTION_V AS "jsxtext")
                                    FROM VMS_PRIVILEGE_INFO VPI
                                     START WITH VPI.GROUPID_N IS NULL
                                     CONNECT BY PRIOR VPI.PRIVILEGEID_V = VPI.GROUPID_N
                                     AND VPI.PRIVILEGEID_V IN (SELECT PRIVILEGEID_V
                                                                     FROM VMS_ROLEPRIVILEGES
                                                         WHERE ROLEID_N = '||:1||')' )
                              ) FROM DUAL
                         ))) XMLDOC 
    FROM DUAL;Now its working fine.
    Regards,
    Abdul

  • Binding a variable

    Hi all,
    How can we bind a variable if the column name exists in another
    table.
    For ex.
    I have two tables lets say tab1,tab2. The tab2 holds the
    column names of tab1.
    table structure and data is.
    tab1
    id col1 col2 col3 col4
    1 234 sysdate 3233 334.93
    2 235 sydate 345 33.42
    tab2
    id inv_no date vendor
    1 col1 col2 col4
    2 col3 col4 col5
    based on these two table values, I have to build a variable.
    ex.
    l_var = 234 ||sysdate||334.93;
    And every time in my table 1, I will have at least 50 to 70k
    rows. How can i do this. Please help me any one.
    Thanks,
    Swetha.

    Try opening a ref cursor dynamically like this:
    SQL> EDIT file_name
    CREATE OR REPLACE PACKAGE package_name
    AS
      TYPE cursor_type IS REF cursor;
      PROCEDURE procedure_name;
    END package_name;
    CREATE OR REPLACE PACKAGE BODY package_name
    AS
      PROCEDURE procedure_name
      IS
        cursor_name package_name.cursor_type;
        CURSOR c_tab2 IS SELECT * FROM tab2;
        v_inv_no VARCHAR2 (30)    := NULL;
        v_date   VARCHAR2 (30)    := NULL;
        v_vendor VARCHAR2 (30)    := NULL;
        v_sql    VARCHAR2 (4000)  := NULL;
        l_inv_no VARCHAR2 (1000)  := NULL; 
        l_date   VARCHAR2 (1000)  := NULL; 
        l_vendor VARCHAR2 (1000)  := NULL; 
        l_var    VARCHAR2 (2000)  := NULL;
      BEGIN
        FOR r_tab2 IN c_tab2
        LOOP
          v_inv_no := r_tab2.inv_no;
          v_date   := r_tab2.date_col;
          v_vendor := r_tab2.vendor;
          v_sql    := 'SELECT ' || v_inv_no || ','
                                || v_date   || ','
                                || v_vendor
                  || ' FROM tab1 WHERE id = :n';
          OPEN cursor_name FOR v_sql USING r_tab2.id;
          LOOP
            FETCH cursor_name INTO l_inv_no, l_date, l_vendor;
            EXIT WHEN cursor_name%NOTFOUND;
            l_var    := r_tab2.id || ' '
                     || l_inv_no  || ' '
                     || l_date    || ' '
                     || l_vendor;
            DBMS_OUTPUT.PUT_LINE (l_var);
          END LOOP;
        END LOOP;
      END procedure_name;
    END package_name;
    SQL> START file_name
    Package created.
    Package body created.
    SQL> SET SERVEROUTPUT ON
    SQL> EXEC package_name.procedure_name
    1 234 26-OCT-01 334.93
    2 345 33.42
    2 346 35
    PL/SQL procedure successfully completed.

  • PL/SQL array bind output variable

    I've been trying to learn how to pass an array to an pl/sql script. Getting the data into the db seems to be working fine, but I would like to know if there was a problem inserting the data. More specifically, I would like to know THE SPECIFIC ROW that caused the problem.
    pl/sql code:
    create or replace procedure pp (
              v_out      out number,
              v_listtype in repair_codes.listtype%type,
    v_repaircode in repair_codes.repaircode%type
    is
    begin
    insert into repair_codes (listtype, repaircode) values (v_listtype,v_repaircode);
         v_out:=1;
    commit;
         --just setting up test variable for now     
    end;
    vb.code:
    Dim cmd As New OracleCommand("pp", dbConn)
    cmd.CommandType = CommandType.StoredProcedure
    cmd.ArrayBindCount = 3
    Dim al(2) As String
    Dim ar(2) As String
    al(0) = "JOE1"
    al(1) = "JOE2"
    al(2) = "JOE3"
    ar(0) = "TEST1"
    ar(1) = "TEST2"
    ar(2) = "TEST3456789"
    Dim out As New OracleParameter("v_out", OracleDbType.Varchar2, 20)
    out.Direction = ParameterDirection.Output
    cmd.Parameters.Add(out)
    Dim listtype As New OracleParameter("v_listtype", OracleDbType.Varchar2)
    listtype.Value = al
    cmd.Parameters.Add(listtype)
    Dim repaircode As New OracleParameter("v_repaircode", OracleDbType.Varchar2)
    repaircode.Value = ar
    cmd.Parameters.Add(repaircode)
    dbConn.Open()
    Try
    cmd.ExecuteNonQuery()
    Catch ex As OracleException ' catches only Oracle errors
    ex = ex
    Select Case ex.Number
    Case 1
    MessageBox.Show("Error attempting to insert duplicate data.")
    Case 12545
    MessageBox.Show("The database is unavailable.")
    Case Else
    MessageBox.Show("Database error: " & ex.Message.ToString())
    Dim wha = ex.Errors(0).ArrayBindIndex 'always '0'
    End Select
    Finally
    dbConn.Close()
    End Try
    error:
    OracleParameter.ArrayBindSize is invalid
    Code above will work if I remove everything about the 'output' variable
    To test I would like to put in data for a column that is too large, have all other rows inserted, but return the row that had bad data. Thanks for any thoughts on this-

    I have a similar issue, i.e. the pl/sql table type as out parameter is causing probleml in one API related to Oracle Applications. I have singled this problem out by creating wrappers and testing them against BPEL process. Now as soon as I put an out parameter with pl/sql table in my wrapper, I start getting errors. Why the invoke even care about what is in output while calling the API? How can I get rid of it. I am not able to pin point where exactly you made the changes. Could you please share some more info or possibly share the BAD and GOOD code.
    We will probably get away with this by creating just a wrapper that would have NO out parameter as PL/SQL table as I don't think we need it anyway.
    Still want to know what is the issue here as we would like to avoid any custom wrapper creation?
    Shobhit
    Message was edited by:
    Shobhit.Kapila

  • How can a  variable display the first character that's on the page?

    I'm creating a telephone directory and want each page to display the alphabet of the first listing on the page on the top - only one character.
    Can you tell me how to do this?

    Hmmmmm, seems I was wrong about the GREP styles. I just tried it and they don't get picked up. I consider that a bug, but it's probably "as designed."
    That leaves you having to work with nested styles only, or Find/Change. I think what you'll need to do is redefine the Paragraph style so it has two nested styles that apply the correct style to whatever needs to be styled at the start of the paragraph, one for the first character and the second for the rest of the word(s) if you can figure out a trigger (can InData add an end nested style character or is thew some punctuation you can use?), then find/change to remove the applied character style. For that I'd serach for ^.+ with the find format set to the character style that InData applied and the chane format set to [None], which will only remove it from the beginning of your paragraphs. If this is done correctly there will be no change in appearance since the redefined paragraph style will do the formatting.
    If that won't work, you can use find/change to apply a new style to the first characters. Search for ^. and set the change format to the new character style that you'll use in the variable. It needs to have the same attributes as the style applied by InData or the appearance will change.
    The second method is probably easier since you don't need to redfine the paragraph style, but both methods require you to use find/change to alter the text, which means if more text is added you'll need to re-do the find/change. Not a big deal, but don't forget. I'd be tempted to wait until the last minute and just ignore the headers for the moment, if editing is ongoing. I'd also test this on a copy of the file for safety.

  • How can I use a shared library made with the application builder?

    Hi,
    I am using LabVIEW 7.1 running on Slackware 10.1 (kernel 2.4.29) and I am trying to call a graph display from a C program that I use for debugging VME access from a VMIVME controler. So using the application builder I built the VI as a shared library (graph.vi -> graph.so) containing a function called "graph". In my main program the call to the dlopen fails with the error: "graph.so: undefined symbol: UninitLVClient". When I examin graph.so with nm I see that UninitLVClient and other LabVIEW functions are indeed undefined and using ldd shows that graph.so has dependencies only on libc.so.* and *linux*.so.* but not on LabVIEW related stuff. Those functions are defined in the liblv.so that's in the cintools directory but I have no idea if the user is supposed to use that.
    So I think I am missing an important concept here. Can somebody help or direct me to some documentation (I found lots of information about how to link external code to LabVIEW but nothing about how to link LabVIEW code to an external program)?

    Thanks Watermann,
    your message has been very useful so now I am linking to the proper library but I still have problems when trying to load dynamically the shared library produced with LabVIEW. It is strange that I could successfully load the lvrt library at loading time but it does not work when I am loading the library at execution time.
    I made a small LabVIEW program that prints a hello window and I am calling it from a C program. In the first program main.c I am linking to the lvrt library at loading time and it works but in the second one I am linking dynamically at execution time and it does not work. For my work I need to be able to load code done in LabVIEW at execution time. Any help is appreciated!
    Program main.c:
    // small program to call a LabVIEW shared library
    #include
    #include
    #include "hello.h" // got this from the LabVIEW builder, i.e. when I made the hello.so
    int main(void)
    printf("Hello from C!\nLets call LabVIEW now\n");
    hello();
    printf("Bye ... \n");
    return 0;
    The command to compile main.c, i.e. linking shared library lvrt when loading main program:
    gcc -Wall -I /usr/local/lv71/cintools/ -o main main.c hello.so -l lvrt
    The LD_LIBRARY_PATH has been defined and exported:
    $ LD_LIBRARY_PATH=$PWD
    $ export LD_LIBRARY_PATH
    IT WORKS!
    Program main2.c:
    // small program to call a LabVIEW shared library
    #include
    #include
    #include
    int main(void)
    void * h_lvrt;
    void * h_hello;
    void (* hello)(void);
    char * error;
    printf("Hello from C!\nLets call LabVIEW now\n");
    // open LabVIEW RunTime shared library
    // in my computer located at /usr/local/lib/liblvrt.so
    h_lvrt = dlopen("/usr/local/lib/liblvrt.so", RTLD_NOW);
    // check for error
    error = dlerror();
    if (error) {
    printf("error : could not open LabVIEW RunTime library\n");
    printf("%s\n", error);
    return 1;
    // open hello shared library
    // in my computer located at /home/darss/lv_call/hello.so
    h_hello = dlopen("hello.so", RTLD_NOW);
    // check for error
    error = dlerror();
    if (error) {
    // close LabVIEW RunTime shared library
    dlclose(h_lvrt);
    printf("error : could not open hello library\n");
    printf("%s\n", error);
    return 1;
    // get function hello from library hello.so
    hello = dlsym(h_hello, "hello");
    // check for error
    error = dlerror();
    if (error) {
    // close hello shared library
    dlclose(h_hello);
    // close LabVIEW RunTime shared library
    dlclose(h_lvrt);
    printf("error : could not get the hello function\n");
    printf("%s\n", error);
    return 1;
    // call hello function
    hello();
    // close hello shared library
    dlclose(h_hello);
    // close LabVIEW RunTime shared library
    dlclose(h_lvrt);
    printf("Bye ... \n");
    return 0;
    The command to compile main2.c, i.e. dynamically linking library lvrt at execution of main2 program:
    gcc -Wall -o main2 main2.c -l dl
    The LD_LIBRARY_PATH still defined and exported.
    IT DOES NOT WORK!
    Program output:
    Hello from C!
    Lets call LabVIEW now
    error : could not open hello library
    /home/darss/lv_call/hello.so: undefined symbol: WaitLVDLLReady

  • When I use Home sharing, I can see the library I want to copy, but when I highlight the library, the import button does not show up. Also, it will not let me drop and drag. How do I get music from one computer to the other computer?

    When I use Home Sharing, I can see the library I want to copy under Shared, but I can't get it save on the computer under the regular library. I go to edit and "select all" but there is no import button that is in the right hand corner. Also, it will not let me click and drag the music. How do I get it from one computer to the other?

    Since both computers are connected via the network, you could simply copy the ENTIRE iTunes folder from one computer to another via the network.
    If both computers are running Windows, use the Easy File Transfer Utility built into Windows to move iTunes and all other user media/data.

  • I have 2 iPhones sharing an apple ID (mine and my partner). we have just created separate ID's now that family sharing is available. but the partner's ID wouldn't let her update apps purchased on my ID! Help Please

    I have 2 iPhones sharing an apple ID (mine and my partner). we have just created separate ID's now that family sharing is available. but the partner's ID wouldn't let her update apps purchased on my ID! Help Please

    This is happening to me also but only with certain apps. The message I get with the apps that won't update is "Update Unavailable with This Apple ID. This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or cancelled".

  • When we purchase from iTunes the balance is not coming off of the gift cards. We have family sharing on but when my kids purchase songs they are credited to our credit card and not the gift card that is already in their account. What's wrong?

    When we purchase from iTunes the balance is not coming off of the gift cards. We have family sharing on but when my kids purchase songs they are credited to our credit card and not the gift card that is already in their account. What's wrong?

    Hi Angela1313,
    I see that you have a question about using gift cards with Family Sharing. Here is an article with some information that my be pertinent to this issue:
    iTunes Gift balances
    http://support.apple.com/kb/ht5035
    Learn more
    Learn how to send an iTunes Gift or redeem iTunes Gift Cards and content codes. If you're using Family Sharing, the credit you redeem will only be available to you. iTunes Store credit on your account isn't shared with other family members.
    Thanks for using the Apple Support Communities!
    Cheers,
    Braden

Maybe you are looking for

  • URGENTLY NEED HELP!!! phone has blackberry 102 error

    Hi I upgraded my whatsapp and they asked me to restart the phone when i did that a white screen appeared saying  "Error 102 reload software for further information please visit www.blackberry.com/102" i tried to go to that link but it doesnt exist, i

  • Batch Monitor and Compressor do nothing when I submit...

    Hey, guys, I've re-install the whole OS and Final Cut Studio 2, I use Compressor to encode my video clip, after setup the format and the destination, I click the "submit" Button, the batch job send to Batch Monitor, but Compressor and Batch Monitor d

  • Import Duties Included in Standard Price

    Hi, At the time of Creating Cost Estimate we found that system is taking CVD, Ecess & HeCess in calculation of Standard Price..where as in Costing Variant we have defined Valuation Method is from Purchase Info Record. We have not included the Import

  • JMS TIMEOUT, cache out of synch

    I have a message bean, weblogic 6.1 sp3, that's timing out. The transaction type is set to required. Cache is used with version stored in the cache. When the timeout occurs for whatever reason the version in the database table, Oracle 8.1.7 is update

  • How do I install Aperture 2.1 upgrade when I have 2.0 academic?

    How do I install Aperture 2.1 upgrade when I have 2.0 academic? I installed the disk and now it is just sitting on my desktop.  I don't think it actually installed?