WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 11-03-2011, 06:28 PM
pkhoosh pkhoosh is offline
Member
 
Join Date: Feb 2005
Posts: 21
Send a message via AIM to pkhoosh Send a message via Yahoo to pkhoosh
biopac networking

I'm trying to modify the code in the reference manual to import biopac data channels into a common data file that Vizard records.

The first problem is that Vizard running on computer1 doesn't recognize the AcqKnowledge software running on the networked computer2 (I get an error that there's no module named acqserver). When I try to 'manually' connect to computer2 from the Vizard computer:
Code:
viznet.client.connect('192.168.10.1')
the command returns false

I appreciate any suggestions.

Code:
# test to write biopac data to file

import viz
import viznet

if viznet.client.connect('192.168.10.6'):
    print 'Connected' 
	
viz.addNetwork('192.168.10.6')
viznet.server.start(port_in=9999)

import acqserver

viz.go()

###### NETORK SETUP #######
acqServer = None    
useAcqServer = False
###### NETORK SETUP #######

def useAcqServer():
	# setup network connection
	global acqServer, useAcqServer
	try:
		acqServer = acqServer.ACQServer()
		acqServerList = acqServer.findAcqKnowledgeServer()
		
		if not len(acqServerList):
			useAcqServer = False
			return
		
		# set ip and port
		(ip,port) = acqServerList[0]
		acqServer.setAcknowledgeServerInfo(ip,port)
		
		#work around for acqserver problems
		acqServer.changeDataConnectionMethod("multiple")
		acqServer.changeTransportType("udp")
		
		acqServer.changeMostRecentSampleValueDeliveryEnabled("calc",0,True)
		
	except Exception:
		useAcqServer = False
		return 
	
	useAcqServer = True

################################# MAIN CODE #################################

useAcqServer()

################################# END MAIN CODE #############################

################################# Callback functions ########################

def onKeyDown(key):
	print acqServer.getMostRecentSampleValue("calc",0) # Print the incoming data point
	print "Z(t) Raw: " , acqServer.getMostRecentSampleValue("calc",1) 
	print "ECG: " , acqServer.getMostRecentSampleValue("calc",2)	
	print "Blood Pressure: " , acqServer.getMostRecentSampleValue("calc",4)
	print "dZ/dt: " , acqServer.getMostRecentSampleValue("calc", 41)

viz.callback(viz.KEYDOWN_EVENT,onKeyDown)
Reply With Quote
  #2  
Old 11-16-2011, 05:26 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Do you have any virus scanners/firewalls enabled? If so, try disabling those.
Reply With Quote
  #3  
Old 07-18-2012, 06:16 AM
amaze12 amaze12 is offline
Member
 
Join Date: Feb 2012
Posts: 7
I also cannot find the acqserver module, can you tell me how you fixed it?
Reply With Quote
  #4  
Old 08-02-2013, 04:37 AM
chezz chezz is offline
Member
 
Join Date: Aug 2013
Posts: 1
hello..
i am facing the same problem... even disabled the firewall but still face problem in importing acqserver.
please help if your problem was solved.
Reply With Quote
  #5  
Old 07-27-2018, 11:15 AM
Vishav Vishav is offline
Member
 
Join Date: Jun 2017
Posts: 57
Anyone get any solution. I am facing same problem.

ImportError: No module named acqserver
Reply With Quote
Reply

Tags
biopac, networking

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
Biopac Parallel Port Writer Error: missing INPOUT32.dll mmatlock Vizard 1 06-30-2010 02:04 PM
Networking Multiple Computers Ikslawok Vizard 1 02-23-2010 09:08 AM
Two questions (networking) TrashcanPatrol Vizard 5 05-07-2009 01:46 PM
networking nickyee Vizard 1 09-18-2006 04:53 PM
active avatar functions while networking crazyrusso Vizard 1 11-18-2004 01:08 PM


All times are GMT -7. The time now is 04:51 AM.


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