10-13-2009 08:56 AM
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.
10-14-2009 02:46 PM
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.
10-14-2009 03:07 PM
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
10-15-2009 06:16 PM
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.
10-16-2009 11:28 AM
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
10-16-2009 11:50 AM
10-16-2009 11:56 AM
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
10-16-2009 02:20 PM
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.
10-16-2009 02:39 PM
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
10-16-2009 03:00 PM
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?