Import string programmatically to reentrant VI

I am working on a multi-language application that includes a reentrant VI. I have been successful at importing a strings file to non-reentrant VIs but seem to have issues importing strings to a reentrant VI. I basically call the reentrant VI dynamically in a loop (open VI ref, import strings file, run VI). The first iteration is error free, but after that it returns error code 1000.
I know that the import strings function does not execute when the VI is running and that is why I am receiving this error, but my VI is reentrant and set to preallocate clone for each instance. Is this behavior expected when using the import strings function while calling a reentrant VI multiple times? If so, is there a workaround this issue?
Thanks,
Cristian
(Using LabVIEW 9.0f2)
Solved!
Go to Solution.

Ben wrote:
 "...I believe all re-entrant VI's share the FP...."
If this is true, then I should be able to just import strings on the first iteration of my loop and the strings should change for all of them.
I made a simple VI of this for testing and found that on the second iteration, the Run VI method returns error code 1000. The loop runs correctly on the first iteration because the reentrant VI was not in memory, but on the second iteration, it seems like when a new reference is made to the reentrant VI, it sees that it is already running in memory.
From what I understand about reentrant VIs (set to preallocate clone for each instance), they should act very similar to VIT's. Someone correct me if I am wrong.

Similar Messages

  • Traduction: Import string in a vi

    Hello
    I have a problem to use the import string programmaticly in my application for create a traduction system.
    I 'm french and my english is not very good.
    I want to create a traduction system to my application.
    I try to use the import string function programmaticly but I have an error message: "not in run-mode".
    So I want to call a vi in my application, I want to see this vi front panel, I want to use In-Out for this vi and before I want to traduct this vi with import string.
    Thanks for your help.

    Damien,
    First, in LabView Help, about "Import VI Strings Method", at the end appears: " Settable when the VI is running NO ", so here is the explanation for your error message...
    Anyway, recently I had to make something similar, and searching here i found a couple of ideas to perform this task... At first the solution using subVIs, seemed good to me, but it had some issues and complications... finally i implemented the solution using a very simple structure that it had better performance to do this. Consists in change the "captions" of the controls or indicators and change directly the text of the strings. To implement this quickly, i recommend to use "property node" of the variables and a simple event to detect the "value change" of the "Language control Butt
    on". Also you can define several idioms by changing a list. The list can contain the words separated by bar spaces (for example). Resuming, the idea is to create a list with the words (which can be read from a file...), a button control Language, a event to handled de property nodes of the variables and displays. there are a few others details to improve this idea, and i know that there are others ways, but this works perfect and it is easy to implement.
    Hope this help.
    Regards,
    JFT

  • How can I display special characters of NonEuropean languages (French, Italian, Spanish, German and Portuguese.) using import string mechanism

    I would like to translate the User Interface of my application to French, Italian, Spanish, German and Portuguese.
    When I put special characters in the import string file they showed up as ? (question mark)
    The import strings file includes the following parameters for each string: font, text, size and style. (but no field for script)
    In order to use a unicode font such as Arial I need to select a french script. But this option is not supported bu LabView (As far as I saw)
    A) Is there a font which is directly German/ French etc and not regula font + script parameter?
    B) Are there another required step
    s for special characters support? (When I put speciual characters in the import string file the showed up as ? question mark)

    This was discussed last week in this group- read the previous messages.
    Look for the thread "Foreign Languages in Labview"
    And recite the mantra
    ActiveX is good
    ActiveX is holy
    All Hail Bill
    Those who claim otherwise are heretics and not to be trusted
    Actually, in this case the non-ActiveX suggestions may be good.
    talia wrote in message
    news:[email protected]..
    > How can I display special characters of NonEuropean languages (French,
    > Italian, Spanish, German and Portuguese.) using import string
    > mechanism

  • "Import string" method not supported in LabVIEW 7.1

    We have made an application that support multi-language (English, French, etc.). In LabVIEW 6.1, we used the "import string" VI method to support this option. The method was executed just before to open front panel. The code was based on this example found in NI Developer Zone:
    Translation/Localization Tools in LabVIEW
    (http://sine.ni.com/apps/we/niepd_web_display.disp​lay_epd4?...
    But surprise in version 7.1, this method can't be loaded without the diagram block. So the built application doesn't support it! It works only in the development interface. Why this change?
    If someone has an idea to solve this, let me know.

    If you build that example into an EXE under LabVIEW 7.1, it should work fine as long as you add the non top-level VIs as Dynamic VIs and add the language files as Support Files when you create the executable, making sure to specify in "Custom Destinations" that you want the string files to end up in the same directory as the EXE.
    Your point about the method requiring the block diagram is correct, according to the help for the method. However, I think the diagrams will be available to the run-time engine as long as you haven't purposefully removed them prior to creating the EXE in the manner described above. Maybe someone else can chime in on this point, because I know the App Builder changes a lot with every new major LabVIEW version (and sometimes, with minor versions too!).
    In any case, I just did a test where I downloaded the example you referenced, created a .BLD file as I indicated above, and got a successful executable that was able to use the Import VI Strings method to load the desired language at run-time.
    Regards,
    John

  • Removing unwanted characters from imported string

    Hello,
    I have a tab-delimited .txt file which I have to import into Indesign for further processing.
    The file is composed by a 3 columns header row at the beginning (Code, Description, price) followed by a series of 3 columns data rows.
    The problem is that sometimes, depending on the way the txt/csv file has been created, may include unwanted characters (such as spaces, double spaces, etc.).
    Is there a way to "clean" the imported strings from these unwanted characters?
    This is my starting code:
    function processImportedTxt(){
        //Open .csv file
        var csvFile = File.openDialog("Open file .csv","tab-delimited(*.csv):*.csv;");
        datafile = new File(csvFile);
        if (datafile.exists){
            datafile.open('r');
       var csvData = new Array();
       while(!datafile.eof){//read every row till the end of file
            csvData.push(datafile.readln());
        datafile.close();
        for(a=1; a<csvData.length; a++){
            var myRowData = csvData[a];//row of data
            var mySplitData = myRowData.toString().split("\t");//divide columns
            var myRowCode = mySplitData[0];
            var myRowDesc = mySplitData[1];
            var myRowPrice = mySplitData[2];
            // Here goes code for cleaning strings from unwanted characters
    processImportedTxt();
    Any help would be much appreciated
    Thanks in advance

    Hi,
    If you want to safe 1-space occurences just a small correction:
    i.e.:
    var myRowCode = mySplitData[0].replace(/\s\s+/g,'');
    Jarek

  • Possible to return the "Explain Error" string programmat​ically?

    We use custom error handling and I'm interested in being able to return the "Explain Error" string programmatically. I figure, why not have that information available right away?
    I know you can get to it from the right-click shortcut menu after execution, but sometimes it's helpful to get that information, and try to keep the program rolling anyway.
    http://linkd.in/mikele

    Try this:
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    error message.png ‏9 KB

  • Export and Import Strings To/From Remote Function Modules

    Hi,
    I am building a Web Application in which the user can enter very large string (unlimited) and we want to store that value in the backend. So i need to create Remote function module which can take large strings, store it in backend and when queired export the strings to the calling web application.
    The Remote function module is allowing me to create "Import" and "Export" parameter with type String....but it is not allowing the String type "Table" parameter. I am kind of stuck now as i want to import and export multiple records of type String.
    Can anyone suggest an altenative?
    Regards,
    Kumar.

    Hi,
    To have a table parameter with string type fields, Goto SE11 and under data types, create a structure with the required fields of type string.
    Then u can use this structure to refer to the table parameter and declare it as
    p_tab like ZSTRUCTURE in the tables tab.
    Regards,
    Vik

  • Import Strings with "newline"-Symbol by DTW

    I try to import data from excel (*.txt - Unicode) with "newline" in text-Strings ("/n") with DTW Tool into a TEXT fiels in SAP B1 DB (items).
    SAP Icnore the "newline" - Symbol, after the import.
    How can I format the text?
    which is the correct indication in the txt File for "newline / enter"?

    Manuel:
    could you please try this?  Im away from my SBO station, so cannot test, but I think can work:
    you can enter a CR or LF character like this: &#13; &#10;
    change all the new lines with this chars and test
    Hope this helps
    Harold

  • Need to rebuild string programmatically having '&' in it.

    Gurus,
    I need to rebuild a string value programmatically which has '&' and insert the same into another table.
    this info is being passed to one procedure which will insert the reqd details into one table.
    Hence,procedure abc (p_input_id number,p_input_string varchar2) will be 2 input parameters.
    The only point where i'm getting stuck is the way to handle multiple '&' in a particular string.
    Now the string may contain n no of '&' occurrances.
    Hence,can you suggest/modify the existing code so that it can be used in a general way.
    Assume creating arrays permission is not granted to the schema.
    Logic that i've used is :Find the sub-strings coming in between '&' and concat them with chr(38) which will give a '&'.
    My Code :
    SQL> declare
    2 lv_count number;
    3 i number:=1;
    4 lv_len_str number;
    5 lv_great number:=0;
    6 lv_set_first varchar(1000):=null;
    7 lv_set_curr varchar2(1000):=null;
    8 lv_prev varchar2(1000):=null;
    9 lv_set varchar2(1000):=null;
    10 begin
    11 select length(col2) into lv_len_str from abc where col1=5;
    12 for a in 1..lv_len_str
    13 loop
    14 select instr(col2,'&',1,i) into lv_count from abc where col1=5;
    15 exit when nvl(lv_count,0)=0;
    16 i:=i+1;
    17 end loop;
    18 lv_great:=(i-1);
    19 --dbms_output.put_line ('Highest occurrance : '||lv_great);
    20 i:=1;
    21 select substr(col2,1,instr(col2,'&',1,1)-1) into lv_set from abc where col1=5;
    22 dbms_output.put_line ('First Set : '||lv_set);
    23 lv_set_first:=lv_set||chr(38);
    24 i:=1;
    25 for a in 1..lv_great
    26 loop
    27 dbms_output.put_line ('Value of i here : '||i);
    28 select substr(col2,instr(col2,'&',1,i)+1,(instr(col2,'&',1,i+1)-instr(col2,'&',1,i)-1)) into lv_set_curr from abc where col1=5;
    29 -- dbms_output.put_line (lv_set);
    30 i:=i+1;
    31 lv_prev:=lv_set_first;
    32 lv_set:=lv_prev||chr(38)||lv_set_curr;
    33 dbms_output.put_line (lv_set);
    34 exit when i>lv_great;
    35 end loop;
    36 --dbms_output.put_line ('Overall set : '||lv_set);
    37 end;
    38 /
    First Set : filename=oracle.exe
    Value of i here : 1
    filename=oracle.exe&&filename2=123455
    Value of i here : 2
    filename=oracle.exe&&filename3=23456
    Value of i here : 3
    filename=oracle.exe&&
    PL/SQL procedure successfully completed.
    Desired Output :
    filename=oracle.exe&filename2=123455&filename3=23456&filename4=test which is not happening.

    Procedure abc (p_input_id number,p_input_string varchar2) will be 2 input parameters.
    Input_id will be 1,2,3,4,etc
    Input_string will be in the format abc#bcd#cde#def..so on ('#' is parser.. sort of delimiter)
    Here 'abc' correspond to 'filename=oracle.exe&filename2=123455&filename3=23456&filename4=test'
    'bcd' correspond to 'filename=oracle10g.exe&filename2=12345&filename3=23456'
    'cde' correspond to 'filename=Java.zip&filename2=280648119&filename3=null'
    'def' correspond to 'filename=c12kprp-boot-mz.120-33.S1.bin&filename2=278725201&filename3=null'
    so on and so forth ...
    Here is a table abc (col1 number,col2 varchar2(100)) which will store the values.
    Now i want the result of procedure to store values find values between '#' and insert them with value of input_id
    input_id : 1
    input_string : filename=oracle.exe&filename2=123455&filename3=23456&filename4=test#filename=oracle10g.exe&filename2=12345&filename3=23456#filename=c12kprp-boot-mz.120-33.S1.bin&filename2=278725201&filename3=null
    So the table abc would contain values filename=oracle.exe&filename2=123455&filename3=23456&filename4=test,
    filename=oracle10g.exe&filename2=12345&filename3=23456,filename=c12kprp-boot-mz.120-33.S1.bin&filename2=278725201&filename3=null
    against value of 1 in the table.
    Now,if suppose, user happens to pass 4 strings for input_id which is 2,which can be
    filename=c12kprp-boot-mz.120-33.S1.bin&filename2=278725201&filename3=null#filename=Java.zip&filename2=280648119&filename3=null#filename=oracle10g.exe&filename2=12345&filename3=23456#filename=oracle.exe&filename2=123455&filename3=23456&filename4=test, so all these strings separeted by # would be stored against value of 2 in table abc.
    Let me know if you need any thing.

  • Set query string programmatically

    Is there a way to set the query string of a report programmatically at runtime? Something like clientDoc.setQueryString( query ).
    Thanks

    Well, it's not too complex to do it with java... here is a simple example:
    public class QueryStringChanger
         public static String changeParameter(String query, String key, String value)
              String[] keyValuePairs = query.split("&");
              StringBuffer newQuery = new StringBuffer();
              for (int k = 0; k < keyValuePairs.length; k++)
                   if (keyValuePairs[k].indexOf(key) != -1)
                        String[] thePair = keyValuePairs[k].split("=");
                        keyValuePairs[k] = thePair[0] + "=" + value;
                   if (k != 0) newQuery.append("&");
                   newQuery.append(keyValuePairs[k]);
              return newQuery.toString();
         public static void main(String[] args)
              if (args.length != 3)
                System.out.println("Syntax: java QueryStringChanger 'the query string' theKey theValue\n"+
                                   "Example: java QueryStringChanger page=1&area=3&title=Not+So+Good title Pretty+Darn+Good");
                System.exit(1);
              System.out.println(changeParameter(args[0], args[1], args[2]));
              System.exit(0);
    }Not so sure what you would gain from a HashTable though...

  • Check for import errors programmatically using datapump api

    Hi,
    I have pl/sql that imports some tables over DBLink using dbms_datapump. Is there a way to programmatically check that the import job had no errors at all, before proceeding to the next step after the import is completed?
    I saw several samples for showing the progress of the import job using while loops and whether it completed or not.
    But none explaining how to check whether any of the import steps failed, or if all steps completed successfully.
    Thanks,
    JGP

    check this
    [Datapump Demos|http://www.morganslibrary.org/reference/dbms_datapump.html]

  • Import & Export Strings method

    Hi,
    I have a multilanguage application. I have used export & import
    strings methods. I have one .txt file for each language but when I
    modify something in my vi I must export all again and then modify the
    tags again for each language file... Is there a way that I can modify
    my vi and I don't have to export all again?
    Thanks,
    ToNi.

    As far as i know you need to export strings again only if you have made any changes on front panel.
    exported file is nothing but a xml file so that you can manually edit it instead of exporting everything again (helpfule if you have done very small changes on front panel)
    Tushar Jambhekar
    [email protected]
    Jambhekar Automation Solutions
    LabVIEW Consultancy, LabVIEW Training
    Rent a LabVIEW Developer, My Blog

  • Programmatically setting SQL Query string?

    Post Author: JoeM
    CA Forum: Data Connectivity and SQL
    Hi,
    I recently updated to Crystal Reports 11 from 8.5 and am having some problems getting my reports to properly function.  I need to set the SQL query string in the report at runtime in our C++ based program when the user selects what report they want to print.  So to do this I first open the report and connect to our database and that works fine, here is the code for that - 
    pReport = pCRPApp->OpenReport(TmplFName, dummy) ;
    pReport ->Database->LogOnServer("crdb_odbc.dll", ODBC_FILEDSN, DatabaseName, DatabaseUsrNm, DatabasePwd);
    but when I use PutSQLQueryString to set the custom sql query that I've made it does not appear to work because when I use GetSQLQueryString right after that, the returned string is not the one I just set. Here is the code for that part -
    pReport->PutSQLQueryString(SQLExprBuf);
    sprintf(TestSQL, pReport->PutSQLQueryString());
    TestSQL is not the same as SQLExprBuf
    So my question is how do I properly set the SQL query string programmatically, is there some setting in my report that needs to be turned on or am I using the wrong function?  I read somewhere that you can use the Add command option in the report to set the query string as well, is there a way to programmatically do that?

    In Access create a View showing the information you want, then in design mode click View, SQL to see teh SQL you need. now make sure the SQL you build in VBA is exactly the same. so in the Immediate window type a ? then copy paste your code then press Enter
    to see the result, EG:
    ?"UPDATE Lan_landmeter " _
            & "SET OpleidingsBedrijf =" & bedrijf & " ,Opleiding_startdatum =#" & startdatum & "#,Opleiding_einddatum =#" & einddatum & "#,Aantal_opleidingsuren_vast=20,Aantal_gevolgde_uren
    =" & gevolgde_uren & ",Aantal_resterende_uren=0" _
            & "WHERE  Id_landmeter =" & naam & ""
    Rod Gill
    Author of the one and only Project VBA Book
    www.project-systems.co.nz

  • ISSUE WITH SUPPLIER SITE OPEN INTERFACE IMPORT PROGRAM in R12

    I am facing issue while submitting supplier site open interface import program programmatically using fnd_request.
    I am uploading the interface tables with the mandatory data and running the standard Request Set for Suppliers.The program is creating the Suppliers but is unable to create the Supplier Sites.It is getting completed with no rejections as well as imported records.
    It is updating the Supplier Sites Interface table (ap_supplier_sites_int ) with status as rejected with no rejected records in ap_supplier_int_rejections table.
    I am using the following code.
    Step 1 - call set_request_set
    apps.fnd_file.put_line (apps.fnd_file.LOG, 'Calling set_request_set...');
    success := fnd_submit.set_request_set ('SQLAP', 'FNDRSSUB852');--'FNDRSSUB1703');
    IF (NOT success)
    THEN
    RAISE srs_failed;
    ELSE
    apps.fnd_file.put_line (apps.fnd_file.LOG,
    'Calling submit program first time...'
    END IF;
    -- Step 2 - call submit program for each program in the set
    success :=
    fnd_submit.submit_program ('SQLAP',
    'APXSUIMP',
    'STAGE10',
    'ALL',
    1000,
    'N',
    'N',
    'N',
    CHR (0)
    IF (NOT success)
    THEN
    RAISE submitprog_failed;
    END IF;
    apps.fnd_file.put_line (apps.fnd_file.LOG,
    'Calling submit program second time...'
    success :=
    fnd_submit.submit_program ('SQLAP',
    'APXSSIMP',
    'STAGE20',
    'ALL',
    1000,
    'N',
    'N',
    'N',
    CHR (0)
    IF (NOT success)
    THEN
    RAISE submitprog_failed;
    END IF;
    -- Step 3 - call submit_set
    apps.fnd_file.put_line (apps.fnd_file.LOG, 'Calling submit_set...');
    req_id := fnd_submit.submit_set (NULL, TRUE);
    IF (req_id = 0)
    THEN
    RAISE submitset_failed;
    END IF;
    apps.fnd_file.put_line (apps.fnd_file.LOG, 'Finished.');
    And in the interface table the record status is rejected and ther is no corresponding record in ap_supplier_int_rejections.
    but the supplier is getting created succesfully.
    ### Steps to Reproduce ###
    INSERT INTO ap_suppliers_int
    (exclusive_payment_flag,
    vendor_interface_id,
    vendor_name,
    segment1,
    vendor_type_lookup_code,-- set_of_books_id,
    status
    VALUES ('N', --'N',
    ap_suppliers_int_s.NEXTVAL,
    'TEST_REC4',
    4428813,
    'VENDOR', --2041,
    --rec_spl_site_bank_hdr.set_of_books_id,
    'NEW'
    INSERT INTO ap_supplier_sites_int
    (vendor_site_interface_id,
    vendor_interface_id,
    vendor_site_code,
    address_line1,
    city,
    state,
    zip,
    country,
    operating_unit_name,
    status --exclusive_payment_flag
    VALUES (ap_supplier_sites_int_s.NEXTVAL,
    -- VENDOR_SITES_INTERFACE_ID
    ap_suppliers_int_s.CURRVAL,
    -- VENDOR_INTERFACE_ID
    'REC_VDR_SITE4',
    -- VENDOR_SITE_CODE
    'REC_ADDR4',
    -- ADDRESS_LINE1,
    'REC_CITY4', --CITY
    'REC_STATE4', --STATE
    3442121,
    'US', -- COUNTRY,
    ' Test US Operating Unit',
    'NEW'
    );

    Hi
    I have the same issue with ap supplier sites interface program .. Did your problem got solved..I will be thankfull for any help
    Thanks

  • Importing previously exported data (from local file)

    After having searched to no end I still cannot find the answer to my question....
    Our current environment is an SAP and FLM system (forms livecycle management) using livecycle designer for design and all users on at least reader 9.
    I would like to know if it is possible for a user to fill in a form and save the entered data (to a local file) so the following week they can then open latest version of the PDF (requested from the FLM portal to be either completed online (portal) or offline (email)) they would then import the data, make any minor updates and submit. The forms should have reader extensions applied but as yet unsure of the exact settings (if any) as this happens automatically within FLM. The form shouldn’t change in future, more than some additional validation, but allow form numbers and versions within FLM to be better maintained. Plus to ensure users do not keep or use outdated forms.
    From my understanding there are 2 ways to import data, either folder level javascript or via certifying the form. For our setup folder level scripts are a non-starter as would have no way to maintain these on every PC (far to many) so that leave us with certifying forms....from the limited information I have found on this it appears that the certification may break when importing data, have very very basically tested this and appears to be true.
    So the last thought was if I can import data programmatically via javascript and fill fields in etc would this still have the same affect of breaking certification?
    Appreciate any advice

    > Hi Srdjan.
    >
    > Are you familiar with the MDM Import Manager?
    >
    > Best regards,
    > Nir
    Hi
    I haven't tried the MDM Import manager..but I solved it with LSMW. I created a recording for one record entry, then I specified the rest of the data in a text file, and passed it to LSMW..It worked (almost) perfectly!
    Thanks for the suggestion though, I'll give it a try some other time
    Best regards,
    S.

Maybe you are looking for

  • How do you change your apple id on your iphone 5

    how do you change your apple id on your iphone 5. I also increased storage and cannot update to latest software upgrade! ANNOYING!!!! Yes, I logged in and out of the Ap Store and it is correct on that end. I have signed in on my PC too and connected

  • Iphone update 2.0 sync issue due to lack of permissions

    I found this posting in the ipod section. After countless hours on the phone with appple tech support and a 2 hour visit to the "genius bar" (the "genius" suggested I should go ask the geek squad for help!)this fixed my problem!!! Apparently, there a

  • Persistent Flashing Question Mark Folder Icon, after Repair & Rebuild-THX!

    Hello All, Thank you in advance for any insights. For the past week, one/two days after a force re-boot, my Quicksilver Mac (OSX 10.4.11 and OS 9 Classic) starts up with the dreaded flashing question mark folder. The start up disk has always been on

  • How to connect to the database

    hello, i'm using windows 2000 sp: 4 i have installed databaseXE 10g and Developer suite 10g (installation: Complete). When i run oracle designer or repository administration utility, i can't enter with my database acount > user : system, password: xx

  • Using restore points WITHOUT flashback possible (in Oracle Express versio)?

    For development I am using Oracle Express 10g version rather than Enterprise version. Unfortunately the "Flashback" feature is NOT available in Express version (only in Enterprise). I can CREATE a RESTORE POINT but I can NOT go back to it with a Flas