LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error Code 0xC0000025 (labview 2014)

Solved!
Go to solution

Hello Everyone,

 

My labview program is communicating with a function generator (Agilent 33521A) and a frequency counter (Agilent 53230A) using the standard device drivers available on NI's website. I have recently upgraded from 2012 version and my labview program is consistently crashing. I get the same error code each time but the crash is random. Moreover if I run the code for function generator separately it completes the required number of iterations. But crashes if both instruments are used simultaneously. I have attached the screen shots of  front panel/block diagram along with the VI.

 

I will be grateful if anyone can help me.

 

Hamza

 

 

0 Kudos
Message 1 of 5
(4,833 Views)
Solution
Accepted by hamza82

Driver specific questions are hard to get answers from: but here are a few things to try.

[before you start: I do not have these drivers installed, these are just things I noticed poking the Block Diagram]

 

Are you intending to close the generator duding each for loop run? On the next loop, the ref to that address has been destroyed.

You are using error mannaged drivers, Do you want the system to handle errors from previous loops?

 

This is a pictrure of how I would restructure

forloop.png

 

Remember you can add a contitional terminal to a for loop (right click border) to have the For loop end early on boolean or (more usefully) error. 

0 Kudos
Message 2 of 5
(4,810 Views)
Solution
Accepted by hamza82

Remove the VISA Close.vi from the FOR loop, the VISA sessions should be close only once at the end (after the FOR loop) for both instruments. You should also verify that the gating parameters are valid.

 

Ben64

0 Kudos
Message 3 of 5
(4,807 Views)
Solution
Accepted by hamza82
Try communicating sequentially instead of in parallel. Enforce this with the error wires so that you step and then read.
0 Kudos
Message 4 of 5
(4,794 Views)

Thank you very much everyone. I have incorporated all of your suggestions and the code runs fine.

 

0 Kudos
Message 5 of 5
(4,756 Views)