12-02-2010 07:01 AM
HI!
I would like to convert the attachment to labview.
This file is used in sdlc communication.
Request someone to really help me
12-02-2010 07:43 AM
I'm not sure I understand what you are looking for.
The code that you provided is how you call a dll in LabVIEW.
Are you trying to avoid using a dll and implement the source code in LabVIEW? If so, then you would need to show the source code.
But there is nothing wrong with calling a dll within LabVIEW as you have coded.
Or are you having difficulties while executing the code?
Again, I'm not sure I understand what you are looking for.
12-08-2010 05:21 PM - edited 12-08-2010 05:23 PM
I think I know what the trouble is. Most likely the OP wants to implement the overlapped data structure. This is a very tricky one and if the function works similar to WinAPI calls which support overlapped mode, it would be best to simply avoid overlapped operation altogether by passing a NULL pointer to this parameter. Overlapped mode is Microsoft speak for asynchronous operation. Passing a NULL pointer as overlapped parameter disables overlapped mode, forcing the function into synchronous operation.
The OP probably tried to do that already by wiring the "overlapped" control to this parameter and leaving it to NULL. But he forgot to change the configuration of this parameter in the CLN to be a pointersized integer. Leaving it as Adapt to Type LabVIEW will pass a pointer to the 0 integer to the function which is of course totally wrong.