LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

MQ7 sensor towards NI 9219 cDAQ

Solved!
Go to solution

Hello to all,

 

I am having some difficulties in finding how to connect a MQ7 sensor to a NI 9219.

 

These sensors have a Vdc, GRD, Analog Out and Digital Out outputs.

 

When connecting to a Arduino this is pretty straightforward. The Vdc and GRD have their entry on the Arduino board for power and the Analog Out and Digital Out have the proper entry also. Now when in front of the NI 9219, 2 entries to be able to acquire the signals is required. This being with a Voltage or Digital input. To power up the sensor you connec the Vdc and GRD to a 5V power supply. 

 

My question is: How do we connect to the NI 9219 to acquire the signal in voltage (Analog) or in ppm (Digital)? Do you close the loop with the Analog Out to the positive entry of the NI channel (Hi) and you put the GRD at the negative entry of the channel (Lo). In this case the GRD will be used to close the loop for the power supply but also for the input into the NI cDAQ.

 

Does the NI 9219 card can take the signal from the MQ7 sensor or a card such us 'myDAQ Student Data Acquisition Device' which has for example one entry for A0 and D0 (simpler configuration) is required? Is it better to use VISA to connect the already made setup in Arduino towards NI9219 and LabVIEW?

 

Thank you for your time and consideration.

 

EDIT: Maybe the section this message was posted is not correct. Can't seem to find how to move it to a more appropriate section on the forum. Any migration to a proper section is welcome.

 

0 Kudos
Message 1 of 4
(209 Views)
Solution
Accepted by topic author Nikolian07

In short, if you would like to measure the analog Out of the MQ7 sensor using 9219, you need to follow the connection guide for voltage input.

 

https://www.ni.com/docs/en-US/bundle/ni-9219-getting-started/page/voltage-pinout.html

santo_13_1-1653761202185.pngsanto_13_0-1653761188612.png

Connect the signal to measure across HI and LO terminals, where HI terminal connects to the signal and LO terminal connects to GND of the signal source.

 

9219 does not expose a power supply to use for powering up MQ7, this means you need an external 5V supply.

 

Assuming this is what you've, please follow the below connections,

 

santo_13_3-1653761340658.png

 

VCC => 5V supply

GND => LO of 9219, GND of 5V supply

AOUT => HI of 9219

 

You need to use NI-DAQmx drivers and not VISA. This question is better suited under the DAQ board instead of LabVIEW.

 

-Santhosh
Semiconductor Validation & Production Test
Soliton Technologies
NI CLD, CTD
LabVIEW + TestStand + TestStand Semiconductor Module (2013 - 2020)
NI STS for Mixed signal and RF

New to the forum? Please read community guidelines and how to ask smart questions
Message 2 of 4
(164 Views)

Sir thank you very much for the info and clear indications. I was not sure if I could get the GRD to both connect on the power supply and the NI DAQ but this confirms it.

 

Indeed I am looking to get the voltage output of the sensor and then translate to ppm. 

 

Do you know how I can move this conversation to the DAQ board forum discussion? Is it something everybody can do or just  an admin can move the conversation?

 

Will be continuing posting here when I have tested the sensor unde the NI 9219 and provide my LabVIEW code also for anybody that would be interested.

0 Kudos
Message 3 of 4
(140 Views)

Please find my vi with the solution implemented. 

 

Thank you for the help and clear indications.

0 Kudos
Message 4 of 4
(45 Views)