LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programatically Connect to Oscilloscope via IP

So I have a program that connects to a VISA resource that has been setup in the MAX tool before. However, the IP address of my oscilloscope isn't static, so I have to change the VISA resource settings every few weeks. Is there a way to pass in an IP address as a parameter to the program and automatically create a VISA resource.

 

Thanks

0 Kudos
Message 1 of 6
(2,591 Views)

@tikihiki wrote:

So I have a program that connects to a VISA resource that has been setup in the MAX tool before. However, the IP address of my oscilloscope isn't static, so I have to change the VISA resource settings every few weeks. Is there a way to pass in an IP address as a parameter to the program and automatically create a VISA resource.

 

Thanks


I would set up a static IP address on the scope.

 

 

0 Kudos
Message 2 of 6
(2,577 Views)

If a static IP address isn't an option, is there any other way to do it?

0 Kudos
Message 3 of 6
(2,573 Views)

You can wire a string to VISA functions in place of a VISA resource. You can edit the string so it contains the correct IP address.

 

EDIT: Or you can skip VISA entirely and use LabVIEW's TCP/IP functions.

0 Kudos
Message 4 of 6
(2,569 Views)

Thanks! I will go with the first option, could you please elaborate? Can i just pass a string saying "123.123.123.12" or whatever into the "Visa Resource Name" input, or is there more to it than that?

0 Kudos
Message 5 of 6
(2,561 Views)

It needs to look exactly like the text in the VISA resource. Wherever the IP address is within the resource, replace that and keep the rest of the text the same.

0 Kudos
Message 6 of 6
(2,559 Views)