10-04-2006 07:42 AM
10-04-2006 08:48 AM
First of all, it's impolite to post a VI that you can't stop!
With the stop button hidden and not in an event case, how do you stop it? Make the stop control visible and create a Value Change event for the stop button instead of wiring it outside the event structure.
Second, your posted VI has the VISA Resource Name as a constant and not as a control so there is no way to change this when the VI runs. If you want the ability to change com ports, change the constant to a control and create a value change event for that. Close the existing resource in there and initialize the new port. Pass the new VISA Resource from event to event with a shift register. The attached should work a little better.
10-10-2006 06:46 AM
10-10-2006 12:13 PM