10-19-2009 12:59 PM
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?
10-19-2009 01:28 PM - edited 10-19-2009 01:29 PM
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.
10-19-2009 02:06 PM
I will connect my PC to the Agilent to ease the debugging,
10-20-2009 10:42 AM
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.
10-20-2009 11:36 AM
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.
10-20-2009 12:53 PM
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.
10-20-2009 03:32 PM
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
10-21-2009 10:08 AM
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.
10-22-2009 09:47 AM
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!