10-18-2013 04:15 AM
Dear community
I'm a new user of LabView and I would like to read data from an USB Sylvac distance sensor (see here for the sensor link http://www.sylvac.ch/index.php?page=shop.product_details&flypage=flypage.tpl&product_id=201&category... ).
When I'm using the software provided by Sylvac, no problem everything is working well.
Note that it is not possible to create a VCP since Sylvac does not provide the drivers for this particular sensor contrary to this post http://forums.ni.com/t5/LabVIEW/How-to-read-out-data-via-usb/td-p/2042980 .
I created the driver for NI-VISA following this procedure (NI-VISA Driver Wizard)
http://www.ni.com/white-paper/4478/en/
In the MAX, the sensor is properly detected.
Using a USB sniffer (USBlyzer), and using the drivers and software from Sylvac, I found that the software sends a command to the sensor to ask for the position (?\r or 3F 0D in HEX) and the sensor answer by sending the position (see attachment for USBlyzer report).
When I'm doing the same with MAX test panel and NI-VISA drivers, I'm able to see the 3F 0D, then the 2 bytes buffer, but no back from the sensors (see attachment).
Does anyone know what I'm doing wrong or in which direction I should look for?
Thanks in advance
Best regards
Florian
Solved! Go to Solution.
10-18-2013 09:22 AM
10-21-2013 04:29 AM
I think you have installed the suppliers drivers incorrectly. You should be able to interface with the device as if it is a standard RS-232 port IIRC.
Do NOT use USB RAW if you already have a driver from the manufacturer unless you want to waste your time.
Shane.
10-21-2013 06:57 AM
Thanks for your answers and sorry, if I was not clear enough.
When I pluged it for the first time and when I instaled the drivers from the manufacturer, no VCP is created, it is recognized only as USB . Actually, I ask for VCP drivers at the begining directly to the manufacturer because I was also thinking it was working like this and the answer was that they are not existing.
I have another question: where is the sniffer positionned: Softwear->drivers->sniffer->hardwear or Softwear->sniffer->drivers->hardwear
If it is the second case, this can explain why I get the same in the sniffer but no answer from the sensors
Best,
Florian
10-21-2013 07:57 AM
If that is the case, ask the supplier to provide LabVIEW drivers for you.
11-13-2013 01:56 AM
I finally « solved » the problem by changing the sensor with the USB plug to the one with RS232.Thanks for your answers.
Florian
06-19-2018 12:59 PM
Hello Memo360,
I am an user of Sylvac D200S. I need to obtain data of D200S via LabVIEW. Would you please share your code for me?
Thank you in advance.
06-20-2018 01:23 AM - edited 06-20-2018 01:24 AM
Please find the function attached
As mentionned in my previous post, this is only working for the RS232 version, not the USB one.