Skip to content

only channel 1 addressable #1

@maxhoheiser

Description

@maxhoheiser

Hi,
I am using the 8channel output module with the wave player firmware and I can only address the first channel, channel 1 works perfect, but all other channels don't respond to the command m.play(X,0), do I have to enable each channel separately?

This is the short script I use:

import numpy as np
from pybpodgui_plugin_waveplayer.module_api import WavePlayerModule

# configure wave
sampleRate = 1000  # of samples per second 1kHz
wave = np.ones(1000) * 5

# load wave
waveplayer = WavePlayerModule('COM5')

waveplayer.set_sampling_period(sampleRate)
waveplayer.set_output_range(5)
waveplayer.set_loop_mode([False, False, False, False,False, False, False, False])
waveplayer.debug()

(waveplayer.load_waveform(0, wave))

waveplayer.play(2, 0)
waveplayer.stop()

waveplayer.disconnect()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions