Real time file exist check...

Hello all,
Would like to ask, is there any way in ABAP to create a real-time file(S) exist check let's say in local PC drive/directory?
Thanks in advance!

Hi,
1. If you are talking about real time,
  then in that case the z program will continuously run (in foreground ofcourse).
It will continually check (eg. every 1 second) for the existence of file - using the FM or class method.
2. In such continous checking, we have to use the timer concept.
3. Below is a program which continuosly
   checks for the existence of file
   D:\abc.txt
  (u can change that file in the program)
If the file is not found (continously) it keeps on
   displaying 'File NOT Found'
   if found it displays 'File FOUND'
4. Just copy paste to get a taste of it.
5.
REPORT abc NO STANDARD PAGE HEADING.
DATA : wa(72) TYPE c.
CLASS my DEFINITION.
PUBLIC SECTION.
METHODS : run_handler FOR EVENT finished OF cl_gui_timer.
ENDCLASS. "my DEFINITION
DATA timer TYPE REF TO cl_gui_timer.
DATA myh TYPE REF TO my.
* CLASS my IMPLEMENTATION
CLASS my IMPLEMENTATION.
METHOD run_handler.
CALL METHOD timer->run.
PERFORM mylist.
ENDMETHOD. "run_handler
ENDCLASS. "my IMPLEMENTATION
*-------------- Init
INITIALIZATION.
CREATE OBJECT timer.
CREATE OBJECT myh.
SET HANDLER myh->run_handler FOR ALL INSTANCES.
* PARAMETERS : a TYPE c.
*----------- End of selection
START-OF-SELECTION.
WRITE sy-uzeit TO wa.
WRITE wa.
timer->interval = '0.5'.
CALL METHOD timer->run.
FORM mylist.
*WRITE sy-uzeit TO wa.
data : filesize type i.
CALL FUNCTION 'TMP_GUI_GET_FILE_EXIST'
  EXPORTING
    FNAME                = 'D:\abc.txt'
IMPORTING
*   EXIST                =
*   ISDIR                =
   FILESIZE             = filesize
EXCEPTIONS
   FILEINFO_ERROR       = 1
   OTHERS               = 2
if filesize  = -1.
wa = 'File NOT Found'.
else.
wa = 'File FOUND !!!'.
endif.
MODIFY LINE 1 LINE VALUE FROM wa.
ENDFORM. "MYLIST
regards,
amit m.

