Leer fichero dat de datalogger

Buenas tardes, espero que me podais ayudar
mi problema es el siguiente: 
necesito leer un fichero .dat creado por un Datalogger, en el que existen canales como el timestamp, canales de humedad y canales de temperatura. Cuando intento leerlo me salta un error de "LabVIEW cannot write to a read-only data storage file"
Os mando la vi donde realizo la prueba de la lectura de la vi y me sale dicho error. Version de Labview 8.6
Solved!
Go to Solution.
Attachments:
OBT_MEDIDAS_TEMP.zip ‏16 KB

Hola Beatriz,
las funciones de lectura de archivos Express "Read Channel" sirve
para leer información de ficheros TDM específicamente, no para cualquier
fichero, ya que es necesario que la información dentro de archivo, este
estructurada en grupos de canales y canales. Si quieres hacer la lectura con
esta función express, te recomiendo que hagas la escritura a través de a función
express "Write data" que también está en la paleta de funciones
Programming>>File I/O>>Storage.
Si por lo que sea no puedes utilizar esta función para crear tus archivos de
datos, la solución es utilizar las funciones de escritura y lectura en texto
plano y binario que están en la paleta Programming>>File I/O. Puedes
encontrar ejemplos de cómo utilizar estas funciones en la ayuda de LabVIEW de
cada una de estas funciones o en el buscador de ejemplos de LabVIEW (busca la
palabra "files")
Salu2

