LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why cant I remote AimTTi TG2511A func. gen. through VISA?

Solved!
Go to solution

Dear Members,

I bought the named device, and installed the necessary drivers (newer versions) on my 64 bit win7 PC.
There is an example in the VI-s which should work properly but it gives an error.

 

When I try to open the I/O through VISA vi and send an *RST command, the device shows REM on the display, but does not reset itself. So not even VISA and not even the factory examples work..

Can You give any advice, what to try to solve this problem? I keep in touch with the factory, but no any helpful advice yet. They tried it, it works for them.

I think, there is some driver conflicts, or maybe some of them works properly with the older versions.

Thank You a lot!
Zsika

0 Kudos
Message 1 of 9
(3,850 Views)
What sort of physical connection do you have? What sort of driver did you install? Is it an IVI driver? What sort of error do you get with a *IDN? query in MAX? What is the error code/message that the example returns?
Message 2 of 9
(3,832 Views)
The fact that the rem light can on would tend to indicate that the instrument recognized and was responding to your command. Is this an RS232 or GPIB device?

Its not at all unusual for instruments to not respond to the reset command. Due to the way they implement the command internally, the response gets lost in the system reset. In addition the reset itself can take several seconds to complete.

How do you know it doesn't actually do a reset?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 3 of 9
(3,821 Views)

Dear Dennis,

I connect via USB. I have the following stuff installed, and got the following I/O trace results after running the example vi.

 

 

Download All
0 Kudos
Message 4 of 9
(3,788 Views)

Dear Mike,

I use virtual rs232 vis USB.

If I use NI MAX to communicate, and send *RST it gives REM on display, and a click sound. The setted values goes to factory values.
With VISA *RST command, no reset, just the REM writing on the display.
Thank you.

0 Kudos
Message 5 of 9
(3,782 Views)
You are not using USB as USBTMC. There's a difference between that and a com port. Since the example works and MAX works, you probably aren't sending the correct termination character. You must fight click on the string control/constant and select '\' Codes Display to correctly send \n or \r.
Message 6 of 9
(3,768 Views)

I tried that when use standard VISA vi-s to remote. (attached pic)

The same happens: device goes to REM, but no click and no reset..

0 Kudos
Message 7 of 9
(3,755 Views)
Solution
Accepted by topic author zsika005
Did you read my reply? You aren't sending any termination character. Append the same character as MAX uses (probably \r) with the string constant correctly formatted and try again.

You should also include the VISA Configure Serial Port function in your code. You can also look at the advanced serial function to see how to automatically append the termination character. The basic example should also be tried. That example has the string control correctly set for sending '\' codes.
Message 8 of 9
(3,737 Views)

It is working this way. Thank you a lot!

0 Kudos
Message 9 of 9
(3,715 Views)