04-04-2016 03:24 PM
04-04-2016 04:06 PM
>> In the build spec in the lvproj I’ve specified that the entire ThorDotNetAssemblies folder always be included in the build, and that the destination for all contained items is the data folder (support directory)
Can you try to manually copy thorlabs dlls into support directory? From manual I see that there is drivers folder and labview can put all dlls into one folder that is not good - it breaks internal dependencies.
Also try to add custom destination directory for these dlls and set "Preserve disk hierarchy" in it's settings.
Do you have "Use LabVIEW 8.x file layout" off in build settings (advanced)?
Check additional exclusions settings, they can also matter.
04-21-2016 01:35 PM
Apologies for the poor formatting of the original post -- it's difficult to see the folder structure.
Here is my folder structure:
MyProjects\
BFProject.lvproj
ThorDotNETAssemblies\
(the .NET assemblies (DLLs) reside here)
MySource\
MyDrivers\
ThorMotorDrivers (VIs that use the .NET control reside here)
MySubsystems\ (the lvclasses reside here)
1AxisMotor-generic.lvclass
1AxisMotor-Thor.lvclass
1AxisMotor-MForce.lvclass
As an update, since someone sent a private message inquiring if I had found a solution: No, I was not able to get the Kinesis .NET assemblies to work in the built application. I ended up just creating a new lvclass that used the APT ActiveX control instead and that worked fine in the built and installed application. I switched to the ActiveX control simply because I was out of time and needed to move forward. That said, I haven't had time to go back and solve the problem with the .NET assemblies. My next approach to try would be to put all the source code and DLLs into a single folder (lvproj, lvclasses, driver VIs, .NET assembly DLLs, etc.) and specify in the build that everything go into the EXE or the EXE's folder (e.g., not the support (/data) directory where DLLs would normally go). My project is quite large (> 10000 VIs) so changing the folder structure at such a late stage of the project would be undesirable -- ' just haven't had time to try it.
04-21-2016 01:57 PM
Fluoresence imaging application by chance?
-AK2DM
09-07-2016 02:37 AM
I managed to get my K-Cube working by copying all (~120) Thorlabs/Kinesis dlls to root folder of the exe.
09-01-2019 09:17 AM
@mjhakkar wrote:
I managed to get my K-Cube working by copying all (~120) Thorlabs/Kinesis dlls to root folder of the exe.
This is the solution. I too copied all the .dll, .h, and .lib files into the same folder as my exe and it works! I also did the .exe.config thing from this "Knowledge" Article. My original problem was compiling in app builder, then the compiled exe has broken arrow after app builder make into exe.
I suppose I could try one by one to find out which files are actually needed. Directly loaded .NET assemblies in normal labview were:
Apparently, it needs many more than that to work. Thorlabs labview support is truly a piece of work ����.