Hi Rivasd,
The usual approach, in any computer language, to read sockets efficiently is usually
something like this:
1. create a very large input buffer;
2. call 'recv' using that buffer and its dimensioned size;
3. 'recv' fills the buffer with what is immediately available, up to that ...
Search found 70 matches
- Wed Aug 23, 2017 12:54 am
- Forum: BioSemi Software (ActiView executable)
- Topic: TCP server disconnection due to slow reading?
- Replies: 3
- Views: 35938
- Thu May 25, 2017 8:46 pm
- Forum: BioSemi all other topics
- Topic: User written acquisition software problem
- Replies: 6
- Views: 33424
Re: User written acquisition software problem
Hi Barry,
You're right, it doesn't seem to make sense. Perhaps you've stumbled on some subtle difference between
C and C++.
My suggestion ...
You have a C program that works - synctest. Try building your program from that, by first
stripping out what you don't need, testing at various stages that ...
You're right, it doesn't seem to make sense. Perhaps you've stumbled on some subtle difference between
C and C++.
My suggestion ...
You have a C program that works - synctest. Try building your program from that, by first
stripping out what you don't need, testing at various stages that ...
- Wed May 24, 2017 6:11 pm
- Forum: BioSemi all other topics
- Topic: User written acquisition software problem
- Replies: 6
- Views: 33424
Re: User written acquisition software problem
Hi Barry,
As I understand things, here USB_WRITE expects as its 2nd argument the address of a 64 byte array
with all bits on in the first byte and the following 63 bytes all zeros.
The Synctest program is written in C and uses a "cast" to CHAR to set this first byte:
controlBuffer[0] = (CHAR)(-1 ...
As I understand things, here USB_WRITE expects as its 2nd argument the address of a 64 byte array
with all bits on in the first byte and the following 63 bytes all zeros.
The Synctest program is written in C and uses a "cast" to CHAR to set this first byte:
controlBuffer[0] = (CHAR)(-1 ...
- Wed May 24, 2017 12:05 am
- Forum: BioSemi all other topics
- Topic: User written acquisition software problem
- Replies: 6
- Views: 33424
Re: User written acquisition software problem
Hi Barry,
This does not look right:
// init _controlBuffer
for (int i=0; i<64; i++)
_controlBuffer = 0;
Isn't there a subscript missing?
Paul
This does not look right:
// init _controlBuffer
for (int i=0; i<64; i++)
_controlBuffer = 0;
Isn't there a subscript missing?
Paul
- Wed Aug 24, 2016 6:21 pm
- Forum: BioSemi Software (ActiView executable)
- Topic: Windows 10
- Replies: 8
- Views: 37009
Re: Windows 10
Can you roll Win 10 back to a pre driver install restore point?
Paul
Paul
- Wed Apr 23, 2014 8:06 pm
- Forum: BioSemi all other topics
- Topic: Building LabView_DLL from source
- Replies: 3
- Views: 19902
Re: Building LabView_DLL from source
Hi Nikolay,
Before 2009 BioSemi distributed a Windows kernel-mode driver only. Since 2009 BioSemi has been also
distributing a Windows user-mode driver. Most users now install only this user-mode driver.
The kernel-mode driver actually won't install on many newer versions of Windows, for example ...
Before 2009 BioSemi distributed a Windows kernel-mode driver only. Since 2009 BioSemi has been also
distributing a Windows user-mode driver. Most users now install only this user-mode driver.
The kernel-mode driver actually won't install on many newer versions of Windows, for example ...
- Mon Apr 21, 2014 12:11 pm
- Forum: BioSemi all other topics
- Topic: Building LabView_DLL from source
- Replies: 3
- Views: 19902
Re: Building LabView_DLL from source
The BioSemi download package for Windows doesn't contain everything needed to re-build LabView_DLL.dll.
No one has ever wanted to.
Routines BSIF_GET_STRIDE(), BSIF_GET_SYNC() and BSIF_GET_BYTES_PER_MSEC() are all entry points into the
USB ring buffer control routine bsif_winusb.cpp. You would need ...
No one has ever wanted to.
Routines BSIF_GET_STRIDE(), BSIF_GET_SYNC() and BSIF_GET_BYTES_PER_MSEC() are all entry points into the
USB ring buffer control routine bsif_winusb.cpp. You would need ...
- Wed Mar 26, 2014 3:44 am
- Forum: BioSemi Software (ActiView executable)
- Topic: What kind of api is being read into the computer?
- Replies: 3
- Views: 22247
Re: What kind of api is being read into the computer?
Hunkeelin,
For includes, have a look at the code file "labview_dll_synctest.cpp" in the
BioSemi Linux driver download package. I think you need to include only "labview_dll.h",
which is in the download.
For linking, look at what is done for "Labview_DLL_SyncTest" in "Makefile", also in
the ...
For includes, have a look at the code file "labview_dll_synctest.cpp" in the
BioSemi Linux driver download package. I think you need to include only "labview_dll.h",
which is in the download.
For linking, look at what is done for "Labview_DLL_SyncTest" in "Makefile", also in
the ...
- Sat Feb 22, 2014 1:00 am
- Forum: BioSemi all other topics
- Topic: Interfacing with the ActiveTwo digital IO port via C++
- Replies: 1
- Views: 15999
Re: Interfacing with the ActiveTwo digital IO port via C++
Lloyd:
1. You can see a C language initialization sequence that works in the source code for the test program Labview_DLL_SyncTest
that comes in the driver download package. The source code is in file labview_dll_synctest.cpp.
2. With regard to putting the READ_MULTIPLE_SWEEPS call in the class ...
1. You can see a C language initialization sequence that works in the source code for the test program Labview_DLL_SyncTest
that comes in the driver download package. The source code is in file labview_dll_synctest.cpp.
2. With regard to putting the READ_MULTIPLE_SWEEPS call in the class ...
- Wed Nov 14, 2012 4:20 pm
- Forum: BioSemi Hardware
- Topic: Sudden Onset 5000/5001 Errors
- Replies: 10
- Views: 33915
Re: Sudden Onset 5000/5001 Errors
Hi Ben,
I was trying to rule out software - Windows Update was a long shot.
The semaphore timout occurring on the first input buffer means that
there's little or nothing coming in through the USB.
Paul
I was trying to rule out software - Windows Update was a long shot.
The semaphore timout occurring on the first input buffer means that
there's little or nothing coming in through the USB.
Paul
- Wed Nov 14, 2012 12:59 pm
- Forum: BioSemi Hardware
- Topic: Sudden Onset 5000/5001 Errors
- Replies: 10
- Views: 33915
Re: Sudden Onset 5000/5001 Errors
Hi Ben,
Some other things to check:
1. Is this Windows? Are System updates applied automatically? Were there any applied overnight Thursday/Friday?
If yes, can you restore to the prior state using Windows Restore?
2. Try running the test program "Labview_DLL_SyncTest" that comes in the driver ...
Some other things to check:
1. Is this Windows? Are System updates applied automatically? Were there any applied overnight Thursday/Friday?
If yes, can you restore to the prior state using Windows Restore?
2. Try running the test program "Labview_DLL_SyncTest" that comes in the driver ...
- Thu Aug 23, 2012 12:09 pm
- Forum: BioSemi all other topics
- Topic: Actiview beta for linux is avalable
- Replies: 20
- Views: 87682
Re: Actiview beta for linux is avalable
Hi Alex,
MISINFORMATION ALERT!!!
In yesterday's post I said that the first buffer returned by READ_POINTER is at least
262144 bytes in size.
This should have been the half of that: 131072. I have to learn to check the code
BEFORE posting rather than AFTER!!! This value changed several times ...
MISINFORMATION ALERT!!!
In yesterday's post I said that the first buffer returned by READ_POINTER is at least
262144 bytes in size.
This should have been the half of that: 131072. I have to learn to check the code
BEFORE posting rather than AFTER!!! This value changed several times ...
- Wed Aug 22, 2012 11:47 am
- Forum: BioSemi all other topics
- Topic: Actiview beta for linux is avalable
- Replies: 20
- Views: 87682
Re: Actiview beta for linux is avalable
Hi Alex,
The new sync detection logic used to determine the number of channels (size of a
single packet of samples) in the latest version of the synctest program (to
avoid attaching meaning to the speed mode setting) is as follows:
When sampling starts the first two words dropped into the ring ...
The new sync detection logic used to determine the number of channels (size of a
single packet of samples) in the latest version of the synctest program (to
avoid attaching meaning to the speed mode setting) is as follows:
When sampling starts the first two words dropped into the ring ...
- Mon Aug 20, 2012 11:33 am
- Forum: BioSemi all other topics
- Topic: Actiview beta for linux is avalable
- Replies: 20
- Views: 87682
Re: Actiview beta for linux is avalable
Hi Alex,
A delayed reply - I was away from the internet last week.
My understanding of the situation is this:
A set of samples from one sweep of all channels is always preceeded by a sync word and a
status word. The sync word has the hexidecimal value ffffff00 and the status word contains,
among ...
A delayed reply - I was away from the internet last week.
My understanding of the situation is this:
A set of samples from one sweep of all channels is always preceeded by a sync word and a
status word. The sync word has the hexidecimal value ffffff00 and the status word contains,
among ...
- Fri Aug 10, 2012 2:23 am
- Forum: BioSemi all other topics
- Topic: Actiview beta for linux is avalable
- Replies: 20
- Views: 87682
Re: Actiview beta for linux is avalable
Alex,
The modified labview_dll_synctest.cpp is needed only if you have the newest
Biosemi hardware. Again, it hasn't been tested with the new hardware but it
does still work with the older hardware. The program can be used on Windows,
Linux or Mac, in place of the version included in official ...
The modified labview_dll_synctest.cpp is needed only if you have the newest
Biosemi hardware. Again, it hasn't been tested with the new hardware but it
does still work with the older hardware. The program can be used on Windows,
Linux or Mac, in place of the version included in official ...
- Tue Aug 07, 2012 12:01 am
- Forum: BioSemi all other topics
- Topic: Actiview beta for linux is avalable
- Replies: 20
- Views: 87682
Re: Actiview beta for linux is avalable
Alex,
1. My guess is that you have the environment variable "PKG_CONFIG_PATH" defined and
that is causing the mixing of the 32 and 64 bit objects. You may have defined this variable
if you built the 64 bit software in the same login session that you are using to build the
32 bit software. Try ...
1. My guess is that you have the environment variable "PKG_CONFIG_PATH" defined and
that is causing the mixing of the 32 and 64 bit objects. You may have defined this variable
if you built the 64 bit software in the same login session that you are using to build the
32 bit software. Try ...
- Mon Aug 06, 2012 6:20 pm
- Forum: BioSemi all other topics
- Topic: Actiview beta for linux is avalable
- Replies: 20
- Views: 87682
Re: Actiview beta for linux is avalable
Alex,
Are you still having trouble with the library?
Paul
Are you still having trouble with the library?
Paul
- Fri Aug 03, 2012 6:43 pm
- Forum: BioSemi all other topics
- Topic: Actiview beta for linux is avalable
- Replies: 20
- Views: 87682
Re: Actiview beta for linux is avalable
Alex,
Perhaps this is what you need to install: glibc-devel.i686
Taken from: http://stackoverflow.com/questions/7412 ... -directory
Paul
Perhaps this is what you need to install: glibc-devel.i686
Taken from: http://stackoverflow.com/questions/7412 ... -directory
Paul
- Fri Aug 03, 2012 5:49 pm
- Forum: BioSemi all other topics
- Topic: Actiview beta for linux is avalable
- Replies: 20
- Views: 87682
Re: Actiview beta for linux is avalable
Alex,
Your problem seems to be that your version of RedHat 64 doesn't have the 32 bit libraries and development support packages installed.
To compile and/or run 32 software you will need them. They can probably by added using "yum". It could be tedious adding what you
need one-by-one. Perhaps ...
Your problem seems to be that your version of RedHat 64 doesn't have the 32 bit libraries and development support packages installed.
To compile and/or run 32 software you will need them. They can probably by added using "yum". It could be tedious adding what you
need one-by-one. Perhaps ...
- Thu Aug 02, 2012 8:00 pm
- Forum: BioSemi all other topics
- Topic: Open source MATLAB API
- Replies: 21
- Views: 184632
Re: Open source MATLAB API
Alex,
1. A disclaimer: I have never used Matlab.
2. "liblabview_dll.so" is a link to the real file which is "liblabview_dll.so.0.0.1". Your loadlibrary may not be
smart enough to follow the link. Try using the actual filename rather than the link name.
3. There is a line missing in the INSTALL ...
1. A disclaimer: I have never used Matlab.
2. "liblabview_dll.so" is a link to the real file which is "liblabview_dll.so.0.0.1". Your loadlibrary may not be
smart enough to follow the link. Try using the actual filename rather than the link name.
3. There is a line missing in the INSTALL ...
- Mon Jul 09, 2012 4:16 pm
- Forum: BioSemi all other topics
- Topic: Install 32 bit USB drivers on 64 bit windows 7.
- Replies: 8
- Views: 35486
Re: Install 32 bit USB drivers on 64 bit windows 7.
Sandeep,
On a 64 bit system install the 64 bit drivers, even if your programs are 32 bits.
Paul
On a 64 bit system install the 64 bit drivers, even if your programs are 32 bits.
Paul
- Wed Oct 26, 2011 2:17 pm
- Forum: BioSemi all other topics
- Topic: Actiview beta for linux is avalable
- Replies: 20
- Views: 87682
- Wed Oct 19, 2011 12:27 am
- Forum: BioSemi Software (LabVIEW programming)
- Topic: Developing ActiView with LabView 2010 for mac
- Replies: 13
- Views: 107009
- Mon Oct 10, 2011 1:37 am
- Forum: BioSemi Software (LabVIEW programming)
- Topic: Developing ActiView with LabView 2010 for mac
- Replies: 13
- Views: 107009
- Thu Oct 06, 2011 1:19 pm
- Forum: BioSemi Software (LabVIEW programming)
- Topic: Developing ActiView with LabView 2010 for mac
- Replies: 13
- Views: 107009
- Sun Oct 02, 2011 2:15 am
- Forum: BioSemi Software (LabVIEW programming)
- Topic: Developing ActiView with LabView 2010 for mac
- Replies: 13
- Views: 107009
- Wed Sep 07, 2011 8:31 pm
- Forum: BioSemi Software (LabVIEW programming)
- Topic: Error when ringbuffer size isn't a multiple of bytes/sample
- Replies: 4
- Views: 56142
- Wed Sep 07, 2011 5:57 pm
- Forum: BioSemi Software (LabVIEW programming)
- Topic: Error when ringbuffer size isn't a multiple of bytes/sample
- Replies: 4
- Views: 56142
- Fri Aug 26, 2011 9:18 pm
- Forum: BioSemi Software (LabVIEW programming)
- Topic: How to check if the biosemi is not switched on?
- Replies: 7
- Views: 69225
- Mon Aug 22, 2011 1:56 pm
- Forum: BioSemi Software (LabVIEW programming)
- Topic: How to check if the biosemi is not switched on?
- Replies: 7
- Views: 69225