WorldViz User Forum  

Go Back   WorldViz User Forum > Search Forums

Showing results 1 to 11 of 11
Search took 0.01 seconds.
Search: Posts Made By: farshizzo
Forum: Vizard 12-04-2007, 09:37 AM
Replies: 24
Views: 28,055
Posted By farshizzo
You only need to place your timer code inside the...

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:def DoSample():
global AMPLITUDE,...
Forum: Vizard 11-30-2007, 02:45 PM
Replies: 24
Views: 28,055
Posted By farshizzo
Cool Did you place your code for collecting samples in...

Did you place your code for collecting samples in the DoSample function? That function will be called at the specified rate.
Forum: Vizard 11-29-2007, 03:05 PM
Replies: 24
Views: 28,055
Posted By farshizzo
I'm not sure, it might be a framerate issue. Did...

I'm not sure, it might be a framerate issue. Did the sample script I posted above give you better results?
Forum: Vizard 11-29-2007, 09:28 AM
Replies: 24
Views: 28,055
Posted By farshizzo
Also, your framerate should usually be 60. What...

Also, your framerate should usually be 60. What is your framerate when you run the following basic script?import viz
viz.go()
Forum: Vizard 11-29-2007, 09:25 AM
Replies: 24
Views: 28,055
Posted By farshizzo
I cannot run your code because it is not inside...

I cannot run your code because it is not inside the tags. Python code depends on indentation, and posting code without the proper tag loses the indentation.

Either way, I've included a sample...
Forum: Vizard 11-28-2007, 01:17 PM
Replies: 24
Views: 28,055
Posted By farshizzo
Press the F4 key while your script is running and...

Press the F4 key while your script is running and it will display the framerate in the upper left corner of the window.

I was referring to the results of your script that vary between 1700 to 1800...
Forum: Vizard 11-28-2007, 10:50 AM
Replies: 24
Views: 28,055
Posted By farshizzo
Computers are not %100 perfect when it comes to...

Computers are not %100 perfect when it comes to timing, however you should be able to achieve a reliable sample rate of 30Hz. I did some tests here and I got the same number of samples every time. I...
Forum: Vizard 11-27-2007, 04:42 PM
Replies: 24
Views: 28,055
Posted By farshizzo
I'm confused, I thought the whole point was that...

I'm confused, I thought the whole point was that you wanted to collect a preset amount of samples? If the duration of the trial is not known at runtime, then the number of samples to collect cannot...
Forum: Vizard 11-26-2007, 01:24 PM
Replies: 24
Views: 28,055
Posted By farshizzo
You can change the value of MAX_SAMPLES anytime...

You can change the value of MAX_SAMPLES anytime you want. If you want to set it in your callback then you can do the following:def onKeyDown(key):
global samples, MAX_SAMPLES
if key == ' ':...
Forum: Vizard 11-26-2007, 01:12 PM
Replies: 24
Views: 28,055
Posted By farshizzo
Set the MAX_SAMPLES variable to however many...

Set the MAX_SAMPLES variable to however many samples you need, it's up to you. If you want to collect for only 45 seconds then set it to the following:MAX_SAMPLES = 45 * 30
Forum: Vizard 11-26-2007, 01:02 PM
Replies: 24
Views: 28,055
Posted By farshizzo
If you need exactly 1800 samples, then setup a...

If you need exactly 1800 samples, then setup a counter that will stop the timer after the specified number of samples have been recorded. Here is some sample code that should show you how it...
Showing results 1 to 11 of 11

 
Forum Jump

All times are GMT -7. The time now is 11:03 PM.


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