Static and dynamic characterization of fiber bragg gratings using a LabVIEW platform