WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 10-17-2018, 06:50 AM
Vishav Vishav is offline
Join Date: Jun 2017
Posts: 57
Write Eye-tracking data to file

I want to write real-time eye-tracking data in file while vizard is running. I want my data values to get store upto 5 decimal places as tobii eyetracker is giving values upto 16 decimal places, If i use %s for writing but not working for %f. My code is:
data = '\t%f\t%f\t\t%f\n'%(st,gaze_left_eye1,gaze_right_e ye1)

Why this code not working?
Reply With Quote
Old 10-24-2018, 10:17 PM
Jeff Jeff is offline
WorldViz Team Member
Join Date: Aug 2008
Posts: 2,471
The string formatting page has different examples of formatting data including the number of digits after the decimal point.
Reply With Quote
Old 11-05-2018, 11:20 PM
Vishav Vishav is offline
Join Date: Jun 2017
Posts: 57
Thanks Jeff
Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Vizard and Matlab sagar29 Vizard 7 12-25-2017 11:36 PM
Use saved text file data as replay sources problem mizutani_jun Vizard 4 10-14-2010 05:49 PM
writing joystick position to a data file Saz Vizard 3 12-17-2008 06:18 AM
Flagging the Data Elittdogg Vizard 5 04-11-2008 12:40 PM
tracking using quaternarion data jfreeman Vizard 2 06-01-2005 09:48 AM

All times are GMT -7. The time now is 12:54 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2022, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC