Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Error-For loop

Hi,

 

I want to perform a frequency-sweep with "Agilent 33210A". I know that this device has the capability to do the sweep automatically, but I will use this program for other signal processing stuff.  I've written the program, but when I connect the "reset.vi" to the loop, I face the error "You have connected two terminals of different types". Should I use a data-type converter or something like that? The device has been installed correctely, because I can run the LV examples without error.

I have attached the file.

 

Does anyone know what is the reason that I cannot connect to "close.vi"?

In advance, thanks for your help.

 

Petar

 

Download All
0 Kudos
Message 1 of 4
(4,721 Views)
You just need to disable auto-indexing out of the for loop with a right click on the exit terminal. Have you taken any of the free LabVIEW tutorials? This is a basic default property.
0 Kudos
Message 2 of 4
(4,717 Views)

@Dennis_Knutson wrote:
You just need to disable auto-indexing out of the for loop with a right click on the exit terminal. Have you taken any of the free LabVIEW tutorials? This is a basic default property.
Actually, you really should replace the tunnel with a shift register.  The input shift register should be instead of the input tunnel.  Why?  If you accidentally wire in a 0 for the N, your reference will be lost when using tunnels (loop runs 0 times, therefore you get the default values out of the tunnels).  By using a shift register, you state what the value will be, even if the loop does not run.

GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 4
(4,704 Views)

Thanks for all your helpful replies.

0 Kudos
Message 4 of 4
(4,669 Views)