12-30-2005 08:50 AM
I have trouble to communicate with a USB device thought call library function. My cypress chip is installed to the ezusb.sys driver and is be able to communicate with the ezusbsys.h file. (Have communicated with my device thought a CIN but the program shown not stable enough)…
I have read trough some parts of the “Using External Code in LabVIEW” which briefly describes how to act:
“Instructions on including a header file xbus.h. Although LabVIEW
does not permit you to include such header files, you can open header
files and extract information about function prototypes and constants.”
Nothing that I have tried with have worked and hopping now that someone else has worked with something similar.
Links, examples and tips are happily received.
Best regards,
Jonny
12-30-2005 09:26 AM
12-30-2005 03:33 PM
@Josv wrote:Hello,
I have trouble to communicate with a USB device thought call library function. My cypress chip is installed to the ezusb.sys driver and is be able to communicate with the ezusbsys.h file. (Have communicated with my device thought a CIN but the program shown not stable enough)…
I have read trough some parts of the “Using External Code in LabVIEW” which briefly describes how to act:
“Instructions on including a header file xbus.h. Although LabVIEW
does not permit you to include such header files, you can open header
files and extract information about function prototypes and constants.”
Nothing that I have tried with have worked and hopping now that someone else has worked with something similar.
Links, examples and tips are happily received.
Best regards,
Jonny
12-31-2005 06:15 AM
> You mentioned having made a CIN but that it's not "stable enough". Can you elaborate?
See a previous message that I posted:
http://forums.ni.com/ni/board/message?board.id=170&message.id=158491
>I really doubt that the ezusbsys.h file is all that is needed for an application to call this device driver.
From discussion with
Thanks for your opinions...
/Jonny
12-31-2005 08:33 AM
@Josv wrote:
> You mentioned having made a CIN but that it's not "stable enough". Can you elaborate?
See a previous message that I posted:
http://forums.ni.com/ni/board/message?board.id=170&message.id=158491
>I really doubt that the ezusbsys.h file is all that is needed for an application to call this device driver.
From discussion with
Thanks for your opinions...
/Jonny
11-21-2006 03:03 AM
Hai,
I am Pavan Ram Kumar Somu.
I am new to Labview, currently I am working on MVB Interface.
I need to access the API functions from *.dll file in Labview, as of now , I am doing this with Call function Library node in Labview but it does not support the following data types like
1. Pointer Arguments(To which memory it points in Labview)
2. function pointers Arguments
3 .pointers in structures and pointer structures in structures and many other data types.
Please Answer the below queries also:
1. How to pass pointer arguments to API functions in DLL and how to collect pointer
return types from API functions in DLL
2. How to pass structure arguments to API functions in DLL and how to collect structure
return types from API functions in DLL
3. How to use callback functions(nothing but function pointers) in Labview and how to
collect callback fuctions return types from API functions in DLL
I need your help while passing these datatypes to API functions in DLL from labview.
Suggest me if there is any other alternative for implementing this task.
I am referencing some examples here:
Examples:
I)
Unsigned short int gf_open_device(void *p_device_config, unsigned long int client_life_sign_timeout, unsigned short int *device_error)
void *p_device_config: How to access/pass these arguments in LabView and to which memory location it points in LabView.
II) #include <windows.h>
#include <process.h>
HANDLE rcvEvent0, rcvEvent1;
/* Function call*/
CanGetReceiveEvent(handle[0], &rcvEvent0);
Above is a piece of C code, Now I want to use HANDLE datatype which is windows based, how to use these type in the LABVIEW.
05-08-2008 01:37 AM
Hello Somu,
Were you able to get data from the void* () functions?
>3. How to use callback functions(nothing but function pointers) in Labview and how to
> collect callback fuctions return types from API functions in DLL
Could you please attach if you have any example or solutions?
Thanks,
Omer