LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Oscilloscope freezes in loop run

Anyway, my problem is I do not know which command would work in my case or at least what should I look around in the programmer's guidline. I am blindly checking different commands regarding "clear" something with no use.  

0 Kudos
Message 11 of 16
(1,661 Views)

Hey Keivan,

 

It might be helpful if you perform an I/O Trace, to see if there is any specific command that seems to cause the freeze. It should show you all the VISA driver calls being made. It's hard to say what could be causing that, so this might give us some more information.

 

Performing a good NI I/O Trace Capture for Debugging/Troubleshooting

http://digital.ni.com/public.nsf/allkb/282C5D41E2BA04F2862574BA007803B9

Eden K
Applications Engineer
Message 12 of 16
(1,624 Views)

Thank you Eden,

 

I attached the image of NI tracer debugger. I am wondering if you wuld need the complete file as well.

0 Kudos
Message 13 of 16
(1,573 Views)

Hey Keivan,

 

Unless there are more errors in the trace that differ from the ones shown in the screenshot, I don't believe I would need the full file. I've been searching for information on those errors. See the link below and let me know if they shed any light on this, or if that is a solution you could try. I have also found mention often that this issue does arise due to an invalid character being sent in the command- and you had mentioned seeing a message about that earlier in this thread. I don't know why this would occur at seemingly random times and not consistently, but I would imagine that is the cause. I haven't been able to find much off of the code thrown from the VISA Write, but I imagine it's occurring as a result of the first error.

 

Error -1073807298 Occurs are a VISA Read/Write

http://digital.ni.com/public.nsf/allkb/60DDFED7EFEFE7188625705700750821

 

What version of NI-VISA do you have installed on your computer?

Eden K
Applications Engineer
0 Kudos
Message 14 of 16
(1,526 Views)

Hi Eden,

 

I have installed version 15.0.1 of NI-VISA.

I have contacted an engineer in Agilent company. After looking to the errors and my program he said " The Oscilloscope will hang until it receives a trigger whenever it gets the DIG command in the Initiate VI. Like they said, since your device is set to Auto trigger, it usually triggers anyways, but sometimes it doesn’t. Because the driver VIs send the other relevant commands (CLS, OPC) through other VISA Writes in the Wait for Acquisition Complete VI, they don’t always get seen by the oscilloscope, and the whole system hangs."

 

We modified the program. Although he is running the code for a long time on his oscilloscope (which is slightly different model) successfully I am still getting my scope freezed. I attached an image of NI-trace file as well as thenew code for your attention. It has become such a bothersome problem and I feel worse as I run the program more and more.

 

Thanks.

Download All
0 Kudos
Message 15 of 16
(1,477 Views)

Hey Keivan,

 

I'm not convinced that it's a result of the DIG command, as the second IO trace doesn't even show a DIG command but it clearly still encounters an error. Has this code worked in the past but recently stopped working? Just to make sure I'm understanding correctly, the Agilent engineer was able to run your same code on his scope without encountering the error correct? Do you have another scope you can try it out with?

 

I understand your frustration with the issue. It's hard to pin down why it's behaving this way, but hopefully we'll figure it out. I haven't been able to find any instances that are particularly similar to this, but I'll keep looking. 

Eden K
Applications Engineer
0 Kudos
Message 16 of 16
(1,439 Views)