03-31-2011 01:48 PM - edited 03-31-2011 01:58 PM
@EML wrote:
(Anyone know how to programatically alter the path in a dll call node? It always seems to find the files, but I still wory)
Hi Eric,
Well, I can't resist a challenge, though I suppose we're digressing slightly. But anyhow, here's how to programatically alter the call library function, written in LabVIEW 2010. (In this case I'm just reading the path, but you could set it there, too) You'll need to have scripting enabled, which in LabVIEW 2010 is accessable from the Tools->Options Dialog, under the "New and Changed" heading. In this example, I spend half of my effort just getting inside the conditional disable structure. In case you're wondering, the call library function node in this example is from the DAQmx Read VI.
A word of caution - to my knowledge this will only work properly in the development environment and not in a compiled executable. Someone may correct me if I'm wrong. Also, to set the path on the fly you'll have to get rather creative, setting the path from another VI (unlike what I'm doing here) and then calling dynamically the VI containing the call library function. Even after all that, this still may not achieve your goal. But it sure makes for interesting conversation...
For what it's worth...
Jim