04-06-2010 06:03 PM
I have an Orbit Positioner that included VB and VC examples to control it. I used the VB example and was able to make it do everything I wanted but now I need to control some other equipment and I would prefer to use LabView to do it all.
The C example included a DLL called SCServerDll and it creates a DLL file. I used the LabView Import function to create a .lvlib and it all looks good.
My problem comes in that I'm not sure how to make it actually do the Serial Port connection and to use the DLL in LabView. There is an OpenDevice function that I use in VB to open the COM connection and when I use it in LV it doesn't seem to do anything.
Are there any experts around that would be willing to look at my DLL and my VB program plus the Vi lib or even just give me some ideas on how to go about troubleshooting this? I've been doing LV for 15 years but never dealt with connecting to a DLL before.
04-06-2010 08:11 PM
04-06-2010 09:13 PM
04-07-2010 09:12 AM
Ok, here's 3 zip files with all of the programs that I believe will be helpful. I'll add the documentation for the DLL in another post since it's limited me to 3.
One file is the vilib that was created by LabView from the DLL.
One file is the VB example program.
One file is the VC example program.
Next post will have the DLL documentaion.
04-07-2010 09:17 AM
04-07-2010 02:00 PM - edited 04-07-2010 02:01 PM