I can see two possible causes of the problem:
- size of ringbuffer (must be large enough to avoid overflow)
- arithmetics to calculate pointer offset in the ringbuffer
It'll be easier to discuss further possible problems if you'll give an example of your code (especially - place where you calculate ...
Search found 5 matches
- Thu Nov 24, 2005 10:56 am
- Forum: BioSemi Software (ActiView executable)
- Topic: sync channel goes to 0
- Replies: 2
- Views: 13874
- Tue Nov 15, 2005 5:22 pm
- Forum: BioSemi Software (ActiView executable)
- Topic: Using the Labview_DLL.dll to access the USB datastream
- Replies: 9
- Views: 36162
Thanks. information about number of buffered channels in Mk2 system clears things a little :) There still remain a lot of questions on 'daisy chained' mode (the real sequence of pin-channels, touchproofs and sensors from different boxes, the way the system will behave in case of only one box, but in ...
- Sat Nov 05, 2005 1:08 pm
- Forum: BioSemi Software (ActiView executable)
- Topic: Using the Labview_DLL.dll to access the USB datastream
- Replies: 9
- Views: 36162
Re: Accessing the USB port/Receiver
As I've received a number of questions concerning the С++ code, I'll try to answer them here....
The working (I hope) example of this code usage together with brief explanation can be found at
http://diz-vara.mail333.com/ActiveD.zip
READ_MULTIPLE_SWEEPS(m_hAct2,m_pBuf,BUFSIZE*4 ...
The working (I hope) example of this code usage together with brief explanation can be found at
http://diz-vara.mail333.com/ActiveD.zip
READ_MULTIPLE_SWEEPS(m_hAct2,m_pBuf,BUFSIZE*4 ...
- Sun Oct 17, 2004 3:40 pm
- Forum: BioSemi Software (ActiView executable)
- Topic: Using the Labview_DLL.dll to access the USB datastream
- Replies: 9
- Views: 36162
Re: Accessing the USB port/Receiver
Hi, djw!
It seems to me it would be easier to locate an error in your code... There may be many courses...
First, I think that USB driver likes 'round numbers' (in binary sense): so, try to use something like
1024*1024*8 - for 32K buffer (but 8 Ksamples of long words)
Second advice will be to ...
It seems to me it would be easier to locate an error in your code... There may be many courses...
First, I think that USB driver likes 'round numbers' (in binary sense): so, try to use something like
1024*1024*8 - for 32K buffer (but 8 Ksamples of long words)
Second advice will be to ...
- Sat Oct 16, 2004 9:01 am
- Forum: BioSemi Software (ActiView executable)
- Topic: Using the Labview_DLL.dll to access the USB datastream
- Replies: 9
- Views: 36162
Re: Using the Labview_DLL.dll to access the USB datastream
Hi, djw.
It seems to me your are trying to use 'static link' with the DLL, but it's hardly possible withour the proper .Lib.
I would prefer to use 'dinamic loading'. Sorry, but following example will be in VC++
typedef HANDLE (*dOPEN_DRIVER_ASYNC)(void);
typedef unsigned char (*dUSB_WRITE ...
It seems to me your are trying to use 'static link' with the DLL, but it's hardly possible withour the proper .Lib.
I would prefer to use 'dinamic loading'. Sorry, but following example will be in VC++
typedef HANDLE (*dOPEN_DRIVER_ASYNC)(void);
typedef unsigned char (*dUSB_WRITE ...