WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Serial communication with arduino uno (https://forum.worldviz.com/showthread.php?t=4939)

sunil.nair 02-03-2014 09:13 PM

Serial communication with arduino uno
 
Hi,

Could you suggest me a way to send a character from vizard to arduino uno through serial communication using pyserial. In arduino i read it by:

void setup() {
Serial.begin(9600); // opens serial port, sets data rate to 9600 bps
}
void loop() {
if (Serial.available() > 0) {
Serial.print("I received: ");
}}

sunil.nair 02-03-2014 09:14 PM

COuld you help me with the forresponding code for vizard? I have installed pywin and pyserial packages.

Jeff 02-05-2014 03:24 AM

The pySerial article in our knowledge base has some example code that opens a port and writes some data.


All times are GMT -7. The time now is 04:17 PM.

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