I tried two while loops and a local variable, but ended up with the same problem. The picture box needs to switch between the grey levels while the DAQ is taking measurements because a photometer is continuously taking measurements of the picture while it is switching, and it is the photometer that gives off a signal while it is measuring. So if there is no grey level switching in the picturebox, then there is no signal output from the photometer, and the DAQ just reads a flat line. In all of this the photometer is not part of the program, with the exception of the sinal it sends to the DAQ. I attached the altered vi, so you could look at it, if you have any suggestions let me know. Please, if you have any suggestions, can you put them in a
more remedial form (step by step), as I am new to labview.