Example Code

How to read header information from a Flir Public File (*.FPF) using LabVIEW and binary read

Code and Documents

Attachment

VI Information

Flir Public Files are a format used by Flir Systems. We can use LabVIEW to extract header information regarding the image file aswell as the pixel data.

The header file is a 892 byte data structure. This contains data from image data,  camera data, object parameters, date and time, and scaling data.

Such information includes

  • date and time information of the file,
  • camera name
  • object distance
  • x and y size of the image
  • More functions in the vi!

The following vi uses a functional subvi, with an enum selector to read this data back from the header information. The U32 enum is made up from the header offset, the length of information to read, and data type. The output is always converted to string.

Main VI

Untitled.jpg

FPF header & pixel info.png

SubVI

header function selector.png

Steps to Run

  • Have a .fpf file to hand
  • Open and run "Read fpf file header info and pixel data.vi"
  • Using the Header Function control, select which information you would like to read
  • Run the vi!

Points to note about the vi

  • If you do not have the Vision Development Module, remove the broken VI's.
  • If you do have the Vision Development Module, we also pass the pixel data into an IMAQ file

Required software

  • LabVIEW 8.6

Related example code

How to read fpf (Flir Public Files) using LabVIEW Vision Development Module :  http://decibel.ni.com/content/docs/DOC-13572

Ashish Naik
Automotive Business Development Manager
National Instruments UK

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors