04-26-2018 10:21 AM
Hi, Friends:
Presently, there is a laser controlling program written by C language in our lab, and I'm planning to rewrite that program by Labview, for I can control the hardware more conveniently.
I'm not quite familiar to the C code, and I just know there are many dll files, which are invoked by the main GUI. So, in my hand, I have hardware, dll files, and labivew. Is there a way to realize my purpose?
Thank you very much for any advice.
04-26-2018 10:27 AM
04-26-2018 10:30 AM
Thanks for quick response.
04-26-2018 04:25 PM
You have a wonderful opportunity which I've done, myself, when faced with "really old code that may not quite work the way you need it to work" -- Start Over!
Good luck. This may sound like a "slow" way of doing this, but you are much more likely to "get it (almost) right the first time", and save yourself endless frustration trying to debug "the kitchen sink" and spending weeks on code that barely works ...
Bob Schor
04-27-2018 10:59 AM
Thanks Bob.
Actually, I already finished the steps you mentioned; however, when I got down to details, such as invoke dll file, I met some trouble. Because I have no original manual or source code of my device, I am not sure which function should be used for carrying on some operations.
Thanks.
04-27-2018 11:21 AM
How does the laser connect to the control system (serial port? Digital or analog triggers? GPIB? Ethernet? Commercial controller? Some home build contraption?)
What does the program do? (Just fire laser and honor safety interlocks? Synchronize with other IO? Coordinate many things in time and space as e.g. in a laser etch system? )
Chances are that these dlls are some vendor supplied "drivers". See if they provide LabVIEW equivalents.