LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview Compiled DLL not returning to C++ code after calling

Hi,

I am a beginner to Labview, however, just figured out how to compile DLL's.  I'm having an issue with the DLL when I call it, however.  If I call the function in the DLL, it will never return to the C++ code.  I have no loops or what not in the labview code, and am not sure how to proceed in the debug of this issue.  I've attached my VI.  I'd be very appreciative of any help that can be provided. 
 
PS:
 
Here's the applicable section of my C++ Code that calls the Labview Compiled DLL:

void

CSimpleDeviceFramework::processCommandD(char* command)
{
   int i = 0;
  
int commandOptionNumber = *(command+1) - 48;
  
char parser = *(command+3);
   string displayMessage;

   for(i = 1; parser != 'X'; i++)
  
{
     
displayMessage = displayMessage + parser;
     
parser = *(command+3+i);
  
}

   char commandTest[] = "DISP:TEXT \"Test from NI-Device\"";
   //CALL LABVIEW DLL:
  
writeGpibDevice(commandTest);
   printf("testing\n");

}

0 Kudos
Message 1 of 2
(2,265 Views)

Hi Adam,

Does this happen with every DLL that you create or just this one? It might be helpful to see if you can call a simple DLL that just returns a number or writes to a text file to see if the problem is with the DLL itself or with how you are calling it.

Cheers,
Chris J

0 Kudos
Message 2 of 2
(2,242 Views)