Skip to content

Commit c658320

Browse files
authored
Fixed NI-DCPower example create and destroy sessions functions (#147)
Fixes name of SessionInfo attribute session_name
1 parent 3968b91 commit c658320

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/nidcpower_source_dc_voltage/teststand_fixture.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def create_nidcpower_sessions(pin_map_id: str):
4141
grpc_channel_pool.get_grpc_device_channel(
4242
nidcpower.GRPC_SERVICE_INTERFACE_NAME
4343
),
44-
session_name=session_info.session,
44+
session_name=session_info.session_name,
4545
initialization_behavior=nidcpower.SessionInitializationBehavior.INITIALIZE_SERVER_SESSION,
4646
)
4747

@@ -74,7 +74,7 @@ def destroy_nidcpower_sessions():
7474
grpc_channel_pool.get_grpc_device_channel(
7575
nidcpower.GRPC_SERVICE_INTERFACE_NAME
7676
),
77-
session_name=session_info.session,
77+
session_name=session_info.session_name,
7878
initialization_behavior=nidcpower.SessionInitializationBehavior.ATTACH_TO_SERVER_SESSION,
7979
)
8080

0 commit comments

Comments
 (0)