![]() |
|
#25
|
|||
|
|||
|
You only need to place your timer code inside the DoSample function. Everything else should be outside the function. So it should looke something like this:
Code:
def DoSample(): global AMPLITUDE, TOTALCYCLES, X1, X2, samples data1 = flock1.get() HEADLAT = data1[0] HEADVERT = data1[1] HEADAP = data1[2] HEADYAW = data1[3] HEADPITCH = data1[4] HEADROLL = data1[5] head_data = str(Subnum) + '\t' + str(Trial) + '\t' + str(HEADAP) + '\t' +str(HEADLAT) + '\t' +str(HEADVERT) + '\t' +str(HEADYAW) + '\t' +str(HEADPITCH) + '\t' +str(HEADROLL) +'\n' tracking_data.write(head_data) |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Flock of Birds recognized, but no data sent | sjroorda | Vizard | 9 | 03-01-2016 09:48 PM |
| Using vrpn_server with Flock of birds | sylvain | Precision Position Tracker (PPT) | 3 | 11-30-2007 10:45 AM |
| Flock of Birds | Elittdogg | Vizard | 9 | 10-02-2007 02:53 PM |
| Flock of birds extended range problem | theuberk | Vizard | 4 | 07-30-2007 10:31 AM |
| Adding more than one Flock of Birds | asimbh | Vizard | 3 | 12-15-2006 02:48 AM |