LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

issues with executable for an encoder control probably due to dll

hi, 

I am unable to create an executable for a labview program controlling an optical encoder US digital,

the program calls the USDQSB.dll, but it seems that this dll is also calling other dlls, but these dlls

are in system32, labview should be able to see them (i think)

when i launch the executable it seems unable to connect to the encoder,

but there are no error messages

the rest of the program works fine (plots, save files etc)

 

 

can anyone help me?

 

JBM

0 Kudos
Message 1 of 16
(3,286 Views)

What are the error messages you are getting?

 

If you are not getting any error messages, then you probably haven't wired the error cluster through all your subVIs properly.

 

Please upload your code if you need more specific help.

http://www.medicollector.com
0 Kudos
Message 2 of 16
(3,268 Views)

thank you for your answer

here is the program , and a sub vi. I cannot load the dll on the post here. The dll function is named QSB_S

 

the program is very basic and uses the function given in an example program found on the encoder website

 

in the test program given for the encoder the absence of connection to the encoder is not registered as an error.

 

best

JBM

Download All
0 Kudos
Message 3 of 16
(3,259 Views)

Sorry, I don't have LV2012.  Any chance you can save for 2011?  Or maybe just upload a screenshot, if its a fairly simple VI?

http://www.medicollector.com
0 Kudos
Message 4 of 16
(3,252 Views)

of course

here they are

 

bye

Download All
0 Kudos
Message 5 of 16
(3,250 Views)

Hmmm.  Not sure.

 

The error cluster was not fully wired through, though.  Try the attached VI. 

 

I made these changes:

 

- The error cluster was not wired through the constructor

- The while loop should check the error in the cluster.  Loop should stop if there is an error.

- Will pop up an error dialog at the end

http://www.medicollector.com
0 Kudos
Message 6 of 16
(3,242 Views)

jbmasson,

 

Could you confirm/reply to the following:

 

  1. Is the DLL a .NET assembly? If so, have you installed the required matching .NET framework on the target computer?
  2. Have you installed/copied all the required DLLs on the computer?
  3. Have you tried to create an installer for this project?

 

Thank you,

 

LaurentV

______________

Laurent V.
Application Engineer - National Instruments (France)

http://www.ni.com/support
0 Kudos
Message 7 of 16
(3,224 Views)

sorry for the delay in answering


it is fly season in france!!!!

 

thanks but there is still no error message

 

bye

0 Kudos
Message 8 of 16
(3,214 Views)

hi

 

 

1 how can i know if a dll is a .net assembly? on the target computer all the dll packages of the encoder are installed

 

2 all the dll are in the co,puter because the program runs normally, i am just unnable to make the executable

 

3 yes i tried, but is does not work, all labview functions works but it still does not communicate with the encoder

 

bye

0 Kudos
Message 9 of 16
(3,212 Views)

1. Where did you download it? Perhaps the manufacturer or provider clearly specifies whether it is a native DLL or a .NET assembly.

2. How you unable to make the executable, or to run it?

3. In this case, I would advise to create a very simple VI that only connects to the encoder and reports errors using the "simple error handler". Then try to generate an executable and an installer. The goal is to isolate the issue, and make sure it does not depend on other parts of your diagram.

______________

Laurent V.
Application Engineer - National Instruments (France)

http://www.ni.com/support
0 Kudos
Message 10 of 16
(3,208 Views)