LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

exp() function problem

Hi, I tried to use exp() function in my DLL code. but it cannot be deployed on the RT system. the connection is lost during the process. does anyone know the reason?
0 Kudos
Message 1 of 8
(5,468 Views)
Hello machman,
Are you able to successfully deploy a simple .dll on your RT system? Does it fail to deply only when you add the exp() function to your .dll? Moreover, you mention you lose connection. Is there any error message that is associated with this? If so, what is it?
These details may help us find the culprits to this issue.
Cheers,
Emilie K | Applications Engineer | National Instruments
0 Kudos
Message 2 of 8
(5,412 Views)

Hi,Emilie, I have successfully deployed some other programs with DLL before. I am not quite sure where the error message is. is it under the directory: c:/ni-rt/system/errors? Thanks.

Machman

0 Kudos
Message 3 of 8
(5,396 Views)
I think Emilie means an error popping up while you are deploying.  While you are deploying, you should see a status bar.  Do you see an error, or a popup notification that the connection was lost?

With all other things equal with your application, can you remove the exp() and have things working?

What platform is your RT target?  (PXI, cRIO, FieldPoint, Phar Lap ETS, RTX, PCI boards -- these are really old)  What version of LabVIEW Real-Time do you have?

Are you able to deploy any math related libraries?

Trey B
Applications Engineering
National Instruments
Message 4 of 8
(5,315 Views)

Hi, Trey, the deploying process stops during transferring my application vi. the only message popup is "waiting for RT to respond", then the connection is lost. I tried to delete the exp() function in my DLL code, then the deploying process is successful. I tried "sqrt()", no problem at all. my RT system is PXI 8186 with PXI 1045 chassis. labview RT version  is 7.1. Thanks.

machman

 

0 Kudos
Message 5 of 8
(5,313 Views)
Hi Machman,
 
If your code is making function calls that are not included in the Win32 subset that the real-time operating system has, then the code will fail.  Please take a look at the following KnowledgeBase article.  There is a tool that you should run to verify whether or not this DLL will run on the real-time OS.
 
How Can I Verify that My DLL is Executable in LabVIEW Real-Time?
Message 6 of 8
(5,107 Views)

Thank you, Elizabeth. I will let you know the result. Have a good weekend.

machman

0 Kudos
Message 7 of 8
(5,075 Views)

I used MS VC6.0 to generate the DLL. now everything is fine. Thanks.

 

machman

0 Kudos
Message 8 of 8
(4,079 Views)