LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to read pulse from digital square wave

Solved!
Go to solution

hi,

 

i have find some examples on how to measure frequency and pulse. I have difficulties in changing the ctr to port/line (I/O). Can teach me how can i modify to fit my application?

 

 

 

 

frequency.jpgpulse.jpg

 

 

 

 

 flow meterb.jpg

 

 

0 Kudos
Message 11 of 23
(2,549 Views)
Solution
Accepted by topic author lim25

Using counter Only You Can Able To Measure The Frequency And Digital Events directly. So Select The Counter 1 and connect the signal to the appropriate terminal.

 

 Device pin outs.JPG

Balaji PK (CLA)
Ever tried. Ever failed. No matter. Try again. Fail again. Fail better

Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
Message 12 of 23
(2,545 Views)

hi, i have manage to get the flow rate and total volume individually. However, error occurs when i try to run both programme together. eror.jpg

 

To ask question.jpg

 

 

May i know how can i solve it ? For the above vi, i connected the output wire to pin 16 and 14.

 

 

 

0 Kudos
Message 13 of 23
(2,520 Views)

hiii

 

      i think you must use DAQmx clear v.......which can be find by ...MeasurementI/O>>DAQmx Assistant>>DAQmx clear..

 

hope this helps...

thanks

do not hesitate to give kudosSmiley Happy
0 Kudos
Message 14 of 23
(2,516 Views)

hi,sahil

 

I have use the Daqmx clear. same error happen.

 

thanks

0 Kudos
Message 15 of 23
(2,493 Views)

hii lim ,

can you please attach the vi...

 

does the two loop run fine when placed different from each other..that is in different vi.?

thanks

do not hesitate to give kudosSmiley Happy
0 Kudos
Message 16 of 23
(2,490 Views)

Hi Lim,

 

    I think you are calling the same DAQmx task in the both the loops. block one while loop and execute the single while loop and check you getting the same error and do vice versa.

Balaji PK (CLA)
Ever tried. Ever failed. No matter. Try again. Fail again. Fail better

Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
0 Kudos
Message 17 of 23
(2,483 Views)

Hi sahil,

 

the loop run fine if place in different  vi.

 

Hi Baji,

 

I dont know how to block the loop.

 

 

 

0 Kudos
Message 18 of 23
(2,475 Views)

Check this link

 

http://zone.ni.com/devzone/cda/tut/p/id/3684

Balaji PK (CLA)
Ever tried. Ever failed. No matter. Try again. Fail again. Fail better

Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
0 Kudos
Message 19 of 23
(2,461 Views)

Hi Baji

The loop run well if i diable one of the loops. may i know what is the second step i need to do?

 

 

 

0 Kudos
Message 20 of 23
(2,455 Views)