From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Still having Logic problems with my building block

As a follow up to this topic Link , I have added the elapsed time VI but I cannot get the logic to work.

 

If the counter (initialised to 0) is zero then the header info should be written to a new file. Afterwards the counter is incremented. When the counter is greater than 0 AND the "Time Has Elapsed" is true, then write data, otherwise do nothing.

 

At present I can get either a new file every 500ms without data (just headers) or a complete file with data but every 500ms.

 

As pseudo code:

 

If counter=0 then

write header

else

if reset=true then write data

end if

 

I hope this is clear.

 

Regards

Mark

 

0 Kudos
Message 1 of 2
(754 Views)

I managed to solve it myself. I was always looking at the logic to find a solution. Instead I should have been looking at nesting the case structures. Hours wasted looking for wrong solution.

 

Attatched is my solution.

 

Regards

Mark.

0 Kudos
Message 2 of 2
(741 Views)