Search found 4 matches

by mbaybutt
Thu Mar 03, 2011 1:33 am
Forum: SUB-20 General Discussion
Topic: GPIO_Read and Matlab .NET interface
Replies: 1
Views: 7689

GPIO_Read and Matlab .NET interface

Hello, I am attempting to use the .NET interface in Matlab to read the GPIO pins. I have been successful in using the GPIO_SetConfig and GPIO_Write (confirmed by reading the settings with the SUB-20 tool); however, when I call the GPIO_Read function the variable I pass it does not appear to update w...
by mbaybutt
Mon Sep 13, 2010 8:19 pm
Forum: SUB-20 General Discussion
Topic: Receiving Error 18 when using Matlab .NET... normal???
Replies: 3
Views: 9165

Re: Receiving Error 18 when using Matlab .NET... normal???

Hi Serg, Thank you for your speedy reply (apologies for my lengthy speed of reply). I am somewhat new to the 'callback' functionality in Matlab myself, but with a slight modification to the uicontrol function call (calling 'run=0;' as opposed to my 'sub20_close_handle_error(sub20)'), the simple piec...
by mbaybutt
Tue Aug 31, 2010 5:07 pm
Forum: SUB-20 General Discussion
Topic: MATLAB & NET. Package
Replies: 10
Views: 21253

Re: MATLAB & NET. Package

For what it is worth, I just received a SUB-20 and didn't have any problems using the .NET functionality in Matlab. In the more recent versions of Matlab (I'm running R2009b) it is a standard package that is included (no Netbuilder needed). If you would like a quick test script with the LCD, I poste...
by mbaybutt
Tue Aug 31, 2010 4:58 pm
Forum: SUB-20 General Discussion
Topic: Receiving Error 18 when using Matlab .NET... normal???
Replies: 3
Views: 9165

Receiving Error 18 when using Matlab .NET... normal???

Hello, I have written a simple script to test the communication and general interface to the SUB-20 with the LCD in Matlab using the .NET functionality. When I attempt to close the device I receive an error number 18 from the "sub20.GetLastError()" function call. This number is not documented in the...