LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Aquire two analog inputs & How to put in array

Hi ,

I am a new to labview ,please help me out in following Querry .

I am having DAQ card  6341 , I want to capture two signals as showed in image of analog type . whenevr the first signal is changing trasition from 0 v to 5v  i have to start capture the rising edges of secong signal & when first signal transit from 5v to 0v , I have to stop counting the edge of secong signal & store the counted value in array .

 

Please help me . I am scrating my head from long time in this .

 

Thanks & regards

Nitin

0 Kudos
Message 1 of 41
(3,638 Views)

Hi Nitin,

 

sounds like a rather easy data analysis problem: Use one signal to gate another one and then count pulses for each gate opening…

 

What have you tried so far, where do you fail?

 

Please attach your VI to have it commented by us!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 41
(3,627 Views)

Hi Gerd ,

 

Thanks for Reply .

 

Vi snapshot is Attached , Please have a look .

 

 

Can  you please guide me how to create this VI , step by step .

 

0 Kudos
Message 3 of 41
(3,613 Views)

Hi Nitin,

 

in contrast to your first picture you now only read one analog input. Where's the second one?

 

- Why do you invert the analog input signal? What's the reason to invert a voltage? What is the expected reult of that operation when your voltage switches between zero and 5 (ideally)?

 

- In the Pt-By-Pt functions palette you will find a function to detect edges of boolean signals. Use it to detect your pulses.

- Count the pulses, when your first analog input gives a HIGH level. There's also a function in the Pt-by-Pt-palette to help you with this…

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 41
(3,608 Views)

Hi Gerd

 

It was a trial , I was doing don't go with the VI , I know it is totally wrong .

 

Can you please show me the symbol for detect edges for boolean signals ?

 

How to aquired both signals in daq card. whether i have to connect to analog inputs/ counter input ? please tell .

 

Thanks

 

Nitin  

0 Kudos
Message 5 of 41
(3,599 Views)

Here they are:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 41
(3,591 Views)

Hi Gerd

 

Will this work if i Use virtual terminal for two analog input ? 

 

Or the Block diagram You are showing just to get an idea about  Edge detector you was referring .

0 Kudos
Message 7 of 41
(3,570 Views)

Hi Nitin,

 

what is a "virtual terminal" to you?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 41
(3,568 Views)

Hi gerd

 

Sorry to disturb you again and again

 

You seems to be a good person .

 

I Hightlighted  red in check .png  , which i am not able to find in my fuction pallete.

 

 

 

Thanks

Nitin

 

 

 

 

 

 

 

Download All
0 Kudos
Message 9 of 41
(3,557 Views)

Hi Nitin,

 

see the point-by-point-functions BooleanCrossing and Increment

 

Your "virtual channel" infact is a real channel of your DAQ hardware!

Why do you create a frequency measurement channel when you want to count pulses gated by a second channel?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 41
(3,548 Views)