LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

acquiring data only once while generating other data continously

Solved!
Go to solution

Hello,

I am using Labview 2009 on windows 7 PC and I am using NI USB6009 for my application.

In my vi I want to generate ramp voltage continously which I can in my current vi. But while doing this I will be connecting relay contact to other digital input. I want to store the generated ramp voltage at the instance when the relay closes its contact which I will know as it is connected to the digital input. The contact is going to remain closed for a while but the instance at which is closes is of value to me. I tried various things using case structures or even parallel while loops. but unfortunately I am not so much acquainted with event structures so I couldn't achieve what I wanted. Please help me out.

 

Thanks

Rohan

0 Kudos
Message 1 of 5
(2,372 Views)
Solution
Accepted by topic author r_te

Hi Rohan,

 

pseudo-code:

IF RisingEdge(digital input) THEN
  store current AO value in shift register
ENDIF

 You need the PtByPt_BooleanCrossing function, a shift register and a select node…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 5
(2,368 Views)

how do I get the rising edge is what I don't know

0 Kudos
Message 3 of 5
(2,356 Views)

Hi Rohan,

 

as I said before: you need to use PtByPt_BooleanCrossing

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(2,352 Views)

thanks a lot 

0 Kudos
Message 5 of 5
(2,345 Views)