Dear Scott and Ken, Thanks for your replies. I will try out the solutions suggested. Right now the control console will only really be used to send/receive events as there is another simulation server and actual graphical environment - the AI for the cars will be handled elsewhere not in LiveCode. The main thing is that the console is capable of sending/receiving data in "near" real time, for example the telemetry data of the person we are observing.
The project is currently using a mix of LiveCode, C++ and Python. Kind regards, rod On 20 July 2012 12:08, Scott Rossi <sc...@tactilemedia.com> wrote: > Hi Rod: > > I'm don't use Python but if you're referring to threading as in > multithreading -- running multiple threads simultaneously -- LiveCode > doesn't have this. One way you can *kind of* simulate threading is using > the send command: send "xyz" to button 5 in 20 millisecs . This doesn't > accomplish true multithreading, but in some cases allows near simultaneous > processing of multiple messages, if the code to be executed isn't too time > consuming or blocking. Another method could be to run a completely separate > LiveCode process and allow the two to exchange data/messages. > > Other folks may have additional suggestions. > > Regards, > > Scott Rossi > Creative Director > Tactile Media, UX Design > > > > Recently, Rod McCall wrote: > >> Dear LiveCoders, >> >> As I said in a previous email I am returning to LiveCode after a few >> years (well seven to be exact) so am a little rusty. Anyway right now >> we are implementing a car simulator environment of which we will use >> LiveCode as the control console for the simulation - at least that is >> the current plan. Am I right in thinking there is no equivalent to the >> Threading class that you find in Python? If so how do people implement >> something which is similar to this? I may have missed the info in the >> docs but a quick Google or scan of the RR website for anything >> resembling threading seems to yield very little. >> >> If no such equivalent exists are there ways round this? For example >> using sub-stacks etc each one behaving like a "fake thread"? >> >> Sorry if this seems a silly question but it has been a few years since >> I used LiveCode. >> >> Kind regards, >> >> rod > > > > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode -- Dr Rod McCall Researcher in in-car, mixed reality technology and gaming Interdisciplinary Centre for Security, Reliability and Trust University of Luxembourg Blog: www.rodmc.com twitter:rodlux Publications and Information available on my blog _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode