08-02-2021 10:41 PM
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
08-03-2021 01:22 AM
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.
08-03-2021 02:48 AM
please see attached file.
Thanks
08-03-2021 03:51 AM
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.
08-03-2021 05:33 AM - edited 08-03-2021 05:50 AM
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.
08-04-2021 03:43 AM
hi
1s delay is for to write data only one time, if i dont put delay, several time data is written in file.
Thanks