Jump to content
  • 0

Waveforms SDK in Python: choosing DigitalIn channels


DDrew

Question

I am trying to write a Python script for a repeated-mode simultaneous logic analyzer / oscilloscope capture using the Analog Discovery 2 and running into some problems.

How do I set active digital channels? For example, if I want to modify the DigitalIn_Record example to record from both channel 0 and 1.

Is there an analogous command to the AnalogIn version:

dwf.FDwfAnalogInChannelEnableSet(hdwf, c_int(0), c_bool(True))

Sorry if this is a trivial question but I cannot find an example or note in the reference manual.

 

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Hi @DDrew

There is no need to enable the digital inputs, these are always available to read.
The DigitalIO data and DigitalIn acquisition sample bits represent the digital channels. The least significant bit (0) being DIO (channel) 0, bit 1 = DIO 1,...

See some related posts:

 

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...