01-11-2009 04:09 AM
01-12-2009 08:55 AM
Hi Elyan,
Thanks for your post and I hope your well today.
Without seeing your code its hard to know what the issue maybe..
Firstly, Make sure the code is initializing, required function (which could be in a loop) and the closes the task.
Secondly, Make sure nothing else is using the Device - you can only have one session.
This initialized appears to be missing in many cases,
"In many of the Instrument Drivers, the Application Example VI does not
include an Initialize VI. It assumes a valid VISA Session is wired to
the VISA Session terminal. If you view the block
diagram of the Application Example VI, you will notice that the session
is not being initialized (or closed). To correct this problem, place
the Initialize, or similar, VI prior to the Application Example VI (and
the Close VI afterward) and wire the appropriate terminals. This method
should allow you to run this example.
Note: If a Getting Started VI is included in your instrument driver, this should be done for you already.
This
error can also occur if you have more than one Initialize VI in your
program. Only one session can be opened to your instrument at a time,
so multiple Initialize VIs will produce this error. For example, if you
use the Getting Started VI and then place an Initialize VI in your
program, the additional session handle will be invalid."
Hope this helps,