06-19-2012 07:42 AM
Hello everybody,
I recently started my phd thesis and my one of my first tasks is to use the Keyence LK-G10 Laser displacement device. I want to use it in a Labview program, which is also able to control a movable stage. The device is connected via USB with the computer and I am able to use the device with the standard windows program.
The things that i have been done till now are:
I created the VIs for the dll file of the LK-G10 with the tool >> import >> shared library function of Labview.
I found this USB Instrument Control Tutorial and followed the instructions of the text. The device is now visible in the Measurement and Automisation explorer.
But now I am stuck and i don't understand how to use the VISA VIs to send the dll commands to my device and read out the answer. I attached the dll file for the device.
I would be grateful for any help or suggestion what I need to do to really communicate with the LK-G10 in Labview.
Thank you in advance
06-19-2012 09:19 AM
Using the VISA wizard was a mistake. You must first undo all of those changes and restore the driver you got from the vendor. The wizard is only good if you have received all of the details on the low level communication from the vendor. Use the VIs that you created with the import shared library tool.
06-20-2012 03:10 AM
I have the VIs, but they don't seem to do anything. As a test, i started one of the simple functions which should just receive a value from the device. The VI runs for several second and then stops without indicating an error but also without receiving the correct value. What am i doing wrong?
06-20-2012 09:31 AM
Sorry, but without the instrument, it would be impossible for me to say what might be wrong. Does the vendor provided software still work? If it does, at least you know you undid the damage caused by using the VISA driver wizard. I noticed that there is some example code in VB. I can only recomend that you try to understand that.