LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Strange DLL error

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

0 Kudos
Message 1 of 3
(2,519 Views)

s the call trying to load from the same folder the vi is placed? Can you attach your code or post a screen shot?

0 Kudos
Message 2 of 3
(2,506 Views)

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

0 Kudos
Message 3 of 3
(2,498 Views)