Similar Messages

  • How to convert a Long data to Date format in LabVIEW 7.0

    I am using a ehternet communication between TINI and Labview. From TINI I am throwing Temperature( DOUBLE) and Date and time Information(LONG). When I try to catch it via TCP/IP client in LabVIEW(Simple Data Server Example) it in fact show me the Temperature value which get converted via Type cast. But the Date information I have tried with time stamp and others but it is not getting solved. I am not getting the right time/date information at all. when I connect it to time stamp it shows me some 1904 and some other time. I dun know why it is happening . any one can help. I am really stuck in here.

    Dear James
    Thank for your reply. I have tried with byte changing and it is not working. when I set it to 8 in timestamp nothing shows and I tried them changing the byte range and it not showing the proper result. I also believe that I have problem in the java code i am sending. how ever I have send the whole application I am working on.
    You will see in "HumiditySample.java"; long timeStamp is taking time from system which is written on dout.writeLong in "HumidityLogger.java" which is now captured by "loggingdaemon.java" which finally throws the data in "datalogger.java"to write on the network connection. There is a java file
    called"DataLoggerClient.java" which can be run to see the
    readings file correctly from the machine which in fact read corriectly as a Client while labView I am facing the problem. Hope this information will help u to get the problem. I am consistengly tring to solve it but i am stuck here. I am tring to learn. please help me out.
    regards
    shawon
    London Metropolitan University
    Attachments:
    shawonjava.zip.zip ‏16 KB
    shawonclient-mod.vi ‏75 KB

  • Import xml file from server to itab

    Hi all,
    I have a little issue loading data from xml file in server into my itab.
    With my file in local (C:\example\example.xml) works fine, but if try this with the same file in the server (e:\example\example.xml) dont work. This is my code resume.
    TYPES: BEGIN OF TY_TAB,
    NAME TYPE STRING,
    VALUE TYPE STRING,
    END OF TY_TAB.
    DATA: ITAB TYPE STANDARD TABLE OF TY_TAB,
    WA TYPE TY_TAB.
    * Nombre del fichero
    DATA: NOMBREFICHEROXML LIKE IBIPPARMS-PATH,
    * data XML
    DATA: LCL_XML_DOC TYPE REF TO CL_XML_DOCUMENT,
    V_SUBRC TYPE SYSUBRC,
    V_NODE TYPE REF TO IF_IXML_NODE,
    V_CHILD_NODE TYPE REF TO IF_IXML_NODE,
    V_ROOT TYPE REF TO IF_IXML_NODE,
    V_ITERATOR TYPE REF TO IF_IXML_NODE_ITERATOR,
    V_NODEMAP TYPE REF TO IF_IXML_NAMED_NODE_MAP,
    V_COUNT TYPE I,
    V_INDEX TYPE I,
    V_ATTR TYPE REF TO IF_IXML_NODE,
    V_NAME TYPE STRING,
    V_PREFIX TYPE STRING,
    V_VALUE TYPE STRING,
    V_CHAR TYPE CHAR2.
    NOMBREFICHEROXML = 'E:\example\example.xml'.
    CREATE OBJECT LCL_XML_DOC.
    CALL METHOD LCL_XML_DOC->IMPORT_FROM_FILE
    EXPORTING
    FILENAME = NOMBREFICHEROXML
    RECEIVING
    RETCODE = V_SUBRC.
    IF V_SUBRC EQ '0'.
    V_NODE = LCL_XML_DOC->M_DOCUMENT.
    CHECK NOT V_NODE IS INITIAL.
    V_ITERATOR = V_NODE->CREATE_ITERATOR( ).
    V_NODE = V_ITERATOR->GET_NEXT( ).
    WHILE NOT V_NODE IS INITIAL.
    CASE V_NODE->GET_TYPE( ).
    WHEN IF_IXML_NODE=>CO_NODE_ELEMENT.
    V_NAME = V_NODE->GET_NAME( ).
    WHEN IF_IXML_NODE=>CO_NODE_TEXT OR
    IF_IXML_NODE=>CO_NODE_CDATA_SECTION.
    *text node
    V_VALUE = V_NODE->GET_VALUE( ).
    MOVE V_VALUE TO V_CHAR.
    IF V_CHAR <> CL_ABAP_CHAR_UTILITIES=>CR_LF.
    WA-NAME = V_NAME.
    WA-VALUE = V_VALUE.
    APPEND WA TO ITAB.
    CLEAR WA.
    ENDIF.
    ENDCASE.
    *advance to next node
    V_NODE = V_ITERATOR->GET_NEXT( ).
    ENDWHILE.
    WRITE:/ 'file ok'.
    ELSE.
    WRITE:/ 'file ko'.
    Anyone can help, or tell me a easy way to load xml file from server to my itab that works with my old sap 4.7.
    thanks
    Edited by: DIEGO_GT on Nov 18, 2011 12:04 PM

    Hi Diego.
    Next time try to search in [www.sdn.sap.com] first.
    See the following example: [http://wiki.sdn.sap.com/wiki/display/ABAP/UploadXMLfiletointernal+table]
    Regards.
    Rafael Rojas.

  • [MX2004] send mediante php pero que no muestre una pagina web

    quiero enviar una varibable por php pero al hacerlo se me
    abre la venta del
    navegador web
    enviar.php
    <?php
    //echo $HTTP_POST_VARS['cadena'];
    $destino="fichero.dat";
    $abrir = fopen($destino,"w");
    $cadena="esto es una prueba".$HTTP_POST_VARS['cadena'];
    $gestor = fputs($abrir,$cadena);
    ?>
    en flash
    var lv = new LoadVars();
    lv.cadena = "KIKO";
    lv.send("enviar.php","_self", "POST");

    Hola !
    Lo siento olvide que cambio de la version 2012 a la 2013, fue un error mio. Sin embargo ya que realizaste los ajustes necesarios, y nos aseguramos que la documento *.html es estatico, el web server no debe de cambiarlos al cargarlos. El web service lo unico que hace es mandar llamar un archivo preestablecido, por ende debe de haber un error en la forma en que estamos mandando llamar el archivo ... Por tanto te propongo revisar los siguientes puntos :
    1. El web service te carga un documento (no el que tu esperas), lo que es una buena senal. Si el documento no estuviera dentro del build o algo por el estilo, te mandaria un error 404. Hay que asegurarnos que no tienes unas versiones pasadas o modificadas de tu pagina *.html que por error esten siendo llamadas, y nos haga pensar que el codigo esta siento cambiado.
    2. Estas utilizando hojas de estilo (style sheets) declaradas fuera de tu codigo principal ?? Hay que asegurarnos que estas llamando todas las css rules correctamente.
    3. Tener todos los archivos necesarios dentro del build. Si tu pagina principal de *.html manda llamar otros archivos, entre ellos hojas de estilo, hay que tenerlas dentro del build del web service. Igual te propongo declarar todas tus css rules dentro del <style> ... </style> del codigo principal y mandarlo llamar solo para asegurar que no va por ahi el problema.
    4. Por ultimo, hay que asegurarnos que el nombre de la computadora servidor corresponde con el IP donde esta corriendo el web service. No vaya a ser que por algun error estemos llamando a la computadora del vecino o algo por el estilo, pero lo dudo .. siento que no va por aqui .. solo se me ocurrio xD
    Me intriga mucho tu caso ! Seguire buscando infromacion, vere si consigo una computadora con labview 2013 y tratare de reproducir el error. Cualquier resultado, solucion o informacion que encuentres, publicala ! Quiero seguir al tanto de lo que sucedio !
    Saludos !

  • How can read and process data uploded from a datalogger on a network with labview

    hello evryone.
    i have a agilent datalogger 34972a data acquire temperature reading and makes them availlable on a network. i would like to acess this data on a pc running labview, analyse and prsent them. my problem is that i am not quite sure how to tell labview acquire this specific data.
    any help would really help me getting started.
    thanks already.
    Yann

    Are you
    Running the Agilent stand alone (or using Benchlink) and writing data to a file on the network ?
    Do you want to use LabView to control the networked data logger and aquire data? 
    If you are doing #1 then you can not use LabView because the Agilent (and Benchlink) strores data in a proparitary format.
    You have to use Benchlink to export the data to a CSV file before any other program besides Benchlink can read it.
    If you want to do #2 then you simply access the Agilent through VISA just like if it were connected using USB, Serial, or GPIB. 

  • How to parse 10 byte encoded data from Omegatte HH306 Thermometer/Datalogger?

    I am trying to write a simple code for an OMEGAETTE HH306 Thermometer/Datalogger from omega.com.
    Here is the problem. I communicate with the device via RS-232, using Labview 8.5.1 and windows xp. I query it for "all encoded data", which is basically the only option. It returns 10 bytes of encoded data, the manual describes the meaning of each byte, and I understand all of it. The problem is that I cannot seem to parse the information for use within labview, for example: I want to extract the temperature and simply display it.
    upon query, I get: 10bytes (read as a string from the serial port read buffer):     HEX display: 02 00 A8 B6 48 FF EF B6 49 03      This is perfect, and what I expect.     Codes Display: \02\00\A8\B6H\FF\EF\B6I\03               The Normal Display is a series of special characters, which I don't understand, especially since I don't think they represent the ascii characters that should correspond to the hex numbers returned!   For the life of me, I cannot figure out how to extract the information (which is the 6 48 in the hex display) from what is returned. All the string manipulation functions seem to only work on what is given in the Normal Display. (The 4th and 5th byte of the data are the BCD codes for the temperature: for example the temperature was 64.8 degrees farenheight when I took this reading).
    Can anyone help me to parse the data returned by this device?
    Solved!
    Go to Solution.

    Ok... I think I figured it out. I found this: http://digital.ni.com/public.nsf/websearch/77C8F61D36F5A23086256634005ACB38?OpenDocument.
    I guess the garbled normal display is the ascii characters corresponding to each hex number. I am just not used to seeing ascii characters beyond the decimal number 127, or hex 7F.
    So basically, to parse the 10 bytes of data:
    1) break up the string read from the serial port into the 10 individual ascii characters (using  String subset vi)
    2) wire each output string into the left input of 10 distinct Type Cast vi's.
    3) wire a U8 constant into each "type" terminal of the Type Cast vi's.
    4) wire the string output of each Type Cast vi into the input of a  number to hexadecimal string vi.
    5) concatenate or use as you would like the hex numbers (now in string format) that result.
    Cheers.

  • Data in report to word doc

    Hi all,
    I get only one field data(ie frm MANDT) from report to Word doc.
    How can i get the record of a table.
    REPORT  ZMGC_INT.
    INCLUDE OLE2INCL.
    DATA P_FWOR LIKE RLGRAP-FILENAME.
    DATA I_BUFFER TYPE .
    PERFORM LANZA_WORD.
    FORM LANZA_WORD.
    DATA: WORDAPP TYPE OLE2_OBJECT,
    DOCUMENT TYPE OLE2_OBJECT,
    SELECTION TYPE OLE2_OBJECT.
    Copia el contenido del buffer en el portapeles
                   CALL FUNCTION 'ZCLPB_EXPORT'
                     TABLES
                       DATA_TAB         = I_BUFFER
                     EXCEPTIONS
                       CLPB_ERROR       = 1
                       OTHERS           = 2.
                   IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
                   ENDIF.
    Abre Word
    CREATE OBJECT WORDAPP 'word.application'.
    IF SY-SUBRC NE 0.
    MESSAGE E398(00) WITH 'No se ha podido abrir el Word'.
    ENDIF.
    Lo pone en visible
    SET PROPERTY OF WORDAPP 'Visible' = 1.
    Cogemes el objeto documento
    CALL METHOD OF WORDAPP 'Documents' = DOCUMENT.
    Abrimos el fichero plantilla
    IF P_FWOR IS INITIAL.
    CALL METHOD OF DOCUMENT 'Add'.
    ELSE.
    CALL METHOD OF DOCUMENT 'Open' EXPORTING #1 = P_FWOR.
    IF SY-SUBRC NE 0.
    MESSAGE E398(00) WITH 'Error al leer el fichero plantilla'.
    ENDIF.
    ENDIF.
    Coge el objeto selección
    CALL METHOD OF WORDAPP 'Selection' = SELECTION.
    Pega el contenido del portapapeles
    CALL METHOD OF SELECTION 'Paste'.
    IF SY-SUBRC NE 0.
    WRITE 'PASTE'.
    ENDIF.
    Graba el fichero
    CALL METHOD OF WORDAPP 'ActiveDocument' = DOCUMENT.
    *CALL METHOD OF DOCUMENT 'SaveAs' EXPORTING #1 = P_FWOR.
    *IF SY-SUBRC NE 0.
    *MESSAGE E398(00) WITH 'Error al grabar el nuevo documento'.
    *ENDIF.
    Cierra Word
    CALL METHOD OF WORDAPP 'Quit'.
    IF SY-SUBRC NE 0.
    MESSAGE E398(00) WITH 'Error al cerrar Word'.
    ENDIF.
    ENDFORM. " LANZA_WORD

    Ranjith,
      Go to tcode SE83 -
    >CONTROLS---->BASICS----->Desktop Office Integration.
    Right side  examples .You will find the required code.
    Pls. Mark if useful

  • Read and display data from PC COM1 & COM2

    Hello, I am looking for help in order to use LabView to do the following:
    I want to read from RS232 dataloguer output information and write
    this in a text file format and then another LabView rutine should read
    de information from the file and present the data in a graph. This
    basically what my Meteorology interface is doing at the moment but I
    want to use LabView for this purpose.
    I've been doing some tests but unfortunatelly I haven't gone very far.
    Many thanks, regards. Jose Carlos
    Hola, buzco ayuda para hacer una peque~na aplicaci'on con LabView:
    Necesito leer la salida del puerto RS232 de un dataloguer usando el
    puerto de comunicaci'on del ordenador COM1 y escribir estos datos en
    un fichero de texto. A continuaci'on otra peque~na rutina en LabView
    deberia leer la informaci'on desde el citado fichero de texto y luego
    presentar estos datos en una grafica.
    He estado trabajando en este tema desde hace tiempo pero sin mucho
    exito; espero me puedan ayudar con alguna sugerencia.
    Muchas Gracias. Jose Carlos

    Hi,
    I send two links where you can see how to communicate with your instrument using RS-232 port and other example where the data are saved into a file after being acquired.
    http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=C3279BDB00F42BEBE034080020E74861&p_node=DZ52363&p_source=External
    http://venus.ni.com/stage/we/niepd_web_display.DISPLAY_EPD4?p_answer=&p_guid=B45EACE3E8BB56A4E034080020E74861&p_node=DZ52058&p_rank=&p_source=Internal&p_submitted=N
    In order to read the data of the file you can see the example on the Labview´s help on Fundamentals>>File Input and Output
    I hope this helps you
    Regards
    Diego M.

  • Download data entered via web to a text file.

    Hello,
    I'm developing a very simple BSP aplication in which the user enters via web some data in some fields. This data is store in an internal table. This table is an attribute in the application class. In this class there is a method to save the data to a file in presentation server. I've tried using WS_DOWNLOAD and GUI_DOWNLOAD but these function modules don't work. I would like to know if there some function modules or methods to download data to a file and that can be used in a BSP aplication.
    Thank you very much,
    Carlos
    Details:
    1-Layout
    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    Carga ficheros
      generar_fichero
          exporting nombre_fichero = fichero.
    3- Method generar_fichero
    method GENERAR_FICHERO .
    ***Opción 1: emplear una instancia de una clase y llamar a su método
    data: file type ref to CL_GUI_FRONTEND_SERVICES.
    create object file.
    data l_filelength type i.
    call method file->gui_download
       exporting  filename = nombre_fichero
       importing filelength = l_filelength
       changing   data_tab = m_tabladatos
       exceptions
          FILE_WRITE_ERROR                = 1
          NO_BATCH                        = 2
          GUI_REFUSE_FILETRANSFER         = 3
          INVALID_TYPE                    = 4
          NO_AUTHORITY                    = 5
          UNKNOWN_ERROR                   = 6
          HEADER_NOT_ALLOWED              = 7
          SEPARATOR_NOT_ALLOWED           = 8
          FILESIZE_NOT_ALLOWED            = 9
          HEADER_TOO_LONG                 = 10
          DP_ERROR_CREATE                 = 11
          DP_ERROR_SEND                   = 12
          DP_ERROR_WRITE                  = 13
          UNKNOWN_DP_ERROR                = 14
          ACCESS_DENIED                   = 15
          DP_OUT_OF_MEMORY                = 16
          DISK_FULL                       = 17
          DP_TIMEOUT                      = 18
          FILE_NOT_FOUND                  = 19
          DATAPROVIDER_EXCEPTION          = 20
          CONTROL_FLUSH_ERROR             = 21
          OTHERS                          = 22
    *if sy-subrc ne 0.
    raise error_fichero.
    *else.
    **borrar cookie
    *endif.
    ***Opción 2: llamada directa a la función ws_download_wan "FALLA:
    ***********************************************"no deja rastro del fallo
    data l_filename(128).
    write nombre_fichero to l_filename.
    *CALL FUNCTION 'WS_DOWNLOAD_WAN'
    EXPORTING
      BIN_FILESIZE              = ' '
      CODEPAGE                  = ' '
      FILENAME                  = l_filename
      FILETYPE                  = 'ASC'
      MODE                      = 'A'
      WK1_N_FORMAT              = ' '
      WK1_N_SIZE                = ' '
      WK1_T_FORMAT              = ' '
      WK1_T_SIZE                = ' '
    IMPORTING
      FILELENGTH                =
    TABLES
       DATA_TAB                  = m_tabladatos
    EXCEPTIONS
      FILE_OPEN_ERROR           = 1
      FILE_WRITE_ERROR          = 2
      INVALID_FILESIZE          = 3
      INVALID_TABLE_WIDTH       = 4
      INVALID_TYPE              = 5
      NO_BATCH                  = 6
      UNKNOWN_ERROR             = 7
      OTHERS                    = 8
    *IF SY-SUBRC <> 0.
    raise error_fichero.
    *else.

    Hallo Carlos,
    Welcome to the forum. As with all things new in life, one does not know where to start immediately. I would like to recommend the <a href="/people/brian.mckellar/blog/2004/06/11/bsp-trouble-shooting-getting-help">Getting Help</a> guide as first interesting article to read.
    Specifically you are interested in the section for searching this forum. Use keywords such as download or GUI_DOWNLOAD. Also consider to look at keyword Excel. Although not exactly on topic, the Excel discussions does address this partly. All of this has been discussed many time before.
    Finally, consider to read <a href="/people/mark.finnern/blog/2003/09/23/bsp-programming-handling-of-non-html-documents">BSP Programming: Handling Of Non-HTML Documents</a>. This will really show you some different techniques to download files onto the computer.
    brian

  • Can multiple transducer be handled by single datalogger

    I have 3 presure guages generating 0-20mA analog signal and one differential pressure transducer also generating 0-20 mA signal. I need to maintain a log of all pressure readings. In this regard I need to have a datalogger which can translate my analog signal into digital format so that Labview will display and maintain record.
    In this regard I would like to ask that do I need to buy only 1 datalogger or 4 dataloggers for all the pressure devices.
    Sorry if I ask very basic question but I am far away from the field of electronics/instrumentaion.

    Most NI data acquisition devices are multichannel and you would only need to buy 1. The least expensive is the 6008. With 4 differential inputs, it just meet that need.

  • Time and date reseting - Faulty charger? Please help!

    Hi,
    I have a macbook pro (summer 2011 model). My charger broke so I bought a cheaper, non branded replacement online as my husband has a macbook and has the same replacement charger for around one year and never had any problems. While waiting for my replacement to arrive, when charging my macbook with my husbands charger, it completely cut out, totally dead! When I turned it back on the date had reset to 2000 and I got an error message that reads something like, "The date and time have been resest to a date before 2001. Some applications may not perform correctly....." - something along those lines!
    Today my new, non-branded charger arrived and the same thing has happened 4 times. If it wasn't for the fact that this has only ever happened when being charged with one of these AND 4 times today with the new one, I would have thought the two not connected. But now I am convinced.
    I must add that for a period of a week befor my charger arrived I borrowed a friends Apple charger as my husband needed to take his to work.
    So my macbook never had this problem before, then it occured when using my husbands charger, then was fine for a week with an apple charger and has now happened again with the new one!
    Has anyone else had this problem? Is it the charger that is the problem or something in my macbook that is somehow being triggered by the charger?? Any info would be greatly appreciated!
    I know that I should have just bought a proper Apple charger to start with but c'est la vie!
    Thanks,
    Kirby

    With my friends apple charger eveything was totally normal. Her family all have macs from different years so i'm not sure which charger she will have leant me (i'm guessing it would probably be quite a modern one though as they always have up-to-date kit!).
    My husband has an old macbook, from roughly 2006/2007, the charger he is using now I bought from amazon quite a while ago. As I mentioned, he has had no problems with it but I did. Before I had these problems I re-ordered the same charger for me as it had been pretty good.
    So my macbook pro was fine with a proper apple charger, then it broke and i ordered a new non-apple charger, in the meantime borrowed my husbands non-apple charger a couple of times and my computer kept cutting out. Then borrowed a friends proper apple charge and had no problems at all for a whole week. Then today my new non-apple charger shows up and so far my macbook pro has cut out 3/4 times when plugged in. Totally fine when unplugged.
    Thanks for your response, I hope this is clear!
    Kirby

  • How can i log two (almost equal) data streams into one spreadsheet file?

    Hello,
    My problem is (as stated above) that i would like to log data obtained from 15 current-sensors and data obtained from 15 pressure sensors into one spreadsheet file. The idea is to put them next to eachother (preferabley pressure current sensors 1, pressure current sensors 2, pressure current sensors 3 etc.).
    Next to that I'm having difficulty logging certain constraints into a separate spreadsheet file. I.e. I've placed a maximum value constraint on my datalogger and I wish to log the data that has surpassed the max. constraint seperatly from the main logging file (see above) and (of course) preferably with the associated sensors. I would be extremly grateful if someone
    out there could help me with this problem becouse when I've fixed these problems my internship will finally have come to an end (and i NEED a vacation). Thanks in advace;
    Gideon Haan
    Nefit Buderus bv Deventer (Netherlands)
    [email protected]

    Shouldn't be too difficult. You would obviously have to have some form of test to see when your data has gone out of the specified range. You could then have this secondary logging process inside a case structure. You could innitialize this second file with the same header info. This is easiest if you go ahead and log all the sensor values into this new "surpassed" file if any of them are over. Otherwise, you will have to enter space characters ahead of the sensor values to ensure that the columns line up. You can create a string constant with a bunch of space characters and just use it over and over as necessary.

  • Need HELP (Project Issue) : Having 3 individual VIs, datalogger.vi, start vi, amksms.vi done. (How to run the VIs in sequence order - datalogger start amksms combine into 1 VIs? )

    Need HELP (Project Issue) : Having 3 individual VIs, datalogger.vi, start vi, amksms.vi done.
    (How to run the VIs in sequence order - datalogger > start > amksms combine into 1 VIs? )

    VIs in icon.
    how would it able to run in the sequence order:
    data first, follow by start and lastly amk sms.
    Attachments:
    dsa.jpg ‏10 KB

  • Config data refnums invalidate​d by for loop

    I have found the following problem with LabVIEW 7.0. This only occurs when running the application as built with the application builder and does not appear to be a problem in the development environment.
    Given an open refnum for a config file one can loop through several read key operations while passing the data and the refnum to outputs on the for loop. If you disable indexing on the refnum output of the for loop you should get a usable refnum out. What happens instead when you try to close the refnum is an error indicating that the refnum is invalid. If you simply route the refnum around the loop avoiding the for loop output altogether this doesn't happen. It appears that somehow, going through the indexing output of the f
    or loop invalidates or changes the refnum when in a built application using the runtime.
    If anyone can reproduce this or prove me wrong it would be helpful. This bug cost me days of chasing down why my "major app" would only work when in development but fail when built. The lack of debug capability in a built app of course leant to the effort that it took to track this down.
    Thanks,

    Hello, i'm french so scuse for my writting...
    I don't find where put this question so i writte here.
    I want to do a soft who's objective is to writte config data (open config data + write key + close..).
    you can find it in the join piece.
    this soft run correctly but when i do an exe with the application builder, when i try to run the exe, that saying me error 7 about the Nex file in Open config data...
    How can i solve this problem???
    Tanks for all....
    Attachments:
    chconfexe.vi ‏32 KB

  • How do I add Channel names to my raw data using a plugin?

    I have a Campbell Scientific datalogger which outputs raw data (no headers, etc.)  I need to add channel names and units to this data for display in DIAQdem.  I know there's a way to do it, but I haven't had the class yet (coming to the base soon) and don't have a lot of time to try and figure it out for myself.  I'd appreciate any help that I can get.
    I've generated a script using the Data Plugin Wizard, but as expected, it's very long and verbose... most likely has WAY more information in it than I need.

    Hi NavyJack
    I answered a similar question a while back.  If you just want to add a list of static channel names, then try this approach with your existing DataPlugin that you got from the ASCII DataPlugin Wizard:
    http://forums.ni.com/ni/board/message?board.id=60&message.id=8232&query.id=66481#M8232
    You are of course absolutely correct that the boiler plate code you get from the ASCII DataPlugin Wizard is way more complicated than you need for your data file.  If you are able to send me a sample data file, I could probably send you back a very simple DataPlugin which would be much easier to tweak for channel names, channel units, etc.
    What DIAdem version are you using?
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

Maybe you are looking for

  • Installing window 7

    Apound bootup how do I open my cd rom to install bootable media

  • How to test Struts application

    hai I have created my application in Struts at the same time I have to do testing also, I am new to Testing. Can ayone help me how to do testing for struts application, please........... Thanks in advance..........

  • How does my provider route to me

    Hi all my service provider has a router and pix on my site, the router connects to the internet via a serial, the pix and router are on the same network, would the router be using ip unnumbered on the serial interface ? and also we have been assigned

  • How to insert an image into text area?

    Hi everybody, I have a proplem : insert an image into text area ( likely Yahoo Chat) eg : Hello,World :D =)) :x I can't do it. Can you help me? Thank you! Edited by: Chelsea_Drogba7589 on May 28, 2010 9:28 PM

  • KB Effect dropping frames

    The KB effect is consistently dropping frames on the render, with a black frame or a bunch of black frames appearing in the final rendered clip. Is anyone else experienceing this? When I first started used '06, it happened about every other time I di