08-17-2010 12:24 PM
I'm having a strange problem with a dll. It controls a piece of equipment over USB (a Shamrock spectrograph from Andor) and I'm using the Call Library Function node to access it. I've wired a permanent path onto the node to point to the dll, but every time I load LabVIEW, I have to "find" the path again. It is written out fine in the Path constant, but the dll doesn't appear to work properly until I click on the path box, Browse for Path, then select exactly the same path that is in the box. i.e. from my point of view I've not actually changed the path. Afterwards, it works fine. Has anyone else seen anything similar? This is LabVIEW 8.5 btw.
Chris
08-18-2010 01:38 AM
s the call trying to load from the same folder the vi is placed? Can you attach your code or post a screen shot?
08-18-2010 04:06 AM
OK, I seem to have partially solved it - if I put the DLL in the same folder as the .vi, then everything is fine. But if I put the DLL in the LabVIEW root directory, then the bug occurs. Very strange. I suppose that counts as "solved" but I'm a bit concerned that the bug will crop up unexpectedly later on when I'm not around to fix it.
Chris