Overview The example demonstrates how acquire data from magnetometer
Description: A Gaussmeter or Magnetometer is used to measure the presence and strength of a magnetic field. A hall effect sensor is commonly used. In this documentation, the Allegro 1302 is used although the 1301 is shown in the schematics. The author preferred the specifications of the 1302. Gaussmeters are effective for measuring the quality of ferrite magnetic cores, air coils, EMC. The hall effect sensor creates a voltage from the magnetic field. From this, we can calculate the magnetic field from the formula given in the specifications sheet provided by Allegro. Once this is achieved, a multitude of statistics can be performed on the information.
Steps to implement or execute code To implement this example:
Choose the physical channel, samples per cycle, minimum, maximum values, description and volts.
Start the program without any magnetic field influencing the sensor
Use the voltage reading to get the base voltage. The base voltage is the initial voltage or V0. Sometimes the base voltage is not the same as in the datasheet of the sensor.
Use the sensor datasheet to find V/G.
In the setup, choose to save the results to a text file or not.
Use the toggle to start and pause he program.
To execute this example:
Define the analog input channel parameter in setup tab.
Configure the sensor setting.
Set whether you want to record the data or not.
Run the VI
Open Help tab for more information
Requirements Software LabVIEW 2012 or compatible NI-DAQmx 16.0 or compatible
Hardware cDAQ with C series analog Input Module or compatible DAQ devices.
**This document has been updated to meet the current required format for the NI Code Exchange.**