03-09-2011 02:01 PM
i put the visa resouce number in the while loop but the same problem keeps occuring, maybe it's the hardware that has problems ?
03-09-2011 02:28 PM
I think you misunderstood me.
Run your hotplate VI with highlight execution set to on.
I think you'll see that you try to open the VISA resource twice and that on the second try, it will error out.
03-10-2011 03:06 PM
i took out the VISA open is this waht you're talking about? however, it's still having the same problems.
i emailed the company and they said it has something to do with the delays so i'm currently playing around with that right now. thanks so much for the input!
03-10-2011 03:41 PM
Can you post your updated VI?
03-10-2011 07:24 PM
here's the updated vi
03-11-2011 07:37 AM
The while loop in the attached screenshot is your problem. You call Open VISA when iteration is equal to zero and again when iteration is equal to 1.
The second call to Open VISA likely returns an error and invalidates the reference.
Please take the time to apply the other corrections from my previous post to this VI as well. If you intend to keep using this VI, I think it is a good candidate for refactoring.
03-11-2011 09:10 AM
@Taki1999 wrote:
The while loop in the attached screenshot is your problem. You call Open VISA when iteration is equal to zero and again when iteration is equal to 1.
The second call to Open VISA likely returns an error and invalidates the reference.
No. Opening a VISA reference that is already open will not cause an error. Also, if you don't explicitly open it, it will open itself the first time you try to use a VISA function.
03-11-2011 10:36 AM
sorry, the hotplate.vi program is not the finished program, it's changed to hotplatefinish.vi if you can help me with that one?? thanks!!
03-11-2011 10:37 AM
and using the visa open for this vi also didn't make a difference. still getting the error :S
03-11-2011 03:09 PM
For the visa write return count, it reads numbers but at random times for the visa read, it stops working as in it returns a value of 0. has anyone had an issue with this?