Jump to content
  • 0

RunSet time for individual pins


spri

Question

The AnalogDiscovery2 has functions AnalogOutRunSet and DigitalOutRunSet which set the run length for the entire instrument. Is it possible to set run-times for individual pins, instead of for the instrument as a whole?  For example, to have certain pins turn off after an exact duration specified while the other pins continue running uninterrupted?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Hi @spri

The digital out run time is common for all the pins.
You might use the custom pattern to generate different number of pulses with a limited run time. Like for two pulses specify a pattern of length 1000 with [0,1,0,1,0,0,0...] (as bit field set array of bytes 0x0A,0x00...), for 500 pulses 1000 samples of [0,1,0,1,0,1...] (as bit field set 0xAA,0xAA...) and configure run time equivalent to the length.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...