Hi Muhammad, Please refrain from posting comments about immigration visas. This software library supports driving an oscilloscope using Virtual Instrument Software Architecture (VISA). It has nothing to do with a issuing a visa.
I have implemented Sharky's suggestion in version 2.1 (JVisa version 0.7). That is the only change I made apart from now using Apache NetBeans 11 as IDE.
Updated with the fact that the IDE in use is now Apache NetBeans 11.
JVisa.openDefaultResourceManager now allows also a return status VI_WARN_CONFIG_NLOADED apart from VI_SUCCESS.
Hi Sharky, sorry, I had missed your post. It somehow made it into the Moderate group of posts which existence I was not aware of until now. Thank you for letting me know your findings. I shall implement your code suggestion in the next couple of weeks. Cheers, Guenter
Hi Charles, actually, I have to revise my previous statement about JVisa not supporting more than one instrument. Try something like this: JVisaInstrument instrument1, instrument2; JVisa visa = new JVisa(); long visaStatus = visa.openDefaultResourceManager(); if (visaStatus == VisatypeLibrary.VI_SUCCESS) { instrument1 = new JVisaInstrument(); // The instrument string is just an example. instrument1.openInstrument("TCPIP::192.168.1.106::INSTR"); instrument2 = new JVisaInstrument(); // The instrument...
Hi Charles, I have never tried JVisa with more than one oscilloscope connected through ethernet. Looking at the (my |: ) code I think I can see what the problem is. The code makes the resource manager handle variable protected, so JVisa can currently only set it by opening / instantiating a resouce manager which would then only allow one instrument per resource manager. So, I expect that the second time trying to open a resource manager after instantiating a second JVisa class an error is returned....
Hi Charles, great to hear that someone other than me (at some of the labs at Colorado School of Mines) is using the driver. Do you run your app under MS Windows (TekVisa or NiVisa?) or Linux (libreVisa)? Cheers, Gunter