Note: biopacndt.py is included with the NDT license; contact email@example.com if needed.
The connection to AcqKnowledge can be made locally or over the network. As long as the Respond to auto-discovery requests option is enabled in AcqKnowledge there is no need to specify a remote machine’s IP address in Vizard.
If you have AcqKnowledge installed, the biopacndt.py file is found in the following location: C:\Program Files\BIOPAC Systems, Inc\AcqKnowledge\Network Data Transfer Examples\Python 2\source Copy and paste the file to the Vizard Python folder: (C:\Program Files\WorldViz\Vizard\python). Placing files in the Vizard Python folder will ensure each Vizard project can load them.
Software setup in AcqKnowledge
Enable the NDT Network Data Transfer protocol in AcqKnowledge in order to stream data to and from Vizard. (NDT is a licensed feature add-on.)
In AcqKnowledge, go to Display > Preferences > Networking.
Select the checkboxes for Enable network data transfer and Respond to auto-recovery requests.
Restart the AcqKnowledge software to activate the Network Data Transfer.
This configuration only needs to be done once.
To see event markers in AcqKnowledge, have the events bar visible.
You can also toggle to show the “Event Palette” to see a timeline of events.
Vizard to AcqKnowledge
In the code below, Vizard sends a signal to drop an event marker in AcqKnowledge:
Press A to toggle acquisition
Press spacebar to drop a marker
# Connect to the AcqKnowledge server
acqServer = biopacndt.AcqNdtQuickConnect()
viz.log(viz.LOG_ERROR, 'Exiting application, no AcqKnowledge servers found')
#You can change the label “stimulus” to whatever you want the event to be labeled as