WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   sending event markers to a monitoring computer (https://forum.worldviz.com/showthread.php?t=473)

mikestatic 01-03-2006 08:05 AM

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.

farshizzo 01-03-2006 10:34 AM

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.

mikestatic 01-25-2006 09:35 AM

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.

tobin 01-26-2006 09:23 AM

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.


All times are GMT -7. The time now is 09:31 PM.

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