03-08-2007 02:42 PM - edited 03-08-2007 02:42 PM
Message Edited by mnoone on 03-08-2007 02:49 PM
03-08-2007 02:57 PM
03-08-2007 03:18 PM - edited 03-08-2007 03:18 PM
Message Edited by mnoone on 03-08-2007 03:18 PM
03-08-2007 03:37 PM - edited 03-08-2007 03:37 PM
No, you would only have a single configure serial port just like you have now. You just wire the output of that to the separate while loops. You can pick which ever loop you want to have the VISA Close. Again, you only need one. Yes, you can stop both loops with a single button. There are actually several ways do do it. A simple way in your case is to have a local variable of the stop button in the second loop. You can't create a loca from a Boolean that is set to a latch action, so set the front panel Stop to Switch Until Released for example.
Message Edited by Dennis Knutson on 03-08-2007 02:38 PM
03-08-2007 05:11 PM
Hi Dennis - I have just tried to implement your method, and it seems to *mostly* work. Specifically, I have a string comming in once every second from the serial port. That is a constant. Like I said earlier, I'm attempting to send out a command twice per second over the serial port. Every time this command is received the device at the other end of the serial port sends back a simple "OK". So by looking at how many "OK"s I get compared to how many full strings are sent I can see what percentage of the commands are getting through. Unfortunately, it seems that only about 50% of the messages are getting through. I'm looking into whether it could potentially be an error at the other end, but I don't think that's likely as I've never run into this problem before. Do you see anything that could be causing a problem like this?
Thanks!
-Mike
03-08-2007 05:46 PM