Re: vwait doesn't return after setting TCL_SetVar from a thread



My use of that code sample is the following, btw.

proc DataReady {} {
set ::data [tiepie::ADC_GetDataVoltCh 1]
}

# allow for callback when data is ready to be read
tiepie::SetDataReadyCallback DataReady

proc SetGenVoltsAndGetDrainVolts {volts} {

# Set Gen amplitude
tiepie::SetFuncGenAmplitude $volts

after 10

# Kick up a measurement set
::tiepie::ADC_Start

# try doing something productive during the wait
vwait ::data

return [averageOfSnapshot $::data]
}


--
"If people could put rainbows in zoos, they'd do it." -Hobbes

Attachment: signature.asc
Description: OpenPGP digital signature