05-02-2019 03:33 PM
Does anybody have a driver, VI or command set for Keyence GT2-UB1 modules? I did have a trial version of Keyence's 'GT-Monitor 2' which allowed me to install the drivers on one computer. However, while the trial has expired, the driver still works but, I can't run the program any more and I only know of one command 'm0' which allows my VI to take a reading from the GT2-P12K sensor attached to the GT2-UB1. I would like to interrogate for model, serial number, rate etc.
Solved! Go to Solution.
05-05-2019 09:15 AM
The Keyence website requires a registration to get at even the datasheet or user guide as far as I can see, so I don't want to access either of those things.
If you have access to that information, you may be able to find more details on possible commands that you can use to access or interact with this device. By your use of the term "command" and the 'm0', I'd guess perhaps you can communicate via some sort of message-based protocol, perhaps using the VISA nodes in LabVIEW?
Do you have any more information or documentation you can (legally) post?
05-22-2019 09:37 AM
Yes, I am registered on the Keyence site. They did provide an example (attached) but, it only used the one command 'm0' and also yes, I used VISA. However, they did not provide the driver thus, I used the 'GT-Monitor 2' to install the driver and then used the 'm0' command via VISA, from within LV to get readings. My Keyence rep will be here next week and we'll see what we can do. After that, I may be able to provide further info.
05-26-2019 12:41 PM
Hi nrcan,
I tried to write a reply earlier with my phone but the internet connection was spotty and it failed to post. I confess to not wanting to try again!
Based on reading your post, I'd suggested that you might want to take a look at your VISA driver installation. Third-party drivers and applications often install a copy of the VISA library, and LabVIEW will typically not work with other companies' drivers for VISA. A knowledgebase article describing this in more detail can be found here: After Installing 3rd Party VISA Software NI VISA No Longer Works.
I struck through that because maybe it isn't related to your problem, but since it might be relevant/interesting I didn't delete it.
From the example, you can see the necessary connection parameters. What you need is just the list of commands, for which you probably need the company's help. Hopefully your rep's visit will be able to give you some reference manual to list these commands and their argument or return formats.
05-10-2021 12:04 PM
Would you be able to communicate with the GT2-UB1?
My rep said that this only work with their software and it does not work for program development.
05-10-2021 06:58 PM
Keyence definitely does not install a VISA version of their own. While they are not exactly hostile to LabVIEW and NI products in general, they generally feel that it is more of a hassle than anything else to support that and that their own software is all a user ever should need 😁.
So it's a bit a hit and miss to get support from Keyence support to use their hardware with LabVIEW. If you are from a major account or do a project for an important account of Keyence you definitely get better support, with sales reps even willing to ask for help from the HQ in Japan.
The sample shows clearly that the device is simply a virtual COMM port and can be accessed with VISA. It is not that it can't be accessed with LabVIEW or other software, but simply that they do not want to document the commands that can be used. If I would have to use that I would install the trial software on another computer and then connect a software serial port monitor to it.
05-11-2021 01:57 PM - edited 05-11-2021 02:05 PM
HI all;
Thanks for the reply, Since my original post I have made many programs using these particular sensors they are truly amazing! better then our LVDT's, just rock solid linear response with nm resolution and um accuracy/repeatability. I can't say enough about how well they work. I have developed Vi's for both their USB devices as well as their Network adapters.(network more then 10 in use at one time) If your looking at these, the USB's have options that the Network adapter simple doesn't. such as Querying them to get there Model/serial and channel making programing easier. All that said. I don't know how to upload to ni, but am more then willing to give you my basic code. PS the core VI's came from the manufacture in Japan.
Thanks,
05-11-2021 03:20 PM
Great that at the end you were able to use them.
My rep hasn't have an answer for this yet, but your code would help me a lot.
You can add a zip folder to the comments. There is a "drag and drop or browse file location" below the text body where you write the reply.
Would it be possible to save your VIs in 2013 version?
03-29-2023 09:54 AM
I take this opportunity to bounce on this discussion to ask you for help.
I ask for your help on the same problem on the Keyence drivers. I am on project in the framework of validation of the master which requires that I assemble a test bench for an acquisition multiphysics data among which: the moves of a system. On this, I want to use the sensor of LK-G3000 laser measuring moves. However, I installed a driver provided the Keyence, but I cannot find it in the Instrument I/O palette. can you help me with this problem or give me an alternative?
03-29-2023 12:24 PM
I didn't use any set "Vi's" I just quarried the com ports and interfaced as if it was using a standard RS232 type device.
So the way I did it was I used a program to interrogate the com ports. they showed me all active coms.. then I had it send commands to those ports that would report back the s/n of each sensor. This gets written into a txt file and that program ends
The next program did the measurements. it would open the text file and read in all the com info. so if the system does not change you never need to run the setup program again, just measure!
I put a couple vi's here. should get you going.. I don't know how to host these .. so they may vanish as soon as I need space in dropbox
https://www.dropbox.com/scl/fo/204te2pfmk6lx8qd8ka2d/h?dl=0&rlkey=tdr61kxi4pyhzj82vnftl8slb