I have managed to create a basic Galvanic Skin response system, using Microsoft Visual Studio and deployed onto the FEZ. The FEZ domino is now looping and returning the output values I need. However, my next task is to try and read the data in MATLAB, which does have limited ,NET compatibility. Does anyone know of any examples of this, or perhaps what would be the best method to do this?
Wow, Thanks, I did not expect it to be that easy!!! You might say it was Frikin EZ
My next challenge is to draw the data off the device. I was using the Debug.Print statement but I can’t seem to get it to display anything as yet, in MATLAB. The COM3 port is open and it gives me the attributes of the device/port. Is Debug the best way?
‘Debug.Print’ prints to the console, i.e. the Output tab in Visual Studio, unless you redirect it elsewhere. I don’t think that is your best solution though. I would look at first sending simple ASCII text over the com port and try receiving it in Matlab. Take a look at some of the projects over at (link removed) for ideas. Also, don’t forget about the resources available here: http://www.tinyclr.com
The free beginners book on that page also has some example code on using the serial port.
Isn’t there a simple way for the host (PC) to connect to the device (FEZ Domino) using the existing USB connection and have them communicate with a stream?
Just being able to connect to the USB device and grab the debug info would be enough. the MFDeploy program can do it, so is there a class one can use to connect to the device and access the debug information stream?
You can use USB client (device) to transfer data but then you can’t use it fro debugging. If you debug using serial then you can stream the data over serial!
I think, for such a connection, the FEZ goes from USB (4pin) to serial. So on the FEZ side its a 4 pin USB and on the PC side its a serial port. I don’t have a serial port on my laptop so even the USB to serial cable would be of no use. Is that what you meant? Please, please correct me if I’m wrong!
What I need is to consider what Mez suggested and try and pull information from the FEZ through the USB, perhaps through the debug channel; or any other suggestions?
My Laptop connections are thus: Firewire, USB, S-Video, LAN, Modem, WiFi and both digital and analogue monitor connections. There is blue-tooth too. Could that be used??? Perhaps if I attached a blue-tooth dongle to the FEZ???
Hello, with extreme caution and a happy smile I was wandering how much experience one needs to have access to the Beta SDK referred to in “Topic: Domino as a USB device”.
Just a heads up… After setting the baud rate to be the same on both the output port on the FEZ and the input serial port on MATLAB, I am now able to read the data flawlessly inside MATLAB.
Thanks for all your help on this… I will add this on my other post too so it ties both problems together.