LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Communication with Brushless DC Motor controller

I have a Robotic Brushless DC Motor Controller, FBL2360, I try to communicate it with labveiw for supervision the motors, I try to communicate with the serial port of the PC but it doesn't work, could someone help me with this problem.

you found here the VI that i make it to communicate with the controller

0 Kudos
Message 1 of 3
(2,497 Views)

First and foremost DON'T USE BYTES AT PORT!

 

Read this thread for a good explanation of when and when not to use it

 

The best way to do this is basically:

  1. Enable Termination Character in VISA Serial Setup
  2. Set the Termination Character to match what is being sent by your device
    1. I didn't see any mention of termination when I skimmed th manual. But anything will work, like if the device always puts a CR or LF or even semicolon at the end of every data sent.
  3. Set your VISA read "bytes to read" to a value higher than the number of bytes you ever expect to receive.

Now when LabVIEW is receiving data, it will "read" until it receives the termination character or times out.

========================
=== Engineer Ambiguously ===
========================
Message 2 of 3
(2,489 Views)

Ok, Thank you so much for this information , i will try to resolve it

0 Kudos
Message 3 of 3
(2,443 Views)