scripting_serialPort??
Now thatI have the arduino board and script working properly, the time has come to tackle the rhino script to open connection with the serial port. As previously posted, vbscript and rhinoscript has no builtin functionality to access this information. The additional vbscript functionality is made possible by Stylianos Dritsas, who has completed some work in this area previously.
It is a case of downloading the additional library, and installing them on the computer, although this proved to be a little harder than first though, needing things to be added to the system registory and a script loaded in rhino. After a lot of fiddeling around, it seems to be setup correctly.
With the limited help files on the support page for the libraries, I have written a script that in theory should allow rhino to read values from the serial port, and print them on screen (once per script at this stage). With all of the scripting errors now elimated it is returning a value, but it is always the number 1. I think there could be a problem with arduino sending the data correctly to the live port or, more likely, my script isn’t addressing the port correctly.
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Leave a Reply