05-22-2014 01:06 PM
Hello I am attempting to control a ThorLab TDC001 apt servo controller using LabView but without using ActiveX. The ThorLab tech support has sent me the Host-Protocol commands but for some reason I can't communicate with the servo. Can anyone tell me how I go about send the hex commands using MAX or LabView?
I have the servo set to act as a COM port and MAX sees that port but it get an error whenever I send commands and MAX says that it can not access the device using VISA
Error opening resource:
ASRL3::INSTR
ISA: (Hex 0xBFFF0072) The resource is valid, but VISA cannot currently access it.
Windows 7
LabView 8.5
Thanks
Solved! Go to Solution.
05-22-2014 01:28 PM
05-22-2014 01:32 PM - edited 05-22-2014 01:33 PM
I've made sure to only have 1 program open either MAX or LabView or APT. I've been trying to send Hex commands via the Test Panel but the motor won't respond. Is there a way in LabView to send the Hex commands directly to the servo?
05-22-2014 01:35 PM
05-22-2014 01:40 PM
Okay, I quit everything, powercycled, yadayada... now MAX is saying the Device Status is working properly. I've set the port settings (Baud etc) to match what ThorLabs has told me the settings are and validated and it seems OK.
So how to I go about sending these HEX commands directly to the servo?
05-22-2014 01:45 PM
05-22-2014 02:14 PM
I've attached the VI I'm trying to use just to send the basic commands. Am I making a mistake somewhere?
05-23-2014 03:41 PM
So I changed the write buffer to use an U8 array with a string conversion. I'm trying to send a hex code of 23 02 00 00 21 01. Thus far whenever I run the program nothing happens (or LabView tells me the Visa resources is valid but can not be accessed, but that's unusual).
I know this command works because I can send it through using a Python script and have the servo respond.
Any ideas?
05-23-2014 04:19 PM
05-26-2014 08:36 AM
Sorry for the tardy response. Here's the picture you ask for.