About this guide
This guide is for new users of the Vicon DataStream SDK on Windows who want to get started with the Python client. Use of the C++, .NET and C APIs is very similar, but the details are outside the scope of this guide.
This information is included:
Table of Contents | ||
---|---|---|
|
This guide is for you if you are new to both Python and the DataStream to help you to get started receiving DataStream data from Vicon products.
For full documentation, see : the Vicon DataStream SDK Developer's Guide.
Attachments | ||
---|---|---|
|
Choose the correct version
...
- For 64-bit Windows:
..\Program Files\Vicon\DataStream SDK\Win64\Python
or
- For 32-bit Windows:
..\Program Files (x86)\Vicon\DataStream SDK\Win32\Python
...
If you don't have Python installed, you can download it from the Python website. . For new users (and if you do not have a specific requirement for an earlier version), the latest version of Python is recommended.
...
Code Block |
---|
from vicon_dssdk import ViconDataStream client = ViconDataStream.Client() frames = [] print( 'Connecting' ) while not client.IsConnected(): print( '.' ) client.Connect( 'localhost:801' ) try: while client.IsConnected(): if client.GetFrame(): #store data here frames.append(client.GetFrameNumber() ) except ViconDataStream.DataStreamException as e: print( 'Error', e ) #do something here print(frames) |
...
You can find further documentation on available functionality in the SDK in : the For full documentation, see Vicon DataStream SDK Developer's Guide.
Attachments | ||
---|---|---|
|
Further Python examples and detailed documentation can be found inline in the Python SDK directory (the default installation path is C:\Program Files\Vicon\DataStream SDK\Win64\Python).
...