10-29-2010 02:28 PM
Hi there:
I want to use my labview program to control the rotation motor I have. The motor is connected with my computer through a USB to RS485 interface converter. I already can control the motor through a small software (Mac Talk) developed by the motor controller company. The technique support guy from the company also send me a Labview vi for this, however, for some reason that labview sample he send to me can work on his computer but doesn't work on mine. I tried to checked what could be the problem, then I found this labview vi cannot detect the serial port, which I assumed there is a problem for my labview program to communicate with the USB-RS485 interface converter. How should I solve this problem?
I'm using LabView 2010, Windows 7
04-04-2011 02:36 PM
Hi,
You can delete the sequence. The reference and/or error cluster force the dataflow.
The while-loop will send and receive at full speed without knowing if there is data available and if the device is ready.
The error-cluster in-out at the while-loop should be replace by a shiftregister.
Or maybe better just delete the while-loop for test so you only send and receive once.
Is it not possible to use a (standard) USB-RS485 converter and use the VISA serial I/O ?
Kees
04-06-2011 08:20 AM
Hi 3C,
the VISA API is indeed a good way to go; first try to get your serial port working. A good starting point will be a loop back test like described in this KB
Best regards,