Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

Thorlabs TDC001 Controller on Mac-Communication Directly Through USB

I recently purchased a TDC001 controller from Thorlabs and I am trying to use Labview with it. But I am currently operating on a Mac which Thorlabs does not cater to because they only offer the Windows drivers for the controller. I am trying to work around ActiveX and instead communicate directly between the USB port and the controller. Thorlabs TechSupport emailed me with a workaround involving communications protocol, but the Labview program they included keeps producing errors. Also, I found a post on here that was pretty similar and allowed me to input an unsigned byte array that seems compatible with the hexidecimal ommands in the communications protocol manual. But errors keep occurring and the controller refuses to move the motor. Help?

 

Error 1 occurred at Property Node (arg 1) in VISA Configure Serial Port (Instr).vi->TDC001-5.vi

Error 1 occurred at Property Node (arg 1) in VISA Configure Serial Port (Instr).vi->LabVIEW Com protocol-5.vi

Error -1073807346 occurred at VISA Flush I/O Buffer in LabVIEW Com protocol-5.vi

 

Thanks,
Zack Daniels

Download All
0 Kudos
Message 1 of 4
(5,718 Views)

Hi Zack,

 

Below is a forum, that describes the same error and a possible solution to solving Error 1:

http://forums.ni.com/t5/LabVIEW/Error-Property-Node-arg-1-in-VISA-Configure-Serial-Port-Instr-vi/td-...

 

Also, double check that the inputs to the VISA Configure Serial Port.vi are correct, the baud rate and the VISA resource name need to be correct.

 

For Error -1073807346, please try increasing the mask size from the default of 16, reference the function help linked below:

http://zone.ni.com/reference/en-XX/help/371361J-01/lvinstio/visa_flush_i_o_buffer/

Kevin S
Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(5,654 Views)

Hi, 

 

I am trying to communicate with TDC001 using python in Mac Platform.

 

I am wondering if there is any example codes avalbile?

 

Thanks,

z

0 Kudos
Message 3 of 4
(4,608 Views)

Hi Z,

 

Are you trying to use the NI-VISA driver in Python?  If not, what NI products are you using?

Cody A.
0 Kudos
Message 4 of 4
(4,597 Views)