You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I've been trying to connect to multiple instruments via separate vi sessions on a single endpoint/server and treat each of these connections as their own session/connection and essentially be able to connect/disconnect to each individual device while keeping a grpc channel to the PXI open.
However calling .close() on any instrument session will just close all sessions/connections to every instrument on the PXI. I think this is due to the fact that all sessions to a single server share a single grpc channel and when you call close on an instrument driver session the grpc session will be closed as well.
For example lets say I connect to the PXI and use the utility manager protobuffer to query all available devices and then I connect to an RFSA and an RFSG by creating vi client sessions for each. But then if I call client.close(nifsg_types.CloseRequest(vi=vi)) on RFSG it will also close RFSA. Again I think that this is because all connections/channels to a single server share a single tcp connection and therefore single grpc channel and so when one session is closed the entire grpc connection is dropped/lost.
This is not very desirable. Is there anyway to get around this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi I've been trying to connect to multiple instruments via separate vi sessions on a single endpoint/server and treat each of these connections as their own session/connection and essentially be able to connect/disconnect to each individual device while keeping a grpc channel to the PXI open.
However calling
.close()
on any instrument session will just close all sessions/connections to every instrument on the PXI. I think this is due to the fact that all sessions to a single server share a single grpc channel and when you call close on an instrument driver session the grpc session will be closed as well.For example lets say I connect to the PXI and use the utility manager protobuffer to query all available devices and then I connect to an RFSA and an RFSG by creating vi client sessions for each. But then if I call
client.close(nifsg_types.CloseRequest(vi=vi))
on RFSG it will also close RFSA. Again I think that this is because all connections/channels to a single server share a single tcp connection and therefore single grpc channel and so when one session is closed the entire grpc connection is dropped/lost.This is not very desirable. Is there anyway to get around this?
Beta Was this translation helpful? Give feedback.
All reactions