01-22-2013 04:14 AM
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
01-22-2013 09:57 AM
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.
01-22-2013 10:47 AM
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
01-22-2013 11:28 AM
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?
01-22-2013 11:34 AM
of course
here they are
bye
01-22-2013 12:10 PM
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
01-23-2013 07:54 AM
jbmasson,
Could you confirm/reply to the following:
Thank you,
LaurentV
01-25-2013 04:17 AM
sorry for the delay in answering
it is fly season in france!!!!
thanks but there is still no error message
bye
01-25-2013 04:20 AM
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
01-25-2013 04:30 AM
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.