02-15-2010 04:46 PM
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 1 | Sw 2 | Sw 3 | Sw 4 | Sw 5 | |
t0 | Off | Off | On | On | Off |
t1 | Off | On | On | Off | Off |
t2 | On | On | Off | Off | On |
t3 | Off | Off | Off | Off | Off |
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?
02-15-2010 05:02 PM - edited 02-15-2010 05:03 PM
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.