02-27-2008 07:13 AM
Here is the info on the DLL provided by Symbol:
Syntax
SSIDLL_API int __stdcall SetDecodeBuffer(int nComPort, unsigned char *pData, long
max_length);
where:
.
nComPort is the COM port number used in the call to SSIConnect.
pData is a pointer to the destination buffer for decode data returned from thescanner
.
max_length is the size in bytes of the destination bufferPlease offer guidance on this little snippet from the LabView Support pages...
Note If the function you are calling returns a data type not listed, choose a return data type the same data size as the one returned by the function. For example, if the function returns a char data type, use an 8-bit unsigned integer. A call to a function in a DLL cannot return a pointer because there are no pointer types in LabVIEW. However, you can specify the return type as an integer that is the same size as the pointer. LabVIEW then treats the address as a simple integer, and you can pass it to future DLL calls.
02-27-2008 07:59 AM
Hi poethomer,
you can use the "rtlMoveMemory" function from the Kernel32.ddl to copy the data into a LabView buffer.
Mike
02-27-2008 09:15 AM
Mike,
Thanks for the response. I'm a little rusty and trying to help an associate solve this problem. Can you elaborate on "copy the data into a LabView buffer" a little?
02-27-2008 09:30 AM - edited 02-27-2008 09:30 AM
02-27-2008 10:35 AM
02-27-2008 10:47 AM
02-27-2008 03:04 PM
Hi poethomer,
here is what i thought what can help you.
Mike
02-27-2008 04:15 PM
#include "extcode.h"
#include <string.h>
_declspec(dllexport) void ReadScanner(int comPort, unsigned char *input, int length);
_declspec(dllexport) void ReadScanner(int comPort, unsigned char *input, int length)
{
strcpy(input, "SCANNERTEXT");
}
12-12-2009 12:14 AM
Hi,
I am running into similar kind of issue....how did you solve your problem????
Please post your solution if possible..that would be really helpfull to me..............
I am also using SSI DLL to communicate with symbol MS 4404 scanner..........
Thanks in advance...............
12-12-2009 09:29 AM