Skip to content
Snippets Groups Projects

Signal_import _from_file finished

Merged David Tebbe requested to merge SignalImportfromFile into master
1 unresolved thread

Signal Importer is able to import signals from File using genfromtxt

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
25 def performSetValue(self, quant, value, sweepRate=0.0, options={}):
26 """Perform the Set Value instrument operation. This function should
27 return the actual value set by the instrument"""
28 # just return the value
29 return value
30
31
32 def performGetValue(self, quant, options={}):
33 """Perform the Get Value instrument operation"""
34 # proceed depending on quantity
35 if quant.name == 'Signal':
36 # if asking for signal, start with getting values of other controls
37 DATAPATH=self.getValue('Datapath')
38 skiph=int(self.getValue('Skip Header'))
39 skipf=int(self.getValue('Skip Footer'))
40 data= np.genfromtxt(DATAPATH, skip_header=skiph, skip_footer=skipf)
  • assigned to @d

  • David Tebbe added 1 commit

    added 1 commit

    Compare with previous version

  • Niklas Borchers mentioned in commit fe84b81b

    mentioned in commit fe84b81b

  • Please register or sign in to reply
    Loading