LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I get a Mac to run a LabVIEW VI that was created for Windows? (it calls DLL files)

This is for a spectrometer. A motor controller is connected by serial and a lock-in amplifier is connected through GPIB. I have a Windows version of the VIs I need to get it all running, but I need to get it running on a Mac. The program was written in LabVIEW 6.0.1 and I have both version of 6.1. Is there a type of file that Mac uses that are similar to DLLs? Is this even possible? Any advice is greatly appreciated.
0 Kudos
Message 1 of 7
(3,480 Views)
testing to see if this is going to the right place.
0 Kudos
Message 2 of 7
(3,480 Views)
I believe .DLL are widows only animals.

Advice?
Figure out how to work with the app on the windows paltform.

Why is it nessary to move to the MAC?

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 7
(3,480 Views)
Hi Ben,

Thanks for your help.

The application already works with windows, and my Primary Investigator and his team members are all Mac people.

I've found a bit of information on converting DLLs to LIB files. Can this help me? How can I find out exactly what information is being passed?

Thanks in advance.
0 Kudos
Message 5 of 7
(3,480 Views)
> This is for a spectrometer. A motor controller is connected by serial
> and a lock-in amplifier is connected through GPIB. I have a Windows
> version of the VIs I need to get it all running, but I need to get it
> running on a Mac. The program was written in LabVIEW 6.0.1 and I have
> both version of 6.1. Is there a type of file that Mac uses that are
> similar to DLLs? Is this even possible? Any advice is greatly
> appreciated.
>

DLLs are a windows specified library format. The equivalent on a Mac is
called a shared library. Given the source for the DLL, it is possible
to compile it into a shared library, though not necessarily easy. You
might want to start by asking the supplier of the VIs or DLL for the
equivalent Mac library. They may refu
se, but at least they will know
that you want it.

Greg McKaskle
0 Kudos
Message 4 of 7
(3,480 Views)
Hi Greg,

Thanks for your help. The supplier of the VIs hasn't made a Mac version. Is there a way I can find what the information is that is being passed? and use a static library to pass the information to the Mac? I'm very interested in hearing the 'not necessarily easy' answer if you would share it. (noonan@stars.gsfc.nasa.gov)

Thanks very much.

Julie
0 Kudos
Message 6 of 7
(3,480 Views)
> Thanks for your help. The supplier of the VIs hasn't made a Mac
> version. Is there a way I can find what the information is that is
> being passed? and use a static library to pass the information to the
> Mac? I'm very interested in hearing the 'not necessarily easy' answer
> if you would share it. (noonan@stars.gsfc.nasa.gov)
>


You can open the VIs on a PC or Mac and double click on the DLL node.
It will show you the parameter info, the function name, path to the DLL,
etc.

If you have the source code to the DLL, then make it on the mac using
the Metrowerks CodeWarrior compiler. If you don't have the source, then
you need to either shift to using diagram nodes exclusively or come up
with some other way of replacing the DLL.


For the details on compiling a DLL, you should look at your manual that
came with CodeWarrior and look at the CIN Manual or search online for
something ...

Greg McKaskle
0 Kudos
Message 7 of 7
(3,480 Views)