Signal Generators

cancel
Showing results for 
Search instead for 
Did you mean: 

How to communicate my application trough TCP/IP to a Signal Generator

I have Legacy Software that communicated to a Function Generator trough an RS-232 Cable, and then the Function Generator communicated to a PC trough Ethernet, and then the PC communicated to the Legacy Software.

 

Now, I need to communicate to the Function Generator trough an ethernet cable, therefore, I will be having TCP/IP both ways. To the Function Generator and the PC.

 

I have posted the VI for some feedback, if you take a look at 

1 GO STATE

1 PROCESS

STATE MACHINE

1 FUNCTION GENERATOR SETUP

you will see how it was set up before, 

 

And on 

1 GO STATE

1 PROCESS

STATE MACHINE

2 AGC RETRIEVAL

the way it was received from the PC

 

 

thanks. 

LabVIEW Intermediate I level!
0 Kudos
Message 1 of 29
(8,523 Views)

Hi Bebeto,

I took a look at the VI you posted; it was missing a few subvis. Are you having trouble transitioning to TCP/IP? Are you getting errors? There are good examples of TCP/IP communication in the LabVIEW example finder if you are having trouble getting started.

Matt
Applications Engineer
National Instruments
0 Kudos
Message 2 of 29
(8,498 Views)

Hello Matt,

 

 I want to be able to communicate to a Signal Generator trough TCP/IP and send out a command to set up the frequency. I have attached the missing VIs to see if you can have a better picture of what I am trying to do. 

 

I have started modifying the code and basically I replaced the VISA for a TCP/IP VI the one I have attached. Please let me know if my logic is correct.

 

Thanks 

LabVIEW Intermediate I level!
Download All
0 Kudos
Message 3 of 29
(8,495 Views)

Hi Bebeto,

I looked at you code a little bit and nothing leaps out as being incorrect. I didn’t go too far into it however; I’d rather help you if you’re having problems than review code. Let us know how it progresses.

Matt
Applications Engineer
National Instruments
Message 4 of 29
(8,474 Views)

Hello Matt,

 

Actually nothing is wrong with it, it is supposed to communicate to a function generator trough an RS-232 cable. However, and this is where I need help! I am connecting this same code to a function generator using a ETHERNET cable. I went to the NI website and downloaded the drivers needed to communicate to an Agilent N5181A.

I just need to see if you have an example on how to set up a TCP/IP connection  to an  Agilent N5181A. 

 

 

Thanks

LabVIEW Intermediate I level!
0 Kudos
Message 5 of 29
(8,468 Views)
The driver is already setup for Ethernet communication since it uses VISA. Do NOT change to TCP/IP functions. That would be silly. Go to MAX and follow the instructions for adding a connection to an Ethernet instrument.
0 Kudos
Message 6 of 29
(8,466 Views)

Hello Dennis,

 

Two questions:

 

Can you please let me know where can I find MAX? Also do I need to add the VISA Run time engine when creating the installer?

 

Thanks 

LabVIEW Intermediate I level!
0 Kudos
Message 7 of 29
(8,462 Views)

MAX is Measurement and Automation Explorer.

 

If your application uses NI-VISA then you should include NI-VISA in the installer unless you don't want the app to work.Smiley Wink

0 Kudos
Message 8 of 29
(8,454 Views)

I don't seem to have it, does it come with the full installation package?

 

 

and about VISA the thing is... do I need to include VISA or Agilent drivers have it embedded? 

 

 

 

Anyway thanks for your prompt reply

LabVIEW Intermediate I level!
0 Kudos
Message 9 of 29
(8,450 Views)

If you installed any NI hardware driver, it will be installed and on your desktop. Otherwise, it's on the driver DVD.

 

I don't understand your second question at all. What 'embedded' are you talking about?

Message 10 of 29
(8,446 Views)