Example Programs

Showing results for 
Search instead for 
Did you mean: 

LabVIEW Gaussmeter Magnetometer with Hall Effect Sensor

The example demonstrates how acquire data from magnetometer

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:

  1. Choose the physical channel, samples per cycle, minimum, maximum values, description and volts.  
  2. Start the program without any magnetic field influencing the sensor
  3. 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.
  4. Use the sensor datasheet to find V/G.
  5. In the setup, choose to save the results to a text file or not.
  6. Use the toggle to start and pause he program. 

To execute this example:

  1. Define the analog input channel parameter in setup tab.
  2. Configure the sensor setting.
  3. Set whether you want to record the data or not.
  4. Run the VI
  5. Open Help tab for more information

LabVIEW 2012 or compatible
NI-DAQmx 16.0 or compatible

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.**