WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Polhemus Fastrak (https://forum.worldviz.com/showthread.php?t=4794)

williamchappell 09-04-2013 04:15 AM

Polhemus Fastrak
 
Hey, after reading though some of your tutorials I've got the following code:

Code:

import viz
import vizact
import viztracker

viz.setMultiSample(4)
viz.fov(60)
viz.go()

lab = viz.addChild('lab.osgb')

PORT_FASTRAK = 1
fastrak = viz.add('fastrak.dls')

Which gets me the error:
Code:

Loading File: lab.osgb
fastrak.dls                      Polhemus Fastrak v1.0
** ERROR: Failed to connect to Polhemus Fastrak over USB or COM1
** Load Time: 0.26 seconds

The fastrak is working correctly, to my knowledge, as the bundled software can connect and display the data.
Is there anything else I need to do to ensure a connection the the fastrak?

Thanks, Will.

Kevin Chiu 09-05-2013 07:09 AM

Hi,

Can you try this code and see if the Fastrak is connected?
Code:

import viz
import vizact
import viztracker

viz.setMultiSample(4)
viz.fov(60)
viz.go()

lab = viz.addChild('lab.osgb')

polhemus = viz.add('polhemus.dle')
fastrak = polhemus.addFastrak(port=1,baudRate=115200)


williamchappell 09-06-2013 05:02 AM

Hey Kevin, I tried your code, however I'm getting the error:

Code:

Loading File: lab.osgb
polhemus.dle                    Polhemus Extension
** ERROR: Failed to connect to Polhemus Fastrak over USB or COM1
** ERROR: Failed to create extension sensor with polhemus.dle
** Load Time: 0.25 seconds


Kevin Chiu 09-09-2013 04:12 AM

Hi,

What kind of interface you are using for connecting Fastrak with the computer? is that serial port or USB?
Also you may need to check about if the PiMgr application is running at the same time.
If it does, please quit the PiMgr and try to run Vizard again.
If you still run into trouble for connecting Fastark, please let me know.

Thanks.

williamchappell 09-09-2013 05:36 AM

Hey Kevin, we're currently connected via USB.

PiMgr has also been closed before trying to run the code.

Will.

Kevin Chiu 09-12-2013 05:57 AM

Hi Will,

Sorry for the late reply.
It now seems more like an USB driver issue for me, are you using the latest Fastrak USB driver on the computer for connecting the Fastark?

Since we know that older versions of the Fastrak USB driver were unstable with Vizard, I think it will also be good for that if you can contact Polhemus support for checking the version of your USB drivers are the newest one.

Please let me know if you still run into problem even using the latest Fastrak USB driver.
Thanks.

Best Regards,
Kevin

farshizzo 09-18-2013 12:22 PM

Can you try the following code instead:

Code:

polhemus = viz.add('polhemus.dle')
fastrak = polhemus.addFastrak(port=1,baudRate=115200,legacy=False)

We added experimental support for the newer FasTrak protocol and the legacy flag controls whether to use the older or newer protocol.

williamchappell 09-20-2013 07:57 AM

Hey guys, I've tried the latest code, but still get the following error:

Code:

******************************************************************************
** Loading trackingtest.py
******************************************************************************
Loading File: lab.osgb
polhemus.dle                    Polhemus Extension
** NOTIFY: Connected to Unknown device over USB: 1 sensors detected
** ERROR: Failed to connect to a FasTrak: Device not found
** ERROR: Failed to create extension sensor with polhemus.dle
** Load Time: 2.60 seconds


williamchappell 09-25-2013 03:08 AM

Hey, I've been in contact with the guys at Polhemus, and they seem fairly confident that the issue isn't on their end.

Is there anything else I can try?

Thanks.

farshizzo 09-27-2013 10:40 AM

I believe the issue is that the newer Polhemus FasTrak drivers identify themselves as a different device, so our existing plugin is unable to detect them properly (hence the "Connected to unknown device" message). We've updated our plugin to support these newer models. Try downloading/installing the latest version of Vizard and see if it fixes the issue.

williamchappell 09-27-2013 10:41 AM

Thank you for your reply.

I will head into work tomorrow and give it a try!

Will.

williamchappell 09-28-2013 08:49 AM

Thank you! It works like a charm now :D


All times are GMT -7. The time now is 12:45 AM.

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