Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-SPY crashes

I have this brand new SPY 2.7.2 that came with VISA 5.0.3 and it crashes on the attached spy file. Especially when I try to see that command at the end that has a warning. Same crash happens when you step through commands using next.

 

Any ideas?

 

Thank you,

-Ilya.

 

0 Kudos
Message 1 of 12
(3,830 Views)

Howdy Ilya!

 

After looking at the spy capture I don't immediately see a reason for the error.  Does the error happen at the same place everytime you run the program? What does the error message say that is returned (you can see it being sent on line 151 of the spy capture)?

 

Also, would you please explain in detail your hardware setup on what you are doing in your program.  Attach your code if possible.

 

Regards,

 

Barron
Applications Engineering
National Instruments
0 Kudos
Message 2 of 12
(3,799 Views)

Hi Barron:

 

Well, I'll tell you what I expect and you can tell if it is an error or not:

  1. I open the attached file in the SPY. It opens fine.
  2. Then I would like to see more details on the call that has a warning.
  3. I would expect to double-click on the line that has the instruction in question and there will be a window with add the details of the function call. Same thing as for any other command without an error or warning.
  4. However, instead of showing this window SPY just closes. No error message.
  5. This (closing of SPY) only occurs when I try to see the details for the function that had the warning. All others work fine.

Regards,

-Ilya.

 

0 Kudos
Message 3 of 12
(3,795 Views)

Hi Ilya,

 

I was able to open the file and view the details for the warning line without any troubles.  I am running NI-SPY 2.7.2 on a Windows 7 32-bit machine.

 

spy.png

 

It sounds like something may have gotten corrupted in your NI-SPY installation.  Have you tried doing a repair of NI-SPY?  Also, what operating system are you using?

 

Regards,

Barron
Applications Engineering
National Instruments
0 Kudos
Message 4 of 12
(3,773 Views)

Hi Barron:

 

I'm running WInXP SP3.

I just did reinstall of SPY 2.7.2 - same result as before.

 

-Ilya.

0 Kudos
Message 5 of 12
(3,768 Views)

Hi Ilya,

 

Is this the only capture you have experienced this problem with?  If you recreate the situation and generate a new NI-SPY capture does it still close out on you when you try to open the error?

 

Also, have you tried opening the problematic NI-SPY capture on a different machine?  If so, did it work/not-work and what operating system did the other machine have?

 

Regards,

Barron
Applications Engineering
National Instruments
0 Kudos
Message 6 of 12
(3,741 Views)

Hi Barron:

 

I've seen the same crash before. Same type of behavior also - double click on a call with a warning causes SPY to close. I don't have the logs right now. If I get them, I'll attach them to this post.

 

I've tried a log with a call with an error - no crash.

I've also tried to open teh same log on a different PC - same result. The PC is WinXP PRO 2002 SP3.

 

Reagrds,

-Ilya.

0 Kudos
Message 7 of 12
(3,732 Views)

Hi Ilya,

 

Do you have access to another computer that is running something other than Windows XP SP3?  I have not found any documentation about a known problem with NI-SPY and Windows XP SP3, but it would still be something to try.

 

Also, if possible please attached the other error logs that you are having trouble opening.  I would like to try those as well on my machine.  Thanks!

 

Regards,

Barron
Applications Engineering
National Instruments
0 Kudos
Message 8 of 12
(3,708 Views)

Hi Barron:

 

Can you reproduce the problem?

I thought, since you are from NI and probably have all the source code, you can just run SPY with a debugger and get all the data.

Ok, if I see any other log that would behave the same I'll upload it.

 

Regards,

-Ilya.

 

0 Kudos
Message 9 of 12
(3,666 Views)

Hi Ilya,

 

I tried opening the file on two different Windows XP SP3 machines and in both cases I encountered the strange behavior where nothing would show up in the NI-SPY window.  However, if you look near the bottom of the window you can see that it recognizes that there are152 captured lines:

 

untitled.PNG

 

I don't have an immediate answer as to why this is happening.  Windows 7 seems to work fine, but Windows XP SP3 has strange behavior.  I will bring this up with R&D to see if I can find out any more information.

 

Regards,

Barron
Applications Engineering
National Instruments
0 Kudos
Message 10 of 12
(3,643 Views)