Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to transfer a VISA resource name between Teststand and labview

400 views
Skip to first unread message

RAVDM

unread,
Nov 29, 2006, 4:40:24 AM11/29/06
to
I use a sequencefileload callback to initialize a serial port and transfer the resource name to teststand by storing it in the fileglobals using a type "container, Instance of type 'labviewiocontrol'
and after test using sequenfileunload callback to release that resource, it got an error that:
 
VISA Close in CloseVISAPLC.viVISA:  (Hex 0xBFFF000E) The given session or object reference is invalid.
 
-1073807346; User-defined error code.
 
 
 

RAVDM

unread,
Nov 29, 2006, 8:10:16 AM11/29/06
to
hi ray,
thanks for your reply. 
do you mean that even the resource name can't be used in my main sequence?
as I think the two callbacks and the main sequence are all in the same sequence file.

Ray Farmer

unread,
Nov 29, 2006, 8:40:18 AM11/29/06
to
Hi,
If its the Alias such "COM1" then that will be ok, but if its a handle returned by the initialise function then that will not, and looking at your error message it sounds like the later. Therefore you would have to perform the initialise in you MainSequence.
Regards
Ray Farmer

RAVDM

unread,
Nov 29, 2006, 9:10:20 PM11/29/06
to
Today I have tried to put both in the same sequence of the sequence file (to open the session first and then close the session), and still got the same failure report.
what I use to store the VISA resource name fileglobals.VISA_RESOURCEIt's a container of device name: COM1and sessionnumber: 1642504
it's really strange and why?

RAVDM

unread,
Nov 30, 2006, 7:40:21 AM11/30/06
to
now I solve the problem, but still I don't know why.
 
I create a new sequence and copy those two vi to initialize and close VISA, it works correctly.
and I copy it back to the original sequence and replace the original one, and it's ok.
 
It's a bug in the teststand, I don't know. Maybe I have changed sth. during that operation, I don't know.
 
but it's solved.
0 new messages