Skip to content

Problems detecting ADC Overloads using Python and RSA API #1

@heatherottke

Description

@heatherottke

I am using Python and the RSA API to control the RSA306B. I've written the following two functions in order to query the ADC overload status. If I understand correctly, the DEVICE_GetEventStatus API call when the event_id argument is set to zero, queries whether an overload event has occurred. The IQBLK_GetIQAcqInfo call returns the relevant overload status and associated timestamp information.

In order to detect the overload, I injected a CW into the RSA and increased the power until I expected to see an overload (I determined what this level should be by using the SignalVu software), yet my software failed to detect the overload event. I have scaled down and attached my code hoping that you can help me trouble shoot what I may be doing wrong. Thanks in advance!

adcOverload.txt

def query_device_status():
    event_id = c_int(0)
    event_occurred = c_bool()
    event_timestamp = c_uint64()
    rsa.DEVICE_GetEventStatus(event_id, byref(event_occurred),
                              byref(event_timestamp))
    return event_id.value, event_occurred.value, event_timestamp.value


def get_acq_info():
    acqInfo = IQBLK_ACQINFO()
    rsa.IQBLK_GetIQAcqInfo(byref(acqInfo))
    return acqInfo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions