LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

????Mr. Dennis Knutson Please see the subvi for HP34903A switch. Did I make any mistakes?

I just add the 34970A Initialize.vi and 34970A Close.vi together with 34970A switch.vi. I tried the experiment again and again. I still can not open/close the 34903A switches indepedently on slot2. Please see the attached vi. Did I make any mistakes?
0 Kudos
Message 1 of 2
(2,274 Views)
You're calling initialize every time. If you look inside this VI, you'll see that if you don't choose reset, the command SYST:PRES is issued which will preset the instrument to a known configuration. You do not want to call initialize every time. It is enough to call it at the very beginning of your program and then just call HP34970A Switch.vi by itself whenever you want to open and close a relay.
Message 2 of 2
(2,274 Views)