04-03-2009 11:25 AM
I'm using LabVIEW 8.6 with TestStand 4.1.1 and I'm trying to organize the VIs to later deploy them to a production PC. So, I organized them into a LV project and built a LLB with the "Source Distribution Tool". (Destination type: LLB)
Some VIs in the LLB use the "Call Library Function" (user32.dll) to simulate keyboard events. But, when any of these VIs is called from TS, LabVIEW is suddenly terminated. When these same VIs are not in the LLB and are called from TS they do not have any problem.
Is the LLB the best way to organize VIs to be used with TestStand? If so, What could I be doing wrong?
I appreciate your help.
H.P.
04-03-2009 01:28 PM
Hi,
Could you post a small project highlighting the problem.
Regards
Ray Farmer
04-03-2009 04:18 PM
Hi Ray,
I really appreciate your intention to help, but I believe I solved the problem already. However I still have some questions.
The problem was that when I built the LLB the configuration of the "Call Library Function" changed. When the LLB is built it is also created a Support Directory named "data" that contains some dependencies including a new copy of the user32.dll. The "Library name or path" field in the "Call Library Function" changed to be linked to a new Dependency Path. ( ...\data\user32.dll.)
What I did was select "Specify path on diagram" and create a path-constant ("C:\WINDOWS\system32\user32.dll"), so the "Call Library Function" will be always linked to the original user32.dll.
I still don't know why the "Call Library Function doesn't work with the user32.dll copy in the New Dependency Path. And I'm not sure if the LLB is the best way to organize VIs to be used with TestStand.
Do you know why?
Thank you,
H.P.
04-06-2009 03:32 PM