Search found 143 matches
- Wed Feb 22, 2012 2:29 am
- Forum: SUB-20 General Discussion
- Topic: Matlab SPI write with ESS
- Replies: 3
- Views: 23761
Re: Matlab SPI write with ESS
Hi sanjosanjo, The SPI_Transfer_Ess method accepts two parameters: data array and a control string. The SS is controlled by specifying 0,1,2,3 in the control string. See the 3.5.3 sub_spi_transfer_ess section of the User Manual for more info. We are going to add the _Ess methods into the .NET docume...
- Wed Jan 25, 2012 4:41 am
- Forum: SUB-20 General Discussion
- Topic: Matlab loadlibrary, reading from SUB20
- Replies: 3
- Views: 10381
Re: Matlab loadlibrary, reading from SUB20
Yes, these warnings due to the newer version of the header file. Starting MATLAB 7.6(R2008a), you can use the function 'IsNull' to verify if a LIBPOINTER is pointing to a null reference. For previous product releases use a try-catch block http://www.mathworks.com/support/solutions/en/data/1-4WQ8HZ/i...
- Tue Jan 24, 2012 6:05 am
- Forum: SUB-20 General Discussion
- Topic: Matlab loadlibrary, reading from SUB20
- Replies: 3
- Views: 10381
Re: Matlab loadlibrary, reading from SUB20
Hi sanjosanjo, Here is the code you can use loadlibrary('C:\WINDOWS\system32\sub20.dll','C:\projects\sub20\matlab\libsub.h'); hSub20=calllib('sub20', 'sub_open', libpointer); buf = 'a':'z'; [size, dummy, SerialNumber] = calllib('sub20', 'sub_get_serial_number', hSub20, buf, length(buf) ); status=cal...
- Sun Jan 22, 2012 3:20 pm
- Forum: SUB-20 General Discussion
- Topic: Visual C# Express 2010
- Replies: 1
- Views: 10066
Re: Visual C# Express 2010
Hi Russ, ...It would be nice if the examples were in C# and not just VB. vb.net and C# are very similar in terms of usage of the .NET components. All the differences fall into data types related and language syntax related. Let us know what vb.net sample you have difficulties with and we will provid...
- Sun Dec 04, 2011 6:09 pm
- Forum: SUB-20 General Discussion
- Topic: LUA support
- Replies: 0
- Views: 9663
LUA support
From the wiki page: Lua is a lightweight multi-paradigm programming language designed as a scripting language with extensible semantics as a primary goal. Lua has a relatively simple C API compared to other scripting languages. see http://www.lua.org Below is a simple lua-script which demonstrates u...
- Sat Oct 29, 2011 2:37 am
- Forum: SUB-20 General Discussion
- Topic: Debugging SUB-20 applications
- Replies: 0
- Views: 11041
Debugging SUB-20 applications
In some rare cases, when a problem is not obvious we ask our customers to provide us with a trace log of communication between SUB-20 board and a host PC. Capturing trace log under MS Windows This can be achieved by using the SUB-20 tool GUI application, included into the standard SUB-20 software pa...
- Sun Oct 09, 2011 3:02 am
- Forum: SUB-20 General Discussion
- Topic: Python support?
- Replies: 27
- Views: 89021
Re: Python support?
Hello Mike
There is nothing hidden in the sub20.dll. The SPI_SLAVE and all the other constants are C/C++ preprocessor definitions, located in the C:\Program Files\SUB-20\inc\libsub.h header file. You can use this file as a reference.
There is nothing hidden in the sub20.dll. The SPI_SLAVE and all the other constants are C/C++ preprocessor definitions, located in the C:\Program Files\SUB-20\inc\libsub.h header file. You can use this file as a reference.
- Tue Oct 04, 2011 4:40 am
- Forum: SUB-20 General Discussion
- Topic: Agilent VEE support
- Replies: 2
- Views: 22914
Re: Agilent VEE support
This VEE Sample demonstartes using of the SUB-20 SPI interface.
- Tue Oct 04, 2011 4:36 am
- Forum: SUB-20 General Discussion
- Topic: Agilent VEE support
- Replies: 2
- Views: 22914
Agilent VEE support
Agilent VEE is a graphical dataflow programming software development environment from Agilent Technologies for automated test, measurement, data analysis and reporting(Wiki). There is a good document http://cp.literature.agilent.com/litweb/pdf/E2120-90011.pdf which describes using the VEE. The "7. U...
- Fri Sep 23, 2011 2:06 am
- Forum: SUB-20 General Discussion
- Topic: sensor interrupts
- Replies: 1
- Views: 7070
Re: sensor interrupts
Hi hatepod,
The SUB-20 doesn't support interrupts currently. It has an "edge detector", but you still need to call a function to read the detection result, i.e basically the same polling. The only advantage is that this functionality can be used for edge triggered interrupts detection
The SUB-20 doesn't support interrupts currently. It has an "edge detector", but you still need to call a function to read the detection result, i.e basically the same polling. The only advantage is that this functionality can be used for edge triggered interrupts detection