06-09-2005 11:59 AM
06-09-2005 12:05 PM
06-09-2005
01:48 PM
- last edited on
07-02-2024
02:31 PM
by
Content Cleaner
I've attached a modified version of your VI. You could do it this way with a shift register to pass the VISA reference or as Dan mentioned. I added an event for the read as well. In the connect event, I added a property node to enable the read button. The disconnect event has a property node to diable it. You should also note that you really don't have to do the connect/disconnect with a button. Typically, the connect woould be done before the main loop of the VI runs and then the VISA close is done when the main loop stops. Unless there's a reason to connect/disconnect multiple times during your program, you might want to think about that.
You're asking some pretty basic questions. You might also want to look at some courses or on-line tutorials. Check the LabVEWI Learning Center for some links to both.