09-11-2007 04:43 PM
09-12-2007 05:38 PM
Hi,
You really don't have to do anyhting special to open two Visa sessions. You can have two instances of SimpleReadWrite example open, where each session is talking to a different serial port, You can find this example in Program Files-->National Instruments-->Measurement StudioVS200x-->DotNET-->Examples-->Visa. You will see that this runs without any error. You can compare the code in the exaple to yours and see if you might be doing something differently.
Thanks,
Arjun K
09-13-2007 09:17 AM - edited 09-13-2007 09:17 AM
Message Edited by mbd on 09-13-2007 09:37 AM
09-14-2007 10:37 AM
Hi,
I have tried it again before posting this reply and it works just fine. I have two VISA sessions open and I try to communicate with two different instruments. It works without any errors. I have also tried daisy chaining the instruments and it still works. I have a strong belief that you either have the same address for your two instruments or VISA is corrupt. I would suggest that you try repairing your VISA drivers and reconfiguring your instruments in MAX. From the same VISA session, try communicating with the your devices one after the other and if everyhting so far works fine, try opening up two sessions.
Thanks,
Arjun K