Exemplo n.º 1
0
def main():
    fgen = FunctionGenerator(1)  # Instantiate function generator
    print(fgen.getIdn())  # Print identity of function generator
    # fgen.pushSin(20)
    # fgen.loadFromMemory("HIFU_SIM") # Loads the stored config "HIFU_SIM"
    fgen.pushArbitraryWaveform(list(np.linspace(-2000, 2000, 200, dtype=np.int)))
    print(fgen.getError())  # Gets error off the queue
    print(list(np.linspace(-2000, 2000, 100, dtype=np.int16)))
Exemplo n.º 2
0
def main():
    fgen = FunctionGenerator(1)  # Instantiate function generator
    print(fgen.getIdn())  # Print identity of function generator
    # fgen.pushSin(20)
    # fgen.loadFromMemory("HIFU_SIM") # Loads the stored config "HIFU_SIM"
    fgen.pushArbitraryWaveform(
        list(np.linspace(-2000, 2000, 200, dtype=np.int)))
    print(fgen.getError())  # Gets error off the queue
    print(list(np.linspace(-2000, 2000, 100, dtype=np.int16)))