05-12-2015 02:29 PM
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
Solved! Go to Solution.
05-12-2015 02:54 PM
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
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.
05-12-2015 02:56 PM
05-12-2015 03:13 PM
05-13-2015 08:56 AM
Thank you very much everyone. I have incorporated all of your suggestions and the code runs fine.