Signal Generators

cancel
Showing results for 
Search instead for 
Did you mean: 

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

As you may see on the attachment I took out the TCPIP VI and the Easy VISA serial Write and Read.

How can I test it to see if it is ok, since I cannot hook it up to the Agilent unless I go ahead and create the executable?

 

LabVIEW Intermediate I level!
0 Kudos
Message 21 of 29
(4,254 Views)

If you don't have the instrument connected to your network or the development PC, you can't really test anything locally. If you have the instrument, can you move it? If you can't, then build the exe. Obviously, that would make debugging much hard but you can at least enable debugging (Advanced category) when you do the build.

 

edit - one way that you could debug the code is if the pc with the instrument is connected to your network. Then you can use VISA Server to connect to the instrument.

Message Edited by Dennis Knutson on 10-19-2009 12:29 PM
0 Kudos
Message 22 of 29
(4,246 Views)

I will connect my PC to the Agilent to ease the debugging,

 

LabVIEW Intermediate I level!
0 Kudos
Message 23 of 29
(4,239 Views)

Hello Dennis,

 

I was able to comunicate to the Signal Generator trough the ethernet cable using MAX. I used the development computer for this purpose, however, I am not successful sending the command from my code to the SG. it gives me an error which I assume has to be with the way I modified the code.

 

Please let me know if you have any input on this, thanks. 

LabVIEW Intermediate I level!
0 Kudos
Message 24 of 29
(4,227 Views)

I don't know how you modified your code and you have not provided the error that you are getting.

 

Start simple. Just open the init function in the driver and select the correct VISA Resource Name. See if the instrument resets and you get the id back.

0 Kudos
Message 25 of 29
(4,222 Views)

I have attached two pics, the first one is related to the way I modified my code and the second one is the error I get.

 

I have already done your suggestion and it worked perfect. 

LabVIEW Intermediate I level!
Download All
0 Kudos
Message 26 of 29
(4,215 Views)

Judging from what the error code says it sounds like you are setting the Frequency input of the Configure Frequency.vi too high. You can see if the error is coming from this by right-clicking on the error wire coming out of this vi and create>>probe. Run the vi and see if the error appears in this probe. You could also look up that error code -222 in the manual for the instrument.

 

Hope this helps

Now Using LabVIEW 2019SP1 and TestStand 2019
0 Kudos
Message 27 of 29
(4,205 Views)

Hello Bob,

 

Actually the frequency I am trying to set it is well between the range, That is why I am thinking it should be something else. I have send out and email to the Agilent people to see if they have any input on this, thanks anyway. 

LabVIEW Intermediate I level!
0 Kudos
Message 28 of 29
(4,182 Views)

Hello,

 

it seemed that the scale I had was the problem, I am still trying to solve it but at least I was able to communicate to the Signal Generator now!

LabVIEW Intermediate I level!
0 Kudos
Message 29 of 29
(4,161 Views)