Similar Messages

  • Error: 0271: Real Time Clock Error - Check Date and Time settings.

    Hello all,
    I have lenovo T430s laptop that is configured with Bitlocker encruptions and TPM PIN entry. I don't think that has anything to do with the error msg I am getting but here it is. Error: 0271: Real Time Clock Error - Check Date and Time settings.
    Press Esc to continue or F1 to enter setup. I am unable to get into BIOS or even the login screen for Windows 7.
    Any advice would be appreciated.

    Thanks to everyone for the help.  Just want to close this out.  I had a IBM/Lenovo technician here today and he replaced the CMOS battery.  Upon the change, the computer is fine being reconnected to the dock (the three times I tried it).  So it has been resolved with the battery.  Surprised by the incompatibility claim because I am not having issues now.  Wondering if it's just a USB 2.0 vs. 3.0 thing (and Lenovo trying to sell more peripherals, of course).
    Thanks!

  • Real Time Clock Error - Check Date and Time settings, System CMOS Checksum bad

    Hello everybody,
    Can help anyone to resolve my problem.
    I have an Thinkpad W520 (42823FG), BIOS 8BET60WW 1.4        When I disconect AC power and remove battery and connect again, I see this message on screen:
    "Real Time Clock Error - Check Date and Time settings, System CMOS Checksum bad
    Press Esc to continue or F1 to enter Setup"
    Is this a system board problem or CMOS battery problem ?
    Thank you

    Hello and welcome,
    It's probably (hopefully) just the CMOS battery.  The easiest way to find out is to just replace that battery.
    Page 85 of the Hardware Maintenance Manual:
    Hardware Maintenance Manual
    Here's an example of the battery.  I'm not recommending (or not) this vendor:
    http://www.ebay.com/itm/New-Lenovo-ThinkPad-W500-W510-W520-W530-W700-W701-W701ds-CMOS-RTC-Backup-BAT...
    Z.
    The large print: please read the Community Participation Rules before posting. Include as much information as possible: model, machine type, operating system, and a descriptive subject line. Do not include personal information: serial number, telephone number, email address, etc.  The fine print: I do not work for, nor do I speak for Lenovo. Unsolicited private messages will be ignored. ... GeezBlog
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество

  • Plz Give me real time file to file scenarios in sap xi

    Hello Experts,
       Can any one give me the real time file2file scenarios in sap xi. And differnet file structures
    and different 'File Content Conversion'  objects. Explain me different approch for file2file with different scenarios.
    Thanks in advance.
    Arjun.

    HI Arjun,
    Go throgh the following links for File content conversion in the sender side as well as receiver side
    File content conversion sites:
    Introduction to simple(File-XI-File)scenario and complete walk through for starters(Part1)
    Introduction to simple (File-XI-File)scenario and complete walk through for starters(Part2)
    NAB the TAB (File Adapter)
    Introduction to simple (File-XI-File)scenario and complete walk through for starters(Part2)
    How to send a flat file with various field lengths and variable substructures to XI 3.0
    Content Conversion (Pattern/Random content in input file)
    Content Conversion ( The Key Field Problem )
    File Receiver with Content Conversion
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Please see the below links for file content conversion..
    The specified item was not found. - FCC
    File Content Conversion for Unequal Number of Columns
    File Content Conversion for Unequal Number of Columns - FCC
    Content Conversion (Pattern/Random content in input file)
    Content Conversion (Pattern/Random content in input file) - FCC
    XI Configuration for MDM Integration - Sample Scenario - FCC - MDM
    Regards
    Sridhar Goli

  • Real time : File Adapter : query

    Hi Folks,
    At development time( file adapter) we test our scenario by creating a sample XML file using message mapping tool .
    The type of message we get from this contains Message Type tag with namespace Attribute.
    <ns0:MT_XYZ xmlns:ns0="urn:xyz">
    My question is in do in real time we need to tell them that create message type with the anmespace attribute we are using ? and also how to suppress namespace and will it bring any complications in the process ?
    Regards,

    Santosh,
    1.     When using the File adapter and Content Conversion to read the file into XI, you can allocate a specific message namespace
    2.     If the namespace does becomes an issue for your scenario then use an additional mapping step to remove the namespace.  For example we have the
    Mesage Type MT_NAMES which has a a type of NAMES
    Subelement NAMEREC (0 .. unbounded)
    Subelements NAME1 and NAME2
    Sample xml
    <?xml version="1.0" encoding="UTF-8" ?>
    <ns1:MT_NAMES xmlns:ns1="http://namespace">
    <NAMEREC>
    <NAME1>AAA</NAME1>
    <NAME2>BBB</NAME2>
    </NAMEREC>
    <NAMEREC>
    <NAME1>CCC</NAME1>
    <NAME2>DDD</NAME2>
    </NAMEREC>
    </ ns1:MT_NAMES>
    Apply the XSL map
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"     
    xmlns:nsNN="http://namespace" >
         <xsl:template match="/">
              <xsl:for-each select="nsNN:MT_NAMES">
                   <NAMES>
                        <xsl:copy-of select="NAMEREC"/>
                   </NAMES>
              </xsl:for-each>          
         </xsl:template>
    </xsl:stylesheet>
    The namespace has been removed from the xml
    <?xml version="1.0" encoding="utf-8" ?>
    <NAMES>
    <NAMEREC>
    <NAME1>AAA</NAME1>
    <NAME2>BBB</NAME2>
    </NAMEREC>
    <NAMEREC>
    <NAME1>CCC</NAME1>
    <NAME2>DDD</NAME2>
    </NAMEREC>
    </NAMERS>
    Regards,
    Mike

  • Which is the actual file in vista documnets that we are seeing in palm desk ver 6.2.2 not the backups the real time file ?

    If the  Datebook.mdb.bak is a backup file couldn’t we rename it and since it has 1336   kb instead 
    of  approx 3000 like the others maybe it would be the correct info from before my crash 3 days ago
    without all the dupes .If that is correct can I copy it to palm desktop backup data and import it into
    calendar via import or change the extension to what is the correct extension for the caledar to use it
    as its active file )if you know for certain)   
    Most imortant questionof all is , I am strictly  guessing but I think the file named plain “datebook “
    with no extensions is the
    active file being viewed in the desktop because it is the most recent (yesterday at 1126 PM) and the
    file type is Data Base File .db .Is it possible that , that is the way ver 6.2.2 by access files in
    conjunction with Vista.  
    most important is datebook plain the active file in Palm ver 6.2.2 where there is no dat and bak only  datebook plain and db bak  db bakbak db mdg bak etc 
    Which is the file that actually appears in the data on the desktop Does anyone know 
    Post relates to: Treo 650 (Unlocked GSM)
    Post relates to: Treo 650 (Unlocked GSM)

    If you look at our orgnal thread I have answered how to recover data for your contacts. This process is the same for calendar as well. As to the file extensions
    Palm Desktop 6.2.2 uses
    .mdb(active file) .mdb.bak(hotsync backup)
    Palm Desktop 4.2 and lower uses
    .dat(active file) .bak(Hotsync backup)

  • ORACLE 11G  "real time apply" not work?????

    we have a database original on ORACLE 10.2.0.4 and we upgrade it to 11.1.0.7.
    after that we create standby database and tried to use "real time apply" feature.
    Primary database can transfer log files to standby database and standby database also can apply logs. The problem is it can NOT work on "real time apply".
    Ant ideal what wrong?
    === procedures ====== (standby database)
    SQL> startup mount;
    ORACLE instance started.
    Total System Global Area 2087780352 bytes
    Fixed Size 2161272 bytes
    Variable Size 1795163528 bytes
    Database Buffers 251658240 bytes
    Redo Buffers 38797312 bytes
    Database mounted.
    SQL> alter database open read only;
    Database altered.
    SQL> alter database recover managed standby database using current logfile disconnect;
    Database altered.
    SQL> select PROTECTION_MODE, PROTECTION_LEVEL, DATABASE_ROLE, SWITCHOVER_STATUS, OPEN_MODE, GUARD_STATUS from v$database;
    PROTECTION_MODE PROTECTION_LEVEL DATABASE_ROLE SWITCHOVER_STATUS
    OPEN_MODE GUARD_S
    MAXIMUM PERFORMANCE MAXIMUM PERFORMANCE PHYSICAL STANDBY NOT ALLOWED
    MOUNTED NONE
    SQL> select process, status from v$managed_standby;
    PROCESS STATUS
    ARCH CONNECTED
    ARCH CONNECTED
    ARCH CONNECTED
    ARCH CONNECTED
    RFS IDLE
    MRP0 APPLYING_LOG
    6 rows selected.
    ========== Primary database init.ora file setup =====
    ### for DG use
    db_unique_name = DBPMY
    log_archive_config='dg_config=(DBPMY,DBSBY)'
    log_archive_dest_1='LOCATION=/Archive/DBPMY/arch/arch MANDATORY'
    log_archive_dest_2='service=DBSBY valid_for=(online_logfiles,primary_role) db_unique_name=DBSBY LGWR ASYNC=20480 OPTIONAL REOPEN=15 NET_TIMEOUT=30'
    *.log_archive_format='DBPMY_%r_%t_%s.arc'
    log_archive_dest_state_1 = enable
    log_archive_dest_state_2 = enable

    There are a couple of things to look at.
    1. Real time apply requires standby redo logs on the standby database. On the standby database run this query:
    SELECT * FROM v$logfile where type = 'STANDBY';
    if you get 0 rows back you'll need to create standby logfiles
    The general guideline is to size them exactly like your redo logs but add one additional standby log to ensure it doesn't cause a bottleneck.
    2. Get the size of your logfiles:
    SELECT GROUP#, BYTES FROM V$LOG;
    3. For example if you have 3 redo logs that are 50 MB in size, create 4 standby redo logs 50 MB each and don't multiplex them.
    ALTER DATABASE ADD STANDBY LOGFILE ('/Archive/DBSBY/onlinelog/slog1.rdo') SIZE 50M;
    ALTER DATABASE ADD STANDBY LOGFILE ('/Archive/DBSBY/onlinelog/slog2.rdo') SIZE 50M;
    ALTER DATABASE ADD STANDBY LOGFILE ('/Archive/DBSBY/onlinelog/slog3.rdo') SIZE 50M;
    ALTER DATABASE ADD STANDBY LOGFILE ('/Archive/DBSBY/onlinelog/slog4.rdo') SIZE 50M;
    4. Cancel recovery on standby
    recover managed standby database cancel;
    5. Restart recovery using real time apply
    recover managed standby database using current logfile disconnect;
    6. To validate that real time is working you can check a few places.
    -It will say in the database alert log on standby that it's using real time apply
    OR
    -Check primary
    SELECT status, recovery_mode FROM v$archive_dest_status where dest_name = 'LOG_ARCHIVE_DEST_2';
    If the recovery_mode is "MANAGED REAL TIME APPLY" then real time apply is working, if it's anything else then we'll need to check more things.
    NOTE that if you are going to allow your current primary to switch roles and become a standby then you'll want to create standby redo logs on primary as well
    Sometimes recovery gets "stuck" and simply resetting the destination parameters can resolve it:
    alter system set log_archive_dest_2='service=DBSBY valid_for=(online_logfiles,primary_role) db_unique_name=DBSBY LGWR ASYNC=20480 OPTIONAL REOPEN=15 NET_TIMEOUT=30';
    There are some other things we can check next but let's start with the easiest fixes first.

  • Acquisition and filtrate of signals in real time

    Hello
    I am using a card NI 60386E and LabVIEW 7.1.
    I can acquire signals and keep them in a file * txt.
    I can read this file and pass a filter to him FIR. No problem.
    But...
    How I can acquire signals and filter them in real time?
    Exists on the matter some application note of National?
    Thanks.
    Saludos a todos.
    Carmelo

    Hi Carmelo
      You can put your filter VIs inside the while loop while
    adquiring data. As long as the processing time (computer dependent) is
    less than the acquisition time, you VI should run fine.
      There is no app. note as far as I note. Hope this helps
    Javier

  • Desing requriment for processing the IDOC in real time

    hi Gurus,
    we have a requirement to design for processing the IDOC in real time i.e.all the IDOC must be store and process for give time line with out using BPPM tool.we have suggested to use cache storage or storing the files in file adapter.
    please suggested good process with out compromising the Performance of PI.
    regards
    shankar

    hi Raj,
    Please find the example below for your reference
    let say
    System A-->PI--
    >system B
    system A sends multiple files based on time(daily or weekly) and real time( as an when the record created) to systerm B (CRM) in the form of IDOC Via. PI
    we needs to club the real time files and send it to system B.How best we can do without using BPM.
    regards
    shankar

  • File.exists() is not accurate on smb2 network share (use WatchService?)

    Hi,
    According to this document: SMB2 Client Redirector Caches Explained File.exists() is not accurate on a smb2 network share. I am not able to change any register settings, so I want to deal with it. According to the document there is an API to get the notifications from the file system. I assumed that the WatchService is the Java implementation of this API. Am I correct?
    I started with the WatchDir example from the jdk samples and stripped it a bit. I only need to know when a file is created and delete (I don't care about file modifications). For testing I have added new File.exists() when a new event has been triggered. I also start a separated Thread which test the file existence also. When I don't start this separated thread the file exists returns true immediately. When the extra thread is started it is not accurate any more. I need a more accurate file.exists check in the whole application and all running threads.
    The output for my test case is this:
    FileExistsThread: subdir\test.txt == false
    watch registered for dir: subdir\
    FileExistsThread: subdir\test.txt == false
    FileExistsThread: subdir\test.txt == false
    FileExistsThread: subdir\test.txt == false
    FileExistsThread: subdir\test.txt == false
    FileExistsThread: subdir\test.txt == false
    FileExistsThread: subdir\test.txt == false
    WatchDir event: ENTRY_CREATE: test.txt
    WatchDir: subdir\test.txt exists == false
    FileExistsThread: subdir\test.txt == false
    FileExistsThread: subdir\test.txt == false
    FileExistsThread: subdir\test.txt == false
    FileExistsThread: subdir\test.txt == false
    FileExistsThread: subdir\test.txt == false
    FileExistsThread: subdir\test.txt == false
    FileExistsThread: subdir\test.txt == false
    FileExistsThread: subdir\test.txt == false
    FileExistsThread: subdir\test.txt == false
    FileExistsThread: subdir\test.txt == true
    FileExistsThread: subdir\test.txt == true
    FileExistsThread: subdir\test.txt == true
    FileExistsThread: subdir\test.txt == true
    As you can see the file test.txt  is created on line 9. The FileExistsThread have seen it on line 20, (at least 10 x 300 ms later).
    For testing I have used 2 Windows 7 pc's (with smb2 enabled which is default). The working directory must be on the remote pc and the file test.txt must be created (or copied from another folder) on the remote pc (not using the network drive, but on the pc itself).
    Here is my test code:
    package nl.test.main;
    import static java.nio.file.StandardWatchEventKinds.ENTRY_CREATE;
    import static java.nio.file.StandardWatchEventKinds.ENTRY_DELETE;
    import static java.nio.file.StandardWatchEventKinds.OVERFLOW;
    import java.io.File;
    import java.io.IOException;
    import java.nio.file.ClosedWatchServiceException;
    import java.nio.file.FileSystems;
    import java.nio.file.Path;
    import java.nio.file.Paths;
    import java.nio.file.WatchEvent;
    import java.nio.file.WatchKey;
    import java.nio.file.WatchService;
    public class WatchDir
      private final WatchService _watcher;
      private final String _dir;
      public WatchDir( String dir ) throws IOException
        _dir = dir;
        _watcher = FileSystems.getDefault().newWatchService();
        Paths.get( dir ).register( _watcher, ENTRY_CREATE, ENTRY_DELETE );
        System.out.println( "watch registered for dir: " + dir );
      public void run()
        try
          while ( true )
            WatchKey key = _watcher.take();
            for ( WatchEvent<?> event : key.pollEvents() )
              WatchEvent.Kind<?> kind = event.kind();
              if ( kind == OVERFLOW )
                continue;
              @SuppressWarnings( "unchecked" )
              WatchEvent<Path> ev = (WatchEvent<Path>)event;
              Path fileName = ev.context();
              System.out.println( "WatchDir event: " + kind.name() + ": " + fileName );
              if ( kind == ENTRY_CREATE )
                String realPath = _dir + fileName;
                System.out.println( "WatchDir: " + realPath + " exists == " + new File( realPath ).exists() );
            key.reset();
        catch ( ClosedWatchServiceException x )
          return;
        catch ( InterruptedException ex )
          return;
      public static void main( String[] args )
        Thread t = new Thread( new Runnable()
          @Override
          public void run()
            try
              while ( true )
                String filename = "subdir\\test.txt";
                boolean fileExists = new File( filename ).exists();
                System.err.println( "FileExistsThread: " + filename + " == " + fileExists );
                Thread.sleep( 300 );
            catch ( InterruptedException e )
              e.printStackTrace();
              return;
        t.start();
        try
          new WatchDir( "subdir\\" ).run();
        catch ( IOException e )
          e.printStackTrace();
    Any idea's?
    Thanks,
    Olaf

    If you donot have access to note 45172.1 as specified by Laurent Schneider.
    Snippet from note
    a. Mapped Drive : To use a mapped drive, the user that the service starts as
    must have setup a drive to match UTL_FILE_DIR and be logged onto the server
    when UTL_FILE is in use.
    b. Universal Naming Convention : UNC is preferable to Mapped Drives because
    it does not require anyone to be logged on and UTL_FILE_DIR should be set to
    a name in the form :
    \\\<machine name>\<share name>\<path>
    or
    "\\<machine name>\<share name>\<path>"

  • How to programmatically set the real-time CVI startup DLL?

    Dear NI Support Engineer:
    I'm part of a team of software engineers working on a real-time aerospace app at Honeywell (Coon Rapids, MN campus).  We're using LabWindows/CVI 9.0 and three LabView 8.6 real-time modules.
    Up until now, we've been using the CVI debugger to launch our real-time apps or just copying the app DLL to C:\ni-rt\cvi on the real-time box and setting it as the default startup DLL.
    What we need to do now is create our own directory structure at the root of C: on the real-time box (which, by the way, is using the Reliant file system).
    In fact, we have created directory ug7500 at the root of C: on the realtime box, and two subdirectories (one for data and one for results) directly under directory ug7500.  We'd like to place all of our app DLLs in the ug7500 directory and have the ability to change the default startup DLL programmatically.
    We've been using your LabWindows/CVI Real-time File Copy Utility to set the startup DLL whenever we're not using the debugger.  That was just fine for the first stage of our development.
    At this stage, however, we need be able to set the startup DLL programmatically.  We have not been able to find out how to do this from reading the real-time module documentation.
    Can you either point us at some documentation on programmatically setting the default startup DLL, or e-mail us the instructions, or give us a phone call and explain what steps we must take.
    Thank you very much.
    Vic
    763-957-4168

    Hello All,
    For the reference of anyone else trying to do this, you can modify the INI file to change the startup DLL. Using the INI instrument that ships with CVI (C:\Program Files\National Instruments\CVI90\toolslib\toolbox), you can find the StartupDLLs tag and replace the last value with your startup DLL, such as:
    #include "inifile.h"
    #include <cvirte.h>
    static int status;
    static IniText myINIFile;
    int main (int argc, char *argv[])
     if (InitCVIRTE (0, argv, 0) == 0)
      return -1;    /* out of memory */
     myINIFile = Ini_New (0);
     status = Ini_ReadFromFile (myINIFile, "c:\\ni-rt.ini");
     status = Ini_PutRawString (myINIFile, "LVRT", "StartupDLLs", "c:\\NI-RT\\system\\cvi_lvrt.dll;c:\\ni-rt\\system\\nidevldp.dll;nisysapirpc.dll;niorbp.dll;c:\\ni-rt\\system\\mxsemb.dll;c:\\ni-rt\\system\\nipxism.dll;c:\\NI-RT\\cvi\\myStartup.dll;");
     status = Ini_WriteToFile (myINIFile, "c:\\ni-rt.ini");
     return 0;
    Right now, there are some caveates with using CVI 9.0 to manipulate an INI file to be used on an RT target. The INI functions currently add line breaks automatically for large tag values and adds quotes around the values. For many INI files this is ok (such as TestStand INI files), but it will not work on an RT target. To remove these features, modify the following lines of the inifile.c file located in the same directory as the INI instrument:
    1. On line 38, change the default value of INI_NUM_CHARS_PER_LINE from 80 to a large number such as 8000.
    2. Comment out line 953 (newEntry->addMarkerQuotes = addMarkerQuotes;
    Now you should be able to programmatically change the INI file of your target machine and, therefore, change the startup DLLs.

  • How can I check if a file exists in CVI Real Time?

    It would also be nice if the help file designated whether functions were supported in real time or now.
    I tried this:
        if(GetFileAttrs (DataFileName,NULL,NULL,NULL,NULL) == -1)
    Michael Chadwell
    Department of Engine and Vehicle R&D
    Southwest Research Institute
    Solved!
    Go to Solution.

    You can check if a file exists in CVI Real-Time using GetFileInfo function.
    The CVI help provides a list of functions available on CVI Real-Time here: CVI Real-Time Functions
    National Instruments
    Product Support Engineer

  • File not found when trying to call a dll on LabVIEW Real Time machine

    I have a dll called "DLLRTTEST" that I've written, and have succesfully called on my host machine.  I'm now attempting to call this dll from a vi that is located on my real time computer.  Currently I get an "Error 7 occurred at Call Library Function Node in DLLRTTEST.vi." message upon execution
    In the attached screenshot I'm trying to ensure that the vi I'm running is in fact located on the real time system.  I then use a "Check if File or Folder Exists.vi" to confirm that the dll that I'm about to call does exist on the real time system as well.  However, I still receive an "error 7 file not found" error from the Call Library Function Node.
    Any help is appreciated.
    Solved!
    Go to Solution.
    Attachments:
    DLL_Call_Screenshot.png ‏61 KB
    DLL_Call_Screenshot.png ‏61 KB

    As nathand already mentioned, depending on your C toolchain your DLL will depend on other DLLs. Usually the according msvcrtXX.dll that matches your Visual C version, if you use Visual C, other runtime DLLs if you use a different C environment. These runtime DLLs are even necessary if you do not call anything in any of your functions, since the DLL makes various initialization steps when it gets loaded and that references some C runtime functions nevertheless. Compiling and linking the DLL with static C runtime is usually also not a clean solution since the linked in C runtime will then reference Windows APIs that are not available on LabVIEW RT.
    Depending on your version of LabVIEW RT you will have some mscvrtxx.dll files in your system directory but it will be an older one than from the latest Visual Studio version. If you can compile your DLL with that Visual Studio version then you should be fine, but could possibly run into new problems if you later upgrade to a newer LabVIEW RT version. Installing the C runtime distributables from newer Visual Studio versions is unfortunately also not a solution, since it references many (undocumented) Windows API functions that are not available in LabVIEW RT.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Save file real time

    hello
    i was having problem with the saving file real time. the data is
    desired to be saved in the form of spreadsheet. using the date and time
    as file name, the file will be saved automatically. i do not what has
    gone wrong as it can be used to save file offline.
    it appears the message of
    ERROR 8 occur at create file (file exists) (althought it does not exist)
    NI 488: DMA hardware error detected
    here attached the error message
    someone pls help
    thanks
    regards
    Attachments:
    error.png ‏20 KB

    It is difficult to tell from the small segment of code shown, but it appears that the New File function is in a loop. Is it possible that the loop iterates quickly enough that it attempts to create the file twice with the same time? One way around this it to check first to see if the file exists. If it does, than append a 1 (or 2, or 3, or ...) to the filename and try again.
    Lynn

  • Hypervisor: Create Standalone Real-Time Application (Error at deploying: File not found)

    Hello,
    I am using Hypservisor. With "Build Specifications" in the project explore I want to create a standalone real-time application.
    In my first try I only want to print some texts onto the real-time console (HyperTerminal) using the function "RT Debug String.vi". I built the real-time application successfully and got the rtexe-file locally on the windows system. But as I tried to deploy the application to the target system, I got the error: "File not found". Please check the attached file "error.txt" for details.
    I don't understand which file is not found. Or I used "\" as path separators. Is it wrong? I'd appreciate if you'd have any idea of the problem. Thank you very much.
    Regards,
    Scarletice
    Solved!
    Go to Solution.
    Attachments:
    ERROR.txt ‏1 KB
    builds.zip ‏153 KB

    Hello Casey,
    Thank you very much for your reply and your interest in our project. We are using Real-Time Hypervisor for the setup of our test stand. We use the Windows system to show the GUI and the Real-Time system for the real-time machine control and online data storage. We use shared variables and shared memory for the data exchange between the two systems.
    The system works generally quite fine now. But we still have to face new problems at each step forwards. I'm sure, I'll have more questions. I'd appreciate your advices. Thanks sincerely.
    Best regards,
    Scarletice

Maybe you are looking for

  • Strategy for ensuring replication is complete before initating query from source system

    Hi, I am using HANA as a side-car scenario with reports running in SAP ECC being accelerated by querying replicated tables in SAP HANA instead. This works well, however I don't have a good mechanism to validate before running a report whether the und

  • How do I import a PDF file to Adobe and convert it to a Microsoft Word?

    I am not very literiate when it comes to using alot of the programs that are available on my computer.

  • Related to PS of WBS Element

    Hi gurus, when am doing creation of PR or PO the system is allowing for a value more than approved in the project system. There is no check in the system to stop creation of PR or PO having value more than approved WBS element. However system is perf

  • Rename Users

    What the best way of renaming users?? I have taken over a site and there are a few changes required by the manager All users must have a login format FirstnameS[econdname) ie. Fred Blogg becomes FredB The users all have own data stored in Home folder

  • What can someone do on my apple id but doesn't know the password?

    What would someone be able to do with my apple id if they are already logged on but doesn't know my password? Can they look at my credit card info or look at my account status or can they mess my account up in any way? please list all the possibiliti