LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to out data from one if-else (case) and in another if-else (case)

Hello friends

 

i am using one case if-else in my project and it run at some specific time,

now i want to take out is data and in it anothe case if-else and run at different time.

 

how can i do that

any help is appriciated

thanks

asif

0 Kudos
Message 1 of 6
(1,069 Views)

You will have to provide more details.

 

Right now all i can say is that to take values out of case structure, you just drag the wire to the edge of it and click on the edge. 

0 Kudos
Message 2 of 6
(1,043 Views)

please see attached file.

 

Thanks

 

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

Do you mean something like this? You can add a new case for a different time.

Note that you only have a 1 second window to catch these events. If the CPU is busy doing other things you might miss them.

 

case.png

0 Kudos
Message 4 of 6
(1,026 Views)

Do what RamonG suggested for the clock.

 

I don't know why you have 1s delay in the case and 100ms outside, but i suspect you don't need the in-loop delay.

 

If you want to keep the data from when your case is "true" then wire a feedback node and have "false" case just be a wire.

 

EDIT:

Also add a proper control to you loop exit and don't use the Abort button to stop your VI.

0 Kudos
Message 5 of 6
(1,016 Views)

hi

1s delay is for to write data only one time, if i dont put delay, several time data is written in file. 

 

Thanks

0 Kudos
Message 6 of 6
(969 Views)