Reading fits files in labview 64 bit

I need to read fits data files in labview on a 64 bit machine. I developed an application in labview 2012 (32 bit version on a win 7 x32 machine). This vi will not run on a win7 x64 machine. The problem is with the gfitsio library I used to read the files (downloaded from http://heasarc.gsfc.nasa.gov/docs/software/fitsio/​fitsio.html). It seems they will not work with labview x64. I installed labview 32 bit on the same machine & tried to run the vi with that, but no luck.
Any ideas would be appreciated,
Thanks,
Joe 

It appears the FITS libraries are 32-bit, so they cannot be called from 64-bit LabVIEW.  You should be able to call them from 32-bit LabVIEW on a 64-bit machine.  The only difficulty you may run into is locating the DLL.  64-bit versions of Windows put DLLs in different places than 32-bit. Check you system path and make sure your DLL resides in the search path.  You can also load the DLL explicitly using Windows Kernel32.dll calls before loading code which calls it.  This is awkward, but works in some cases.
Since the source code is available, you may be able to create a 64-bit DLL that 64-bit LabVIEW could use.  I am the wrong person to cousel you on how to do this, but it should be possible.
If you need more info, please ask.
This account is no longer active. Contact ShadesOfGray for current posts and information.

Similar Messages

  • How can I read pdf files from LabVIEW with different versions of Acrobat reader?

    How can I read pdf files from LabVIEW with different versions of Acrobat reader?
    I have made a LabVIEW program where I have possibility to read a PDF document.  When I made this LabVIEW program it was Acrobat Reader 5.0.5 that was installed on the PC. Lather when the Acrobat Reader was upgraded to version 6.0, there was an error when VI tries to launch the LabVIEW program. And Later again when we upgraded to Acrobat Reader 7.0.5 I must again do some changes and rebuild the EXE files again
    It isn't so very big job to do the changes in one single LabVIEW program, but we have built a lot of LabVIEW programs so this take time to due changes every time vi update Acrobat Reader. (We have build EXE files.)
    The job is to right click the ActiveX container and Click "Insert ActiveX Object", then I can brows the computer for the new version of acrobat Reader. After this I must rebuild all the "methods" in the Activex call to make the VI executable again.
    Is there a way to build LabVIEW program so I don't have to do this job every time we update Acrobat Reader?
    This LabVIEW program is written in LabVIEW 6.1, but I se the problem is the same in LabVIEW 8.2.
    Jan Inge Gustavsen
    Attachments:
    Show PDF-file - Adobe Reader 7-0-5 - LV61.vi ‏43 KB
    Read PDF file.jpg ‏201 KB
    Show PDF-file - Adobe Reader 5-0-5 - LV61.vi ‏42 KB

    hi there
    try the vi
    ..vi.lib\platform\browser.llb\Open Acrobat Document.vi
    it uses DDE or the command line to run an external application (e.g. Adobe Acrobat)
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

  • How to create and read text file using LabVIEW 7.1 PDA module?

    How to create and read text file using LabVIEW 7.1 PDA module? I can not create a text file and read it.
    I attach my code here.
    Attachments:
    File_IO.vi ‏82 KB

    Well my acquisition code runs perfect. The problem is reading it. I can't seem to read my data no matter what I do. My data gets saved as a string using the array to string vi but I've read that the string to array vi (which I need to convert back to array to read my data) does not work on the pda. I'm using version 8.0. So I was trying to modify the program posted in this discussion so that it would save data from my DAQ. I did that but I still can't read the data after its saved. I really don't know what else to do. All I need to do is read the data on the pda itself. I can't understand why I'm having such a hard time doing that. I found a possible solution on another discussion that talks about parsing the strings because of the bug in the "string to array" vi. However, that lead me to another problem because for some reason, the array indicators or graphs don't function on the pda. When i build the program to the pda or emulator, the array indicators are faded out on the front panel as if the function is not valid. Does this kind of help give a better picture of what I'm trying to do. Simply read data back. Thanks.

  • To read COMTRADE file in Labview there is an example provided. Can somebody provide the sample .cfg and .dat files required for its working?

    To read COMTRADE file in Labview there is an example provided. Can somebody provide the sample .cfg and .dat files required for its working?

    Thanks for the reply.
    But this library doesn't contain any sample .cfg and .dat files which can be read and understood. Can you please provide the same?

  • Read binary file in LabVIEW 2012

    Hi,
    Have anyoune experienced problems reading binary files in 2012 previously saved in 2010.
    As shown on attached image, the same VI is opened in 2010 and 2012 reading the same binary file containing the data structure "ProcessList IN".
    I suspect it has something to do with the variants ?
    The error message does help a lot (-;
    Any ideas ?
    Kind regards
    Kahr
    Regards Kahr
    Certified LabVIEW Architect
    CIM A/S
    Attachments:
    Read_Binary_File_Error_LV2012.png ‏426 KB

    Hi Kahr,
    "error 1" tells one of the input parameters is wrong: it's either the path or the cluster datatype! The error message only mentions a file path AS AN EXAMPLE!
    You're using BinaryRead similar to those old Datalog file functions to read a cluster of several data. It has been know that datalog files get tricky when one is using a different LabVIEW version to read them due to changes of internal data representation. Maybe that's the point that hits you now?
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How can you read datalog files in LabVIEW?

    I have a VI that records time and waveform data and writes them as a cluster to a datalog file. I have been unable to read these files in any way, however. I have been working with the datalog examples in LabVIEW, but I have not been able to figure out how to use the Read Datalog File example effectively. Does anyone have any suggestions on how I can either use this example to read waveforms, or how I can design a VI to read datalog files in another way? Thanks.

    Hi,
    when you read from a datalog file you have to wire to the datalog type input of the Open File function a cluster of the same type as the clusters when you created the file; each cluster is a record.
    In the example Write Datalog File Example.vi you see that each record consists of a cluster containing a string and 1D array of DBL; in the Read Datalog File Example.vi a cluster of exactly the same type is wired to the datalog type inputs.
    You can use this example to read your datalog files but you must wire to the datalog type input a cluster containing the time data and a waveform data; pratically you have to tell how the data are saved in your file.
    I hope I have been clear enough, eventually if you tell me how you save the time data (string, numeric) I
    can modify the example to read your datalog files.
    Good luck,
    Alberto

  • Read a file in labview already open in another program

    Hi,
    I am using labview to read a text file, also there is one more software(not lab view) is writing to the same file which I am using to read.My problem is that ,is it possible to read a file which is already openned by another software ?
    Thanks,
    Sachin Kudari

    Hi Sachin,
    that depends on that other software...
    - When writing to a file usually it is opened with exclusive access rights to the writing software. No other software can open the file simultanously.
    - The file may be opened with non-exclusive access by the writing software. Then LabVIEW may access the file too.
    - The file may be opened with exclusive access rights by the writing software for each write access and released when write access is finished. Then LabVIEW may open the file in parallel, but errors may occure for simultanous file access from both parties...
    It's never a good idea to share one resource (your file) for several requests (your different executables). It may work (with several conditions), but it doesn't need to.
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to read EDF files in LabVIEW?

    Hi all.
    I'm trying to read a EDF file (brain signals, EEG) into LabVIEW but I can't figure out how to do it. Would like to meet this challenge without converting the EDF file before processing. 
    Are there someone out there who can help me? I'm using LabVIEW 2010
    Kind regards
    Solved!
    Go to Solution.

    Hi Clausny,
    LabVIEW supports numerous data types through DataPlugins available here (login may be required), this includes the *.EDF (European Data Format).
    Supported Features:
    EDF (European Data Format) files. 
    EDF+ files.
    Large blocked data files.
    Writing of EDF files.
    All channels are saved into one channel group.
    Saving of all numeric and waveform channels.
    All channels must have the same channel length and the same "Waveform x-step width" property value.
    "Waveform x-name" and "Waveform x-unit" properties will be ignored when writing to EDF file.
    Non-Supported Features:
    Annotations. Those will be supported in a later version.
    The EDF DataPlugin also integrates into the NI Biomedical Startup Kit. The Biomedical Startup Kit uses the LabVIEW graphical development environment to analyze biomedical signals.
    Also the link here gives a brief introduction on how to use DataPlugins with your version of LabVIEW.
    Hope this helps with your application.
    Thanks
    Jamie
    Jamie S.
    Applications Engineer
    National Instruments

  • How can I read fast 50 MB Excel file in LabVIEW

    Hi,
    I have created a datalog file containing string i/p and having extension ".exl". File size is around 50 MB. When I read this file using LabVIEW, it takes 1/2 hour to display data in Array. How can I minimize this read time in LabVIEW. Or is there any options available to create large datalog files with string i/p and read it fast?
    Examples are well appriciated.
    Thanks.

    What kind of file is it? If you are writing datalog files, there is no reason for giving them excel (.xls) extensions. Excel cannot read datalog files. The other way around, native excel files cannot directly be read by Labview.
    In general terms this is what you may look into:
    -use a compact file format like (real)datalog, fully binary or at worst plain ascii text file.
    -you do not have to read the whole file into memory at once, depending on your application.
    -look at your (RAM) memory space: it sounds like you are running very low on memory and the OS needs to pagefile most of it. Try closing all unnecesary programs and/or buy more memory. Also look for memory hogging inside your code: releasing data that is no longer needed will free memory used by labview. "Uninitialized" arrays for example may seriously slow down a computer.
    my two cents,
    aartjan

  • Read/Write file in Unicode (UTF-16)

    Hi, I have some issue to write a file in Unicode (UTF-16)
    I have to read a file with LabView, change some parameters and write the new data into the same file. The file uses Unicode UTF-16.
    I downloaded some library here: https://decibel.ni.com/content/docs/DOC-10153
    I can read the file, convert the data to UNI/ASCII/UNI, and then write the file. But when I open the new file with an editor like Notepad++ there are some unexpected characters at the end of the line.
    Even reading the file and writing exactly the same data doesn'not work.
    I attached an example.
    Thanks for you kind support.
    Solved!
    Go to Solution.
    Attachments:
    TEST.zip ‏7 KB

    Right-click on your Read and Write Text File functions.  There is an option to "Convert End Of Line".  Turn that off on both functions.
    As a side not, you don't need the Close File functions.  The Read and Write Text File functions will close the file if the file reference output is not wired.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Examples to reading *.dbf files

    Is there any examples to read data from *.dbf files?
    Thanks alot!

    Hi,
    You can read .dbf files with LabVIEW DataBase Toolkit. If you already have this toolkit, look at the examples that get installed with the it. It uses activeX property and methods to connect and access data in a database.
    If you do a search on NI web site of postings related to database access, you'll find a lot of information
    LabVIEW Database Connectivity Toolset
    http://sine.ni.com/apps/we/nioc.vp?cid=6429〈=US
    Zvezdana S.
    National Instruments

  • Verilog files and LabVIEW

    How do I read verilog files into labview?  I have GUI that I created which will interface with I2C by using the evaluation board with USB controller and FPGA.  Our designer can provide the verilog code so that I can verify the GUI while boards are in the process of layout.
    Is there anyway I can read verilog into labview and what hardware I needed(FPGA module?)

    Hello ctailor,
    Please see this article about integrating Verilog with LabVIEW  also, this link will show you all the FPGA hardware of National Instruments.
    Carmen C.

  • Need to read data files originally created in LabVIEW in C++

    I have originally created binary files in LabVIEW. These files are made by flattening labview data to a string, then converting the string to a U8 byte array which is then saved to a binary data file. A separate file is used to keep track of the variables written to the data file. (FAT) a 2D-String array (first element = variable name, 2nd element = staring byte location in .dat file, 3rd element = byte length of variable) is flattened to U32 and then written to a binary file.
    Opening the files in LabVIEW follows the inverse proceedure. The FAT file is read as a U32 binary data, converted to a byte array, converted to a string, and then unflattened from the string into a LabVIEW 2D-string data type. From this the starting location and length of the variable is extracted. These are used to read the data file, in U8, which is then converted bu a string and then unflattened to LabVIEW data according to the LabVIEW data type.
    I now need to now open these files in a Linux environment using C++. I am at a loss at how to emulate all of this data-type conversion, flattening, and unflattening in C++. Does anyone have any ideas?

    Faraclas wrote:
    > Thanks rolfk, I will do the reading. But just to make sure you don't misunderstand
    > me, everything works beautifully in LabVIEW.
    I gathered that. But reading through the description gave me the
    impression that a few conversions/typecasts may actually be superfluous
    without any change to the actual data.
    > The problem I am having is trying to open up these files in C++. This system has
    > been around for a couple of years now, so I cannot change the data structure in
    > the LabVIEW programs (well I could but I don't want to because it is really a very
    > flexible system that works well).
    Well, it really isn't that difficult, it just won't be a one hour job
    for sure. A few guidelines:
    1) LabVIEW flattened data contains the actual data as is for all fixed
    size elements (scalars and clusters of scalars). Any variable sized data
    (strings, arrays) is prepended with an int32 for each dimension
    containing the number of elements for that dimension.
    2) LabVIEW flattened data is always in Big Endian (Most significant Byte
    first) format. This means for normal C(++) programs developed on an x86
    system you will have to byteswap every single 16 bit and 32 bit integer.
    3) LabVIEW Typecast really is similar to Flattened data but no
    prepending of the number of elements is done for variable sized data.
    And Typecast can't convert any type containing variable sized data, but
    any arbitrary complex datatype only containing fixed size data, or a
    simple array or string can be typecasted.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How to show 10-bit PNG(TIFF) file in Labview?

    I used NI-IMQA 1409 to grab a 10-bit picture. It only can be save as PNG file in MAX. but I found I could n't display that image file any more? Could any one tell me how I can display that PNG file. Thanks

    First, when you Grab or Snap an image in LabVIEW with the Vision utilities, you will have to use 16bit format. This is a big pain, and a serious waste of memory, but necessary. I strongly recommend that if you are doing any kind of image manipulation or processing, that you keep it 10bit.
    Okay, with that said. To display the image, you need to go to the Picture Tools palette, NOT the IMAQ palette. There you will find the tools to open and display the PNG image. However; you should be able to read the image with the "Read Image File" VI, though as I have never done it, I cannot be certain. Either way, the Picture tools will get you where you need to be.

  • Reading .FIT/.FITS files

    Hi.
    I have to read an image from a FIT file used in astronomy, I use GFITSIO library . and I can only get an image with 50 shades of blue...  ("kai.jpg"  in attachment) .
    Here is the part of my diagram which reads the FIT file.
    1) How can I get an image with RGB ? My aim is to get the image " H130000.png" in attachment .
    2) Do you have an idea about how to flip the image ( up/down )? certainly an operation on the data matrix but I don't succeed . This point is much less important.
    Thanks for your answers.
    Attachments:
    kai.jpg ‏59 KB
    probleme FITS.png ‏14 KB
    H130000.png ‏1253 KB

    bejard wrote:
    1) How can I get an image with RGB ? My aim is to get the image " H130000.png" in attachment .
    that image seems black&white. Can you explain what you mean by RGB here?
    bejard wrote:
    2) Do you have an idea about how to flip the image ( up/down )? certainly an operation on the data matrix but I don't succeed . This point is much less important.
    There are many ways to transform a 2D array. Long ago I wrote simple code for all possible transformations. .
    LabVIEW Champion . Do more with less code and in less time .

Maybe you are looking for