Skip to content

Commit df65fdd

Browse files
committed
Virtual Device AnalogOutputs contain full name of connection
1 parent f8037dd commit df65fdd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

blacs/plugins/virtual_device/virtual_device_tab.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ def create_widgets(self, blacs_tablist, AOs, DOs, DDSs):
1616

1717
for AO in self._AOs.keys():
1818
if self._AOs[AO] is None:
19-
self._AOs[AO] = self._blacs_tablist[AO[0]].get_channel(AO[1]).create_widget(None, False, None)
19+
chan = self._blacs_tablist[AO[0]].get_channel(AO[1])
20+
orig_label = chan.name.split('-')
21+
self._AOs[AO] = chan.create_widget('%s\n%s'%(AO[0]+'.'+orig_label[0], orig_label[1]), False, None)
2022
self._AOs[AO].last_AO = None
2123

2224
for DO in self._DOs.keys():

0 commit comments

Comments
 (0)