11-15-2011 04:49 PM - edited 11-15-2011 04:52 PM
This will allow you to send different commands if you want to create a command sequence:
If all you want to do is send the same command a number of times, leave the command inside as you did before, and wire the number of iterations to the N terminal. The way you were using your while loop with a FALSE constant wired to the STOP control was not a good idea. Also notice I close the VISA session to reclaim the resources and added error handling. BTW, good job! Serial port communication is often a frustrating task.
11-17-2011 10:08 AM
This will work great!! All of the structures can get confusing... thanks for helping me with the format!!! Really appreciate everything!!