LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you repeat a sequence of data until a stop button is pressed?

I'm trying to turn on the sequence of switches in the following table at a specified time (every 2 seconds for each time period) with Labview 8.5.1 for essentially an unlimited number of cycles (until a stop button is pressed) using a Windows machine. 

 

 Sw 1Sw 2Sw 3Sw 4Sw 5
t0OffOffOnOnOff
t1OffOnOnOffOff
t2OnOnOffOffOn
t3OffOffOffOffOff

 

Orignally I tried using a numeric control to select the # of cycles to run, then using a square wave generator to create an array of all the data points that the test would need (this took care of the 2 second time periods).  This worked until the number of cycles was set to 50,000 or more, when I received a "Memory is full" error.  I suspect this is the memory leak error, I've heard about.  Does anyone know how I could implement this?

 

0 Kudos
Message 1 of 2
(2,484 Views)

I don't understand the reasoning or the purpose of the square wave generator. To repeat the cycle, you just need something like the code below. You can run it forever and don't have to specify a count.

 

 

 

 

 

Message Edited by Dennis Knutson on 02-15-2010 04:03 PM
Message 2 of 2
(2,479 Views)