Goure Posted August 27, 2010 Report Share Posted August 27, 2010 Hi all, I use LabView 8.6 on Windows PC's to run instruments in my lab. The .vi's I've written all use DAQmx (version 9.0 I think) to access the hardware. What I would like to be able to do is edit these .vi's on my Mac, then upload the edited versions to the Windows computers to execute. Has anyone ever done this or know if its possible? All I've tried to do so far is open my .vi's on the Mac, and of course I get DAQmx errors and missing files (.dll's mostly). I've installed DAQmx Base on the Mac, but I can't convert all my software to use DAQmx Base on the Windows side because there are some functions that aren't supported by Base (DAQmx Events for instance). Is there a way to 'trick' my LabView on the Mac to think its in Windows and actually load all of the 'Windows only' .vi's? Or will my software be messed up anyways when going back to Windows to execute? Thanks for the help! Quote Link to comment
jgcode Posted August 27, 2010 Report Share Posted August 27, 2010 To my knowledge and as per this thread only DAQmx Base drivers only are supported on Mac. Therefore, you will have errors/missing files if your Windows App includes calls to DAQmx as they are two different driver sets (as you stated). The only workaround (term used lightly) would be to run LV in a VM (or bootcamp) on Mac. However, I can't see why you couldn't edit the non-DAQmx code on Mac, then run your changes back on Windows, no need to trick it. Quote Link to comment
crelf Posted August 27, 2010 Report Share Posted August 27, 2010 You should still bae able to edit the code (all your DAQmx VIs will be missing, but that's okay) - then when you load your VIs on the windows PC it should find the missing DAQmx VIs again (you'll obviously need to re-save the VIs once they're back on te Windows PC). Quote Link to comment
Fab Posted August 27, 2010 Report Share Posted August 27, 2010 I have done it. You only have to make sure that the LabVIEW version is the same both in Windows and MAC, and as CRELF mentioned, once you open the VIs again in Windows, the DAQmx VIs will be found. The only problem is that you won't be able to run your VIs in the MAC at all. Fab Quote Link to comment
Michael Aivaliotis Posted August 27, 2010 Report Share Posted August 27, 2010 As a best programming practice, If you will be doing this often. I suggest you use the conditional disable structure so your VIs will not be broken. In the Mac frame place code that generates some dummy data or is a placeholder. Quote Link to comment
ston10 Posted May 17, 2011 Report Share Posted May 17, 2011 I doing the same thing im using a usb-6008 daq on my macbook but my teacher is using windows so when you config your daq you have to export or copy your mac DAQmx VIs to a file and do the same on windows VIs or make two VI one for mac and one for windows. Im new in labview i just have 8 weeks using it so thats what im doing and its working. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.