Hi Mike,
Yes, this is what I would like to do, but I'm having problems getting it to work. Right now, my Labview VI makes one call to a function in the DLL, no args, no return value, etc. The DLL is supposed to initialize the serial device, and download a controller file to it. It's telling me it can't load the file.
I've tested the DLL code with an executable C++ file, and the code works fine. Then I thought I would write a small DLL with one function to call CreateFile and open the controller file, then close it. That's it. Well, this is flaky.
The only thing in my LABVIEW VI is a call to the simple DLL function. Sometimes it will open the file, and sometimes it won't.
I'm not sure what else to try to solve this, so I thought I'd switch
it up and approach it from the opposite direction with the C++ code calling the Labview DLL for a GUI.
Incidentally, I tried all of this on LabView 6.1, and I've now loaded 7.0, and I'm going to try it on there and see if the flakiness still exists.... But your answer would be the best solution if I could get it to work.
Thanks for answering so quickly!
Mary