Re: vwait doesn't return after setting TCL_SetVar from a thread
- From: David Gravereaux <davygrvy@xxxxxxxxx>
- Date: Thu, 26 Apr 2007 01:27:43 -0700
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
- References:
- vwait doesn't return after setting TCL_SetVar from a thread
- From: zivh@xxxxxxxxx
- Re: vwait doesn't return after setting TCL_SetVar from a thread
- From: David Gravereaux
- vwait doesn't return after setting TCL_SetVar from a thread
- Prev by Date: Re: vwait doesn't return after setting TCL_SetVar from a thread
- Next by Date: Re: nested loops
- Previous by thread: Re: vwait doesn't return after setting TCL_SetVar from a thread
- Next by thread: Re: vwait doesn't return after setting TCL_SetVar from a thread
- Index(es):