Search found 143 matches

by serg
Tue May 11, 2010 8:24 pm
Forum: SUB-20 General Discussion
Topic: Using SPI_Transfer() Method In C#
Replies: 13
Views: 22114

Re: Using SPI_Transfer() Method In C#

Hi Red,
You are right. This was our bug in .NET component v1.2.4. It has been fixed however in 1.2.5 or 1.2.6. Just download and install the latest version of the SUB-20 software. This package contains fixed .NET component v1.2.7.
Regards
by serg
Tue May 11, 2010 2:58 am
Forum: SUB-20 General Discussion
Topic: Using SPI_Transfer() Method In C#
Replies: 13
Views: 22114

Re: Using SPI_Transfer() Method In C#

Hi Red, I am not C# expert, so I may be wrong here, but according to the MSDN http://msdn.microsoft.com/en-us/library/14akc2c7(VS.71).aspx The ref method parameter keyword on a method parameter causes a method to refer to the same variable that was passed into the method. Any changes made to the par...
by serg
Mon May 10, 2010 1:50 am
Forum: SUB-20 General Discussion
Topic: Using SPI_Transfer() Method In C#
Replies: 13
Views: 22114

Re: Using SPI_Transfer() Method In C#

Hi,

What exactly doesn't work in our C# sample code? If you need to send and receive data just replace the SPI_Write call with the SPI_Transfer call, so the data from the data array will be sent with SS2 asserted and on return received data will be placed into the same array

Regards
by serg
Wed Apr 28, 2010 2:49 am
Forum: SUB-20 General Discussion
Topic: sub-20 tool manual/guide
Replies: 9
Views: 16435

Re: sub-20 tool manual/guide

>>GPIO header pin 1 and 2? Connect pins 1(SCL),2(SDA),34(GND) to corresponding pins on your test platform. what kinds of problems should be take care Any problems of interfacing two boards, i.e wires length, voltage levels, ground etc. what does the "Issue I2C" buttons (start and stop) mean? Issue ...
by serg
Tue Apr 06, 2010 3:19 am
Forum: SUB-20 General Discussion
Topic: SUB-20 based Universal EEPROM Programmer
Replies: 2
Views: 16539

Re: SUB-20 based Universal EEPROM Programmer

subtool ver1.6.8 beta binary You can extend the internal memory device list by 1) modifying the subtool application, i.e adding appropriate structure to the ProgDialog.cpp source file /* i2c */ mem_dev_i2c_t def_i2c_dev[]= { {"AT24C01", 128, 8, 0x50}, {"AT24C01", 128, 8, 0x50}, {"AT24C02", 256, 8, 0...
by serg
Thu Apr 01, 2010 3:16 am
Forum: SUB-20 General Discussion
Topic: Using SUB-20 .NET interface in Matlab
Replies: 2
Views: 26712

Re: Using SUB-20 .NET interface in Matlab

Here you go %----------------------------------------------------------------------------------------------------------- % This sample code demonstarates accessing the SUB-20 GPIO pins NET.addAssembly('C:\Program Files\SUB-20\bin\sub20dnc.dll'); sub20 = Xdimax.Sub20(); % simulate do { ... } while(0)...
by serg
Tue Feb 02, 2010 6:31 am
Forum: SUB-20 General Discussion
Topic: Anyone have a copy of sub20.dll?
Replies: 1
Views: 5678

Re: Anyone have a copy of sub20.dll?

The sub20.dll is located under windows/system32 directory and it is a part of the regular installation package, so just download the latest software from here
http://www.xdimax.com/sub20/sub20.html
and install it
by serg
Fri Dec 25, 2009 8:42 pm
Forum: SUB-20 General Discussion
Topic: SUB-20 and NI LabView
Replies: 6
Views: 225336

SUB-20 and NI LabView

There are two ways to integrate the SUB-20 multi interface adapter into the NI LabView environment. First method is well known - direct calling MS Windows dynamic link libraries (dlls), i.e in order to use the sub20.dll API you should create a SUB-20 LV driver by defining all the SUB-20 API function...
by serg
Sun Dec 13, 2009 3:38 am
Forum: SUB-20 General Discussion
Topic: I2C read in C#
Replies: 1
Views: 6935

Re: I2C read in C#

You don't need the "ref" keyword and in case of MemoryAddressSize==0 you can pass 0 for the MemoryAddress parameter. byte[] theData = new byte[32]; doesWork = i2cDevice.I2C_Read(device.SlaveAddress, 0, 0, theData); For more information see .NET/SUB-20 documentation and C# sample application under SU...
by serg
Thu Dec 10, 2009 3:44 am
Forum: SUB-20 General Discussion
Topic: LED Status
Replies: 3
Views: 9492

Re: LED Status

red LED - firmware status, - on - idle state, short blink - command received
yellow LED - bootloader status: on - idle state, long blink 50% duty cycle- command received, short blink (20 % DS)- error occured