LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to use acs712 ac current sensor with lifa?

Hi,

I am using labview interface for arduino and I have tried to programm asc712 sensor but i couldn't. here is the link of the sensor code: circuits4you.com/2016/05/13/ac-current-measurement-acs712/  .

i researched a lot and i found that i can modify lifa function ,but i don't know how to do so.  if i modify function,is it necessary to  make the same code in labview? .

can any one guide me or making labview code for this sensor.

thanks.

0 Kudos
Message 1 of 6
(3,658 Views)

Well to begin with LIFA has long since been deprecated and replaced with LINX

 

But to your basic problem, the ACS712 converts current to a scaled voltage and you are simply reading that voltage on the analog in pin of the Arduino.

 

So no special libraries or functions beyond "Analog Read" are needed.

 

You read the voltage on the proper analog pin and then do the necessary math to convert that to the current value you are measuring. 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 2 of 6
(3,638 Views)

thanks for this quick response .

actually, i am not professional  in labview and i i couldn't know how to make the programm in especially this line:

uint32_t start_time = millis();
   while((millis()-start_time) < 1000) //sample for 1 Sec .
   so if you can do it for me, i wiil be appreciated
0 Kudos
Message 3 of 6
(3,604 Views)

It would look like this.

 

Example_VI

0 Kudos
Message 4 of 6
(3,601 Views)

please, can you complete doing all the cod in labview ...

thank you so much.

Message 5 of 6
(3,595 Views)

No.  I'm not getting paid to do other people's work.

0 Kudos
Message 6 of 6
(3,583 Views)