I'm building a simple device driver for an OnTrak ADU218 USB relay interface. I imported the .dll using the import wizard and have most of the functionality I want, but I'm confused about how Labview organizes everything on my development computer. It seems to have put files all over the place and I can't tell which ones I can move/delete/rename and which I cannot. Last night I had everything working well, but then made the mistake of trying to clean up my project--it shattered and I had to start from scratch. (I've actually done this several times with various projects.)
My directory tree for this project looks like this:
--My Documents\ADU-218 Relay (The directory where I want to do my dev work.)
ADU 218.lvproj
ADU 218.aliases
--My Documents\ADU-218 Relay\OnTrak Source (Self-created subdirectory for OnTrak .dll info)
AduHid.dll
AduHid.h
AduHid.lib
--Program Files\.......\Labview 8.2\user.lib\ADU 218 (Labview created this directory and files)
ADU 218.lvlib
AduHid.dll
Report.html
--....\user.lib\ADU 218\ADU 218 (Labview created this directory and the vis from the functions I selected in the wizard)
Close Adu Device.vi
Open Adu Device.vi
Write Adu Device.vi
Read Adu Device.vi
Show Adu Device List.vi
I'm having a really hard time getting my head around the way Labview links all these files and organizes its directory structure.
I assume I'm supposed to edit this project via the .lvproj file located in My Documents, but I can edit the vis directly or through loading up the .lvlib. Is this a no-no? It looks like Labview copied the .dll from my OnTrak Source directory to the user.lib directory tree. Does that mean none of the files in the OnTrak Source directory are needed anymore and could be deleted?
As I am creating vis, I want to be able to keep a toolkit of vis on a thumb drive that I can use for future projects. What's the best to move/copy projects between computers? My vis are independent from each other--if all I need is one vi can I drag and drop that single vi and the .dll to my target computer?
Some similar projects I've done have put files in the instr.lib directory. I'm guessing Labview defaults to user.lib when using the Import DLL wizard and the instr.lib when using the Instrument Driver wizard. Can I move my ADU 218 project to the instr.lib directory so it shows up in the correct place in the menu?
TIA,
Dave