From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Interfacing with a Tektronix AWG70002A

Solved!
Go to solution

Hello

I have a feeling this problem might be tricky to diagnose and explain but I've tried to fix it on my own with no success.

I am trying to communicate with a Tektronix AWG70002A using the IVI drivers found here. (the 64-bit version) and I wrote a script to connect to it and upload waveforms. In the past it worked. I'm not sure what changed but now it's giving me various errors with the refrence number and other things. I'm not very experienced when it comes to TCIP, IVI and connecting with instruments like this so any help will be appreciated. 

 

I'm also connecting through LAN. Thanks.

Download All
0 Kudos
Message 1 of 7
(3,158 Views)

What were the errors you are getting?  I don't have LabVIEW right now, so I can't look at your code.  But the error messages usually tell you exactly what is wrong.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 7
(3,139 Views)

When I run the initialization block I would get 3005 before the invoke node after the open application vi. I think I had a 97 at one point and two others, both long strings of numbers.

0 Kudos
Message 3 of 7
(3,127 Views)

Then can you get a screen shot of these errors?

 

If you didn't have a proper initialization, then it would make sense that you would get a 97 later on.  From the LabVIEW Explain Error:

 

Error 97 occurred at an unidentified location

Possible reason(s):

LabVIEW:  A null or previously deleted refnum was passed in as an input.

 


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 7
(3,108 Views)

The error I'm getting now is -2147221164 which says "Class not registered in .vi" Which happens after I try to pass the automation refnum to the automation open vi. The reference number is coming from the IVI driver I mentioned in the first post.

 

 

 

Actually.. Looking closer, I reinstalled the drivers, the ones mentioned in the first post and they are different than the ones I used when the program was working. I can't seem to find those old ones. I think it was version 1.4 or 1.04

 

I rewrote a simple version that should connect with the device, do some stuff then close but it gave me the same 2147221164 error when using the drivers found here.. http://www.tek.com/awg7061b-software/ivi-c-driver-awg5000-and-awg7000-v50

 

I got a 3005 error using a version 3 driver. I'm not sure where it came from..

0 Kudos
Message 5 of 7
(3,090 Views)

Essentially I've done this http://www.ni.com/white-paper/4505/en/ and I get a -2147192738 error. I can ping the device and it shows up in the visa tektronix list so I know it's there.

 

So I think the issue is the driver. I installed the IVI-COM driver here http://www.tek.com/awg7101-software/ivi-com-driver-awg5000-and-awg7000 but when I select only show creatable objects, nothing shows up.

0 Kudos
Message 6 of 7
(3,068 Views)
Solution
Accepted by topic author Keenan27

So I restarted my computer, tried this driver http://in.tek.com/signal-generator/awg70000-arbitrary-waveform-generator/awg70001a-1-software/ivi-dr...

Set the reset on initialize to false and it worked. Smiley Frustrated

0 Kudos
Message 7 of 7
(3,058 Views)