From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
09-16-2014 02:51 PM
This is a vi that is located in \vi.lib\Utility\visa.llb. Did anybody ever had it worked? I started 2 VISA sessions on test equipment (a power meter connected to USB and a signal generator connected to a gpib-usb) and the number of open sessions indicated 0 when there was clearly 2 open sessions.
Ben64
09-17-2014 04:22 AM
Hi Ben,
Can you specify your error ? Did you try to send commands to your instruments when you think that your session is open ?
BR,
Vincent
09-17-2014 08:35 AM
@Vincent90 wrote:
Hi Ben,
Can you specify your error ? Did you try to send commands to your instruments when you think that your session is open ?
BR,Vincent
There is no error generated, the open VISA sessions just doesn't show up and the Open Sessions.vi return an empty array of references. The issue seems to be with this vi but we can't look at the diagram since it is password protected.
I was running continuous acquisitions and the VISA resource name controls was showing 2 open sessions (the small computers icon beside the resource name).
Ben64
08-24-2016 10:22 AM
Hi,
I found the 'Open Sessions.VI' present in vi.lib/utility/visa.llb to be unreliable. Has anyone else had similar experiences with this utility VI?
For example as can be seen below, the list of current open sessions generates by this VI is wrong. When compared with the visa resource name control, it can be seen that some of the sessions are not listed and some of the sessions are listed twice.
Does anyone know of any other VI that can be used to find out the list of open visa sessions ?
08-24-2016 04:22 PM
Hi Supreeth,
I altered NI's find COMS vi.
08-25-2016 08:24 AM
Simpler code would use an autoindexing tunnel, then you can get rid of the Index Array inside the loop.
Also, you should be using Build Array and not Insert into Array. Then you can get rid of the integer shift register.