LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How communicate my VNA with the LabVIEW

Solved!
Go to solution

Hi all,

I am doing my internship. I learned to use LabVIEW (the basics) and I need to communicate with the VNA (MS46122B) I found the drivers for it, however, it says that the interface is ethernet. I did not find anything on how to connect this way, can anyone guide me?Jufraka_0-1705586812447.png 

what I need is really not very complicated, I want to get the measurements done basically for "n" times and I have a picture of someone who did it, but I use other drivers.

Jufraka_2-1705586926373.png

They use this drivers:

Jufraka_3-1705587154876.png

 

0 Kudos
Message 1 of 9
(2,329 Views)

I downloaded those drivers and they don't look like they use an ethernet connection. I would guess USB, serial, or GPIB. How can you connect to the instrument? When you plug it into your PC do you see the instrument in NI MAX / LabVIEW?

 

Another issue I noticed with the driver is that I downloaded the 2013 version, but the code was from 2020. So they have several things mislabeled in there, but still worth giving it a try if you can.

Message 2 of 9
(2,304 Views)

@Gregory wrote:

I downloaded those drivers and they don't look like they use an ethernet connection. I would guess USB, serial, or GPIB. How can you connect to the instrument? When you plug it into your PC do you see the instrument in NI MAX / LabVIEW?


If using VISA, it can do Ethernet.  The VISA Resource Name will be something like TCPIP0::192.168.0.10::INSTR (using 192.168.0.10 as the IP Address).


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
Message 3 of 9
(2,283 Views)

+1 for crossrulz comment.  We have an Agilent N5232A VNA downstairs and I can see it from my lab.  I played around with LabVIEW communicating to it once, but didn't do anything fancy.  However, this is my VISA options in the building where the VNA is:

NIquist_0-1705601611503.png

I'm pretty sure it was the last (inst0::INSTR) entry that allowed me to link up.

 

EDIT: Actually +1 to Gregory too.  These devices do show up in NI-MAX and both INSTR options seem to work.  The SOCKET one actually responds to *IDN? with a proper answer too, but it also times out. 🤔

You can see the instrument in the Network Devices section of Devices and Interfaces.

 

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 4 of 9
(2,278 Views)

@crossrulz wrote:

@Gregory wrote:

I downloaded those drivers and they don't look like they use an ethernet connection. I would guess USB, serial, or GPIB. How can you connect to the instrument? When you plug it into your PC do you see the instrument in NI MAX / LabVIEW?


If using VISA, it can do Ethernet.  The VISA Resource Name will be something like TCPIP0::192.168.0.10::INSTR (using 192.168.0.10 as the IP Address).


Ooh that's good to know. The few times I've worked with ethernet connections I've used the TCP functions.

0 Kudos
Message 5 of 9
(2,270 Views)

@Gregory wrote:

@crossrulz wrote:

@Gregory wrote:

I downloaded those drivers and they don't look like they use an ethernet connection. I would guess USB, serial, or GPIB. How can you connect to the instrument? When you plug it into your PC do you see the instrument in NI MAX / LabVIEW?


If using VISA, it can do Ethernet.  The VISA Resource Name will be something like TCPIP0::192.168.0.10::INSTR (using 192.168.0.10 as the IP Address).


Ooh that's good to know. The few times I've worked with ethernet connections I've used the TCP functions.


Only instruments that support LXI show up under VISA over Ethernet, rest of the instruments are regular TCP/IP.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 6 of 9
(2,264 Views)

@santo_13 wrote:
Only instruments that support LXI show up under VISA over Ethernet, rest of the instruments are regular TCP/IP.

I'm not sure about that.  I'm fairly certain I've used VISA to communicate with non-LXI devices over Ethernet.  I'd have to dig around to prove that.  But it sticks in my head that I had a power supply that was not LXI compliant, but still used SCPI commands.  I guess in that case, it could have actually passed the LXI certification, but it just didn't go through it (if it is the instrument I'm thinking of, it also met the web server requirement).


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 7 of 9
(2,248 Views)

@crossrulz wrote:

@santo_13 wrote:
Only instruments that support LXI show up under VISA over Ethernet, rest of the instruments are regular TCP/IP.

I'm not sure about that.  I'm fairly certain I've used VISA to communicate with non-LXI devices over Ethernet.  I'd have to dig around to prove that.  But it sticks in my head that I had a power supply that was not LXI compliant, but still used SCPI commands.  I guess in that case, it could have actually passed the LXI certification, but it just didn't go through it (if it is the instrument I'm thinking of, it also met the web server requirement).


Here is the info you're looking for,

 

santo_13_1-1705610636876.png

 

 

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 8 of 9
(2,216 Views)
Solution
Accepted by topic author Jufraka

Hello,
Thank you all for your answer, I was a few days in this confusion but finally thanks to the help of the community I solved. Finally it was just a confusion with the communication method, I had to create a TCP port through NI-MAX. Note that for the VNA MS46122B, only the raw socket works.

 

Jufraka_1-1706054464909.jpeg

 

 

0 Kudos
Message 9 of 9
(2,121 Views)