09-18-2014 01:28 AM
@cantata2014 wrote:
I just want to close the VISA session. and in the for loop there is a channel sweep
Disable indexing at the output tunnels or use shift registers. If this is not clear to you, start with some basic LabVIEW tutorials.
You are also looping 200 times with a wait of 5000 seconds between iteration. Your loop will take over 11 days to complete. There has to be a better way!
09-18-2014 06:47 AM
@cantata2014 wrote:
I just want to close the VISA session. and in the for loop there is a channel sweep
If using a FOR loop, use shift registers.
I would change your code to use a state machine instead of the FOR loop. As Altenbach said, it will take a VERY long time to run that FOR loop. I'm sure you would like to be able to abort in the middle if something doesn't look right. So use a state machine where you have a wait case that uses an Event Structure to look for either a timeout (the rate you want to sweep at) or a cancel button's value change.
09-22-2014 11:36 PM
Hello,
I tried to use the data flow, but it still doesn't work... the problem is I don't know where is the problem
CH. PWR. GRID: (registers are different)
09-23-2014 12:35 AM