09-15-2015 12:40 PM
Hi everyone.
I am trying to communicate with a morisiki CNC machine via Ethernet.
I have not attended the Instrument Control course as of yet so may be missing something important.
We have a program that runs on one PC, but as soon as we copy that program onto another PC, it no longer works.
We think it's related to the .dll files and shared libraries.
Any suggestions on what might be the problem?
09-15-2015 01:10 PM
09-15-2015 01:18 PM
fwlib32 is the dll file we are using. The shared library is also called fwlib32 and is derived from the dll and header file.
Didn't use any programming languages except LabVIEW.
Not sure regarding VISA vs TCP/IP. How do I find out?
We didnt use an EXE or installer, we wanted the raw labview files copied across so did a "save as" with all dependencies included.
09-15-2015 01:37 PM
09-16-2015 07:50 AM
The way that we imported the .dll files etc was on the main NI project explorer screen, Tools -> Import -> Shared Library
When it asks you for a header and .dll file we referenced the .dll files that we purchased from the CNC manufacturer.
My understanding is that this imports the relevant files into a shared library on the local machine that all LabVIEW programs can access when they run on that machine.
As we have tried to copy across the labview code onto a new PC and tried to reinstall the libraries on that PC, it doesn't seem to work.
The error we are getting is -15, which according to the documentation for the CNC machine manufacturer is a missing .dll file
How do I determine the type of .dll file?
09-16-2015 09:37 AM
@David-Baratheon wrote:
The way that we imported the .dll files etc was on the main NI project explorer screen, Tools -> Import -> Shared Library
When it asks you for a header and .dll file we referenced the .dll files that we purchased from the CNC manufacturer.
My understanding is that this imports the relevant files into a shared library on the local machine that all LabVIEW programs can access when they run on that machine.
As we have tried to copy across the labview code onto a new PC and tried to reinstall the libraries on that PC, it doesn't seem to work.
The error we are getting is -15, which according to the documentation for the CNC machine manufacturer is a missing .dll file
How do I determine the type of .dll file?
I have no idea what you think you are doing there.
Tools --> Import --> Shared Library is to generate VIs.
http://www.ni.com/white-paper/2818/en/
If your LabVIEW program already runs on one PC, you have all the VIs you need. You don't need to be generating more.
Most DLLs cannot just be copied. They generally are installed when a program is installed.
09-16-2015 10:36 AM
We did also try manually copying them into the windows -> system32 folder.
The .dll files we have didn't come with any installer.
09-16-2015 10:43 AM
@David-Baratheon wrote:
We did also try manually copying them into the windows -> system32 folder.
The .dll files we have didn't come with any installer.
Are you sure the DLL files were not installed as part of a software package?
It is rare for a vendor to just give you a DLL to use.
Where is the person who developed the LabVIEW code? Why aren't you asking that person?
09-16-2015 12:22 PM
He can't work it out either lol
09-16-2015 12:26 PM