problem with the creation of a folder and a file, read in the header and data

I want to create a new folder named by time and then generate a file inside this folder txt: reads first header information and then reads the data, but the problem is that if there is this folder, the header appear in the file, if this folder is not existed, the header will not appear in the txt file.

Thanks for your help.

Hi Junniji,

Check the attached vi. I did what Bob was trying to explain in the vi. I documented the steps described in the block diagram. Take a look. I had few comments on your code as well. Always try to connect the wires of the error when coding and try to keep the neat code so that its easy to debug and understand the flow (even if it's a test code ).

A Subvi missing in vi who sent you there. I hope that you will have in your pc

Kind regards
Amine31

(Give glory to good answers, mark it as a Solution If your problem has been solved )

Tags: NI Software

Similar Questions

  • Problems with the transmission of data between the screws

    Hi all.

    I have a question where my program slows considerably during the race.

    The program is a producer-consumer, where I have the main consumer loops and loops producer for USE comms, measure the output power, input for measuring the power, thermal control, etc..

    Regarding the issue, the measures of output loop takes readings and transmits the data to a separate VI which remains running (measure of output processor). This VI summarizes and on average the data and also displays data for the operator to see details if necessary. The operator shows and hides the front panel of this VI with a button on the main program. This VI also returns the summary data to the main VI, where it is read by my loop of consumer.

    The main measures output VI loop takes about 200mS to run when the program is first started. Less than a minute, it is 400 MS, and it's all downhill from there.

    I've isolated the problem to the way I pass data back (I think). I couldn't find a way to pass the reference of the queue between two screws not connected by wires. I open a reference to the VI processor and use Ctrl Val.Set and Get to pass the data back. If I take the intersection of the Subvi data, there is no slowdown.

    My questions are:

    (1) why the data passing by invoking a node of the control on the target would cause the downturn?

    (2) how would I get/pass information of queue between the two screws are not connected?

    (3) Alternately, could I start the VI processor in my main program, run and pass data in and out of it? I want to keep it running, because it is also part of the user interface.

    I don't know that I have not explained this very clearly. I took some screenshots of my code, but don't see how to download here.

    Thanks in advance,

    Jim


  • Problem with the acquisition of data on XP Embedded

    Hello

    I'm using LabView 8.5, 8.7 DAQmx. My application is collection of data of NI USB-6009 14bits. I tried to create applications for tablet PC with installed Windows Xp Embedded. I created the installer on tablet with installed Windows 2000.  I solved all the problems that occurs during installation. First version of the program have assistant DAQ in a main VI who collect and process the data. It worked properly on Xp Embedded. Second version was split into two of the Subvi. One is data collection and secondary processing. Each VI have own while loop. Both Subvi is placed in the large loop and they start at the same time. I am writing all the data to global variables. On PC with the windows application created 2000 worked properly. Error occurs when I moved it to Xp embedded. VI, which is the collection of data, the error see the 200361 code and text:

    DAQmx reading (analog 1-d Wfm NChan NSamp) .vi:2
    The task name: _unnamedTask<0>

    I know its something with the sampling and the clock, but I do not see where is the problem. In the main loop and two Subvi I 'wait until the next ms Multiple"block with a value of 200. DAQ Assistant were set as follows:

    Price: 1000

    Number of samples: 1000

    Timeout (s): 10

    Can you tell which can cause this error?

    If you would like more information please write here.

    Problem solved. There was connection between PC and USB-6009. Program works when I connect the USB-6009 housing directly to the PC. Previous connection was through usb hub.

    Thanks anyway.

  • Problem with the filtering of data

    Hello!

    I have a problem with filtering the data in my table and don't know how to solve it properly.

    I created a tabular presentation, my table, a few text fields that are used as input for the various columns of the filter and a filter button that submits the page.

    The problem appeared when I try to filter a column that has null values in the table and is editable... it's that I have found.
    When I press the button I get no line, although there should be some.

    It's the submitted query:

    Select

    "MSR_PRD_ID,"

    "SRC_STM_ID,"

    "ID."

    "ISIN"

    ...

    of ' #OWNER # '. " IZV_SLOG_DET ".

    WHERE

    Lower (MSR_PRD_ID) = low (nvl (: P7_X_MSR_PRD_ID, MSR_PRD_ID)) and

    Lower (SRC_STM_ID) = low (nvl (: P7_X_SRC_STM_ID, SRC_STM_ID)) and

    lower (ISIN) = low (nvl (: P7_X_ISIN, ISIN)) and

    ...

    The nvl function is used so that if the user leaves the field blank it filters by fields that have entry only.

    Does anyone know how I could get around this?


    Kind regards

    Ivan

    LOWER (NVL (ISIN, 'Y')) = LOW (NVL (: P7_X_ISIN, BASS (NVL (ISIN, 'Y'))))

    Denes Kubicek

    -------------------------------------------------------------------

    http://deneskubicek.blogspot.com/

    http://www.Apress.com/9781430235125

    https://Apex.Oracle.com/pls/Apex/f?p=31517:1

    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494

    -------------------------------------------------------------------

  • problem with the type of date dd/mm/yyyy

    Hi all!
    I want to do something simple.
    to get a type of dd/mm/yyyy string and convert it ti date jj/mm/aaaa type.
    I wrote simple code
    String pattern = "dd/MM/yyyy";
    SimpleDateFormat format = new SimpleDateFormat (pattern);
    try {}
    Date = format.parse("12/03/2006");
    System.out.println (date);
    } catch (ParseException exception) e {}
    e.printStackTrace ();
    }

    but the problem that I get Sun Mar 12 00:00:00 GMT + 02:00 2006
    and I want to get this format dd/mm/yyyy.
    because I need to insert it in my db. Thank you all

    First thing: almost always if a SQL statement uses variable data, use a PreparedStatement. With the help of a simple statement can, at first, most obvious glance, but it will cause endless problems.

    The constant strings in SQL are "single quotes" i.e. apostrophes. They must at least cannot escape string constants. One of the reasons for always using class PreparedStatement is that you concatenate in a string value may contain an apostrophe. In this case it will be, at best, give your SQL syntax error. Worse it can make your system vulnerable to hackers.

    Use code publishing code tags. Put the word 'code' braces before and after. This makes your code readable.

    The field attribute by DEFAULT when you create a table must be a real date, not a model. I have never know this is useful for a date, except if it set to pick up the current date.

  • output of the coil in .csv file - of the problems with the display of data

    Hello

    You will need to provide the result of a select query that contains approximately 80000 registration in a .csv file. A procedure is written for the select query and the procedure is called in the script of the coil. But few of the columns have the decimal point in values. For example, there is a personal_name column in the select query that says the name as "James, Ed. Then the output in different columns. Therefore, the data is being shifted to the right for the remaining columns.
    Some could help solve this problem. I mainly used a procedure as the select query is about three pages, and so you want the script to look clear.

    Script is,

    AUTOPRINT activated;
    Set the title.
    Set TRIMSPOOL ON;
    the value of colsep «,»;
    set linesize 1000;
    set PAGESIZE 80000;
    variable main_cursor refcursor;
    escape from the value.
    coil C:\documents\querys\personal_info.csv
    EXEC proc_personal_info(:main_cursor);
    spool off;

    Hello

    set PAGESIZE 80000 ;
    

    is not valid, and it will print header as all the 14 ranks of default.
    You can avoid printing the header in this way:

    set AUTOPRINT ON ;
    set heading ON;
    set TRIMSPOOL ON ;
    set colsep ',' ;
    set linesize 1000 ;
    set PAGESIZE 0 ;
    set escape /
    set feedback off
    spool c:\temp\empspool.csv
      SELECT '"'||ename||'"', '"'||job||'"'
      FROM emp;
    spool off
    

    The output will look like this in this case

    "SMITH"     ,"CLERK"
    "ALLEN"     ,"SALESMAN"
    "WARD"      ,"SALESMAN"
    "JONES"     ,"MANAGER"
    "MARTIN"    ,"SALESMAN"
    "BLAKE"     ,"MANAGER"
    "CLARK"     ,"MANAGER"
    "SCOTT"     ,"ANALYST"
    "KING"      ,"PRESIDENT"
    "TURNER"    ,"SALESMAN"
    "ADAMS"     ,"CLERK"
    "JAMES"     ,"CLERK"
    "FORD"      ,"ANALYST"
    "MILLER"    ,"CLERK"
    

    Alternatively, you can consider creating a single column by concatenating the columns in this way:

    spool c:\temp\empspool.csv
      SELECT '"'||ename||'","'||job||'"' 
    

    In this case the output will look like without spaces between the columns:

    "SMITH","CLERK"
    "ALLEN","SALESMAN"
    "WARD","SALESMAN"
    "JONES","MANAGER"
    "MARTIN","SALESMAN"
    "BLAKE","MANAGER"
    "CLARK","MANAGER"
    "SCOTT","ANALYST"
    "KING","PRESIDENT"
    "TURNER","SALESMAN"
    "ADAMS","CLERK"
    "JAMES","CLERK"
    "FORD","ANALYST"
    "MILLER","CLERK"
    

    Kind regards.
    Al

    Published by: Alberto Faenza may 2, 2013 17:48

  • Problem with the display of data in responses

    Hello

    I need to create reports with the Client name, name of the debtor. A customer has several debtors. While I was querying the database directly, I was able to view the list of debtors to the customers. But in the responses he showed me complete data. He has been restricted to 4 rows.
    Reg any idea that!

    Thank you
    Jerome

    Check your data in the tables and the join condition.

  • Problem with the type of data in a view

    Hi all

    I have modified a view. For this reason my view passed to varchar2 column data type number automatically. But it should be only a number.

    Updated the view that changes the data type of column varchar2

    VIEW to CREATE or REPLACE v1
    AS
    SELECT Decode (Sign (mta.base_transaction_value), 0, Decode (Sign (mta.transaction_value), Decode (Sign (mta.primary_quantity),-1, NULL, 0))
    MTA.base_transaction_value),
    -1, NULL,
    Decode (Sign (mta.primary_quantity),-1, NULL, NULL
    MTA.base_transaction_value),
    (0)
    1, MTA.base_transaction_value,
    Col1 is NULL)
    Mtl_transaction_accounts MTA

    Old view that keeps this column under the number:

    VIEW to CREATE or REPLACE v1
    AS
    SELECT Decode (Decode (Sign (mta.base_transaction_value), 0, Decode (Sign (mta.transaction_value), 0, Decode (Sign (mta.primary_quantity), 1,0,))))
    0,0,
    (NULL),
    1.0,
    (NULL),
    1, MTA.base_transaction_value,
    Col1 NULL))
    Mtl_transaction_accounts MTA

    -> Create a note that the type of data of base_transaction_value, transaction_value, primary_quantity columns is number

    No help for making the data type of column 'col1' number using my first query?

    Thank you
    Srini

    The data type of an expression of DECODE() is determined by that of his first return value. Oracle has decided that a NULL value is a VARCHAR2 data type (because there must be something ).

    The changes to your code are extremely intertwined and twisted out and frankly too hard to work through. However, I think at some point the changes that you have implemented it had that effect.

    SQL> create or replace view v1
      2  as
      3  select decode(to_number(to_char(sysdate, 'dd')), 1, 0, 99) as col1
      4  from dual
      5  /
    
    View created.
    
    SQL> desc v1
     Name                                                  Null?    Type
     ----------------------------------------------------- -------- ----------------
     COL1                                                           NUMBER
    
    SQL> create or replace view v1
      2  as
      3  select decode(to_number(to_char(sysdate, 'dd')), 1, null, 99) as col1
      4  from dual
      5  /
    
    View created.
    
    SQL> desc v1
     Name                                                  Null?    Type
     ----------------------------------------------------- -------- ----------------
     COL1                                                           VARCHAR2(2)
    
    SQL>
    

    Cheers, APC

    blog: http://radiofreetooting.blogspot.com

  • problem with the vista updates, dates back to December 2008

    In December 2008, I had remote access, now have broadband services. have family vista premium with service pack 1, the problem started when I tried to install the December 2008 windows updates. checked all updates essential etc. then let problem execution, not finished, then computer rebooted as it always does, is gone on the screen, then rebooted, saw the windows bar downstairs and then (as would normally go to LOG IN) it went to black screen and then off, the thing windows tried to start and check the disc and other programs of repair but kept saying could not start. Looked at this time comes to say has encountered an unknown error and could not fix, end was to use the F keys as an administrator login and do a system restore to 5 December and then worked well, have run the check disk and defrag and virus scans etc... now, my pc works fine, but I have not installed updates since December 2008, as know that it will happen if I do. However, I want to keep my vista up-to-date. I think that may be corruptions in the updates in a temporary folder somewhere, but don't know where it is. is - it there anyway to remove the files that can be corrupted or is there another solution, looked everywhere for answers in the forums and helpdesk there were several other people in the same question. My computer work fine, but I wonder if I will ever be able to install an update again. I have to be clear that I can run windows update without issue, it lists later and everything but when it's this thing to reboot it goes back to square one as shown above. Something in the updates is messing up my system and even widows classes as unknown error.

    Annanimo,
    Thank you for visiting the Microsoft Answers community.

    To test your corrupt file system, run the System File Checker:
    To run the System File Checker tool, follow these steps:
    Click Start and type cmd in the box start the search.
    Right click on cmd in the list programs, and then click Run as administrator.
    If you are prompted for an administrator password or a confirmation, type your password or click on continue
    At the command prompt, type the following line and press ENTER:
    sfc/scannow
    When the analysis is complete, test to see if the problem you are experiencing is resolved.

    Let us know what that discoveries and if we are to advance, support.
    Thank you
    Gloria
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Problems with the debugger in Data Modeler Beta DDL Custom Transformation Scripts

    Hello

    I use Oracle SQL Data model Beta 4.1.0.866.

    Currently, I am working on a project to generate the models in PHP for our relational database models MVC framework. Some settings must be entered from the user,

    so, I'm importing Java classes for JOptionPane in the Transformation of the customized with DDL Scripts

    var ji = new JavaImporter(java.io, java.lang, javax.swing, java.util);

    I can use these classes with no problems, but when I want to use the debugger, it cancels the execution with this error message:

    debugger_data_modeler.PNG

    Is this a bug or am I missing something here?

    And would it not possible and even preferable to processing entirely in Java instead of JavaScript scripts?

    Hello

    Try it following the syntax:

    var ji = new JavaImporter(java.io, java.lang, Packages.javax.swing, java.util);

    And would it not possible and even preferable to processing entirely in Java instead of JavaScript scripts?

    Well, it's not on the use of JavaScript, it's scripts in Java Platform - JSR 223 https://www.jcp.org/en/jsr/detail?id=223

    So if you have a JSR 223 engine of script in the JAVA virtual machine you can use your scripting language. We simply provide a setting where you can put your scripts to do something useful.

    We don't know in advance what language will be used. JavaScript engine is included in Java6 and Java7 so this is the reason why our examples are in JavaScript.

    Using Java instead of JavaScript don't make the job easier, look at the part of import here - Re: impossible to cast objects in the Script SQL DM 4.0 Transformation

    Philippe

  • Problem with the fusion of data using the Avery label template

    I use indesign for a mailing of basis for my Christmas card labels. Each year, it worked perfectly...

    This year, for some reason any, when making a data merge (and asking an overview with multiple records) in an blank document , it works fine.

    As soon as I try in the model of the preview disappears and it shows just the first record.

    I tried and then export the model as image and placed just behind and even on its own layer... In the hope to use only the model as a visual guide... but the preview does not work either.

    Basically, I can't get anything in the document to make it work. But then I have no assurance as to the separation so he can hit the labels/page 30 on point.

    Has anyone else had these issues?

    When you perform multiple records per page preview is bug. Either don't use the preview, or cancel immediately after, then perform the merge.

    If you have already used a snippet in your template, it is no longer needed and should be replaced. You can copy your placeholders in a new template file. I'm not familiar with Avery templates, but I suspect that they are not intended to be used with a multiple records by merging the page. Several mergers Records exactly require a set of placeholders in the upper left corner, and the other instances will be duplicated according to the margin and spacing parameters that specify you in the merge options. Thing that guides guides on your page is likely to cause a problem.

  • Problems with the current system date

    Hello everyone!

    I checked my server and found that by using the function now() shows me the current date but the time with more than 5 hours, I checked the date/time settings system and it's works well, if this happened to you please tell me how I can solve this problem.

    .. as I suggested in my post on the 18. It seems that the time returned by the functions is GMT instead of local, and deliver the thread I linked to appearst to describe the JVM.

    Phil

  • I am facing some problems with the installation of data protection. Please see below for details

    We use the data protection in our project.  The research that I have done in protecting data, I realized that the FDM adds the data in protected intersections to load the file that is created by FDM via the import process. The problem is that there are actions given in HFM and I get an error that says: "error: load the file cannot contain action data according to user option." I'm pretty sure that some user option (it would be great if you have an idea where I can find this user option) prevents data already present of shares to be loaded via FDM. Have faced this kind of error before? Is there a work around on this?

    Thank you

    Rohit

    Hello

    The user option which is the origin of the problem is 'File Contains Data property'. You must make sure that this load option is enabled when you start loading in FDM process if the dataset that you present must contain data of shares.

    Kind regards

    Simon

  • Problem with the Siebel (SBL-DAT-00565) tool

    Hello

    I installed the Siebel tool in Windows XP successfully, but when trying to connect to mark me the following error:

    An internall error appeared in the Siebel application authentication subsystem. Please contact your system administrator for assistance. (SBL-DAT-00565)

    Any idea, what the problem?

    Please, help me.

    Hello

    What database you are trying to connect,
    Check your ODBC sources,

    concerning
    Goud

  • Problem with the creation and display of intelligent insights

    I have a problem with the intelligent preview function. I use Lightroom 6.4 on Windows 10.

    • When I hit the "Original Photo" icon under the histogram in the develop Module, nothing happens: the remans icon exactly the same and no record Preview Smart is created in the catalog folder.
    • When I create a Smart overview in the library Module (library-> Previews-> generate Smart previews), a Preview Smart folder is created in the catalog folder, BUT , in the module development, l ' icon below the histogram says still 'Original Photo': it does not seem to recognize that a smart preview is available.

    Any idea?

    Rob.

    If everything works as you want, so you can leave the open Historgram.

  • How do I monitor/find where is the State of my download?  I don't know how long it takes or if there is a problem with the download that I can't find anything.  Also, is it supposed to be an icon for my purchase of Photoshop and light in my apps folder

    How do I monitor/find where is the State of my download?  I don't know how long it takes or if there is a problem with the download that I can't find anything.  Also, is it supposed to be an icon for my purchase of Photoshop and light in my apps folder?  Where can I find that when it's done download?

    Could you please confirm the operating system you are using.

    You can see the status of the application of CC desktop download.

    The CC app desktop click the creative cloud icon located in the taskbar (Windows) or the Apple bar (Mac OS) menu, to open the creative cloud desktop application.

    Hope this will help you.

    Kind regards

    Hervé Khare

Maybe you are looking for