HyperNext Studio

HyperNext Studio => General => Topic started by: richmond62 on March 18, 2015, 06:11:01 PM

Title: Output to USB connected device
Post by: richmond62 on March 18, 2015, 06:11:01 PM
I want to control a "turtle" connected to my computer Mac or Windows via a USB device. Is there a way to detect the USB device and write to it from HyperNext?
Title: Re: Output to USB connected device
Post by: Malkom on March 18, 2015, 09:42:03 PM
I want to control a "turtle" connected to my computer Mac or Windows via a USB device. Is there a way to detect the USB device and write to it from HyperNext?


Its possible to use USB input/output on Windows platform. However, on the Mac platform it was unreliable so disabled.

Project 34 - "USB Devices" has some basic USB monitoring of a device. You need to know the Product and Vendor number of the USB device.
Project 33 - "Lightstone" is a detailed USB project for monitoring heart rate.

Chapter 29 of the Language Reference has details on USB, including procedures/functions.
Title: Re: Output to USB connected device
Post by: richmond62 on March 19, 2015, 07:26:01 AM
Thanks.
Title: Re: Output to USB connected device
Post by: richmond62 on March 19, 2015, 10:38:01 AM
"on the Mac platform it was unreliable" in what way?

Presumably (?????) RealBASIC could/can do this?  Certainly, if so, HyperNext should also be able to.
Title: Re: Output to USB connected device
Post by: Malkom on March 19, 2015, 11:51:17 AM
"on the Mac platform it was unreliable" in what way?

Presumably (?????) RealBASIC could/can do this?  Certainly, if so, HyperNext should also be able to.

Unfortunately RB couldn't - so I needed some plugin code to do it - algorithm worked fine on Windows but lots of data framing errors on Mac - just need time to work on it.
Title: Re: Output to USB connected device
Post by: richmond62 on March 19, 2015, 07:06:17 PM
What chance version 4?
Title: Re: Output to USB connected device
Post by: richmond62 on March 27, 2015, 06:16:24 PM
Waht about connecting to a USB device via a Windows API?