Believer
2007-03-30 23:40:13 UTC
Hello,
I have a virtual serial COM port which quite happily shows up in MAX as ASRL5::INSTR.
I can also open a HyperTerminal session to it.
When I do a viFindRsrc, my 'Open' routine of my virtual COM port gets called, followed by the 'Close' routine.
So I know that VISA can open and close the device. Great.
This is also what happens when I open the HyperTerminal session.
However when I try a viOpen with the string that viFindRsrc gave me ("ASRL5::INSTR"),
VISA returns with VI_ERROR_RSRC_BUSY.
Nevertheless I can then open a HyperTerminal session (which calls my 'Open' routine)
and do a find with MAX which does the same thing.
Please don't tell me that another piece of software has the COM port already open or busy.
If vIFindRsrc can open it and close it - or HyperTerminal, then I would like to be able to do the same thing with viOpen.
Changing the AccessMode for viOpen gives me no success.
I have VISA 3.6 and am running XP with SP2
So the bottom line? viFindRsrc opens & closes my port, but viOpen returns VI_ERROR_RSRC_BUSY.
Any help would be much appreciated.
Thanks.
I have a virtual serial COM port which quite happily shows up in MAX as ASRL5::INSTR.
I can also open a HyperTerminal session to it.
When I do a viFindRsrc, my 'Open' routine of my virtual COM port gets called, followed by the 'Close' routine.
So I know that VISA can open and close the device. Great.
This is also what happens when I open the HyperTerminal session.
However when I try a viOpen with the string that viFindRsrc gave me ("ASRL5::INSTR"),
VISA returns with VI_ERROR_RSRC_BUSY.
Nevertheless I can then open a HyperTerminal session (which calls my 'Open' routine)
and do a find with MAX which does the same thing.
Please don't tell me that another piece of software has the COM port already open or busy.
If vIFindRsrc can open it and close it - or HyperTerminal, then I would like to be able to do the same thing with viOpen.
Changing the AccessMode for viOpen gives me no success.
I have VISA 3.6 and am running XP with SP2
So the bottom line? viFindRsrc opens & closes my port, but viOpen returns VI_ERROR_RSRC_BUSY.
Any help would be much appreciated.
Thanks.