def vsaabout(): global vsasess message = [] status = VSA.model(vsasess) # model message += ['Model: %s (%s)' % (status[1], status_code(status[0]))] status = VSA.resource_descriptor(vsasess) # resource descriptor message += [ 'Resource Descriptor: %s (%s)' % (status[1], status_code(status[0])) ] status = VSA.acquisition_time(vsasess) # acquisition time message += [ 'Acquisition Time: %s (%s)' % (status[1], status_code(status[0])) ] return jsonify(message=message)
def vsaabout(): global vsasess message = [] status = VSA.model(vsasess) # model message += ['Model: %s (%s)' % (status[1], status_code(status[0]))] status = VSA.resource_descriptor(vsasess) # resource descriptor message += [ 'Resource Descriptor: %s (%s)' % (status[1], status_code(status[0])) ] status = VSA.acquisition_time(vsasess) # acquisition time message += [ 'Acquisition Time: %s (%s)' % (status[1], status_code(status[0])) ] status = VSA.trigger_source(vsasess) message += [ 'Trigger Source: %s (%s)' % (status[1], status_code(status[0])) ] status = VSA.trigger_delay(vsasess) message += ['Trigger Delay: %s (%s)' % (status[1], status_code(status[0]))] status = VSA.external_trigger_level(vsasess) message += [ 'External Trigger Level: %s (%s)' % (status[1], status_code(status[0])) ] status = VSA.external_trigger_slope(vsasess) message += [ 'External Trigger Slope: %s (%s)' % (status[1], status_code(status[0])) ] status = VSA.trigger_timeout(vsasess) message += [ 'Trigger Timeout: %s (%s)' % (status[1], status_code(status[0])) ] status = VSA.frequency(vsasess) message += ['LO Frequency: %s (%s)' % (status[1], status_code(status[0]))] status = VSA.power(vsasess) message += ['LO Power: %s (%s)' % (status[1], status_code(status[0]))] return jsonify(message=message)