ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

strange problem of calling library function node in labview 2010 and 2011

one year ago,I develop a program to usb device data and it works well,in labview 8.6 or 2009(win xp).Recently, When I test the program in labview 2010 and labview 2011(win xp).,the program always crash immediately.I check the program and find main problem is in call library function node. In my program,I use labview 2009 library for the USBExpress driver for Silicon Labs USB MCU's from:https://decibel.ni.com/content/docs/DOC-9522,for example, 2 functions SI_OPEN and SI_READ can not work well. the header definition of SI_OPEN and SI_READ is: SI_STATUS WINAPI SI_Open( DWORD dwDevice, HANDLE* cyHandle ); SI_STATUS WINAPI SI_Read( HANDLE cyHandle, LPVOID lpBuffer, DWORD dwBytesToRead, LPDWORD lpdwBytesReturned, OVERLAPPED* o = NULL ); the SI_STATUS is equivalent to int type. orignally, for HANDLE * in SI_Open, the parameter type in call library function node is numeric, data format is unsigned 32 bit integer ,and pass pointer to value. for HANDLE in SI_Read, the parameter type in call library function node is numeric, data format is unsigned 32 bit integer ,and pass value.The program works well in labview 8.6&2009,however,crash in labview 2010 &2011. later,I debug the program, for HANDLE *, I choose parameter type in call library function node as adapt to type, data format is point to Handles.for HANDLE, I choose parameter type in call library function node as adapt to type, data format is Handles by Value.Crash not happend in labview 2010&2011,however,it cannot read any data from from USB device correctly as before.I can not find the reason. Dear friends,I need your help to answer the problem. Thank you.
0 Kudos
Message 1 of 1
(2,707 Views)