WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 01-03-2006, 08:05 AM
mikestatic mikestatic is offline
Member
 
Join Date: Jan 2006
Posts: 9
sending event markers to a monitoring computer

I am setting up a program that will display a slideshow of pictures in the virtual environment and I will be using a second computer to monitor physiological responses to each slide. My problem is that I need to send an event marker to the monitoring computer each time a new slide is revealed in the virtual environment and I am unsure of exactly how to accomplish this automatically. Each slideshow picture will be manually triggered, so it will not be as simple as just setting a timer to gauge the events. Any ideas would be helpful. Please let me know if further information is needed.
Reply With Quote
  #2  
Old 01-03-2006, 10:34 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

When the next slide is triggered, simply send a network message to the monitoring computer. Here is how to create a network object to send data through:
Code:
network = viz.add(viz.NETWORK,'MonitorComputerName')
Here is how you would send data to that computer:
Code:
network.send(1) #Slide 1 is being displayed
Then on the monitoring computer you would add the following code:
Code:
def onnetwork(message):
	print 'Slide',message[2],'is being displayed'

viz.callback(viz.NETWORK_EVENT,onnetwork)
Let me know if anything is unclear.
Reply With Quote
  #3  
Old 01-25-2006, 09:35 AM
mikestatic mikestatic is offline
Member
 
Join Date: Jan 2006
Posts: 9
sending voltage via serial port

My plans have changed. Instead of sending an event marker to a different computer, I need to send an event marker directly to our physiological monitoring system in the form of a voltage spike via the serial port of my computer running Vizard. I am assuming that this would be a command different from the network command. Any insight on how to send a fixed voltage marker from Vizard via the serial port would be much appreciated.
Reply With Quote
  #4  
Old 01-26-2006, 09:23 AM
tobin tobin is offline
WorldViz Team Member
 
Join Date: Feb 2003
Posts: 251
Look at this thread, starting at post #9:

http://www.worldviz.com/forum/showthread.php?t=302

Once you get pySerial working, you can use it to set the RING indicator on your serial line.
Reply With Quote
Reply

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


All times are GMT -7. The time now is 08:44 AM.


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