Communicate with HBL1650 using Labview
8 years 3 months ago #29530180
by Trainee
Communicate with HBL1650 using Labview was created by Trainee
Hello,
I am trying to create a GUI in Labview to communicate with HBL1650 so that I will be able to control a three phase dc brushless motor. I know that Roborun+ offers the possibility to control the motor but since I need to do some data acquisition with the help of a torque sensor and a national instrument data acquisition device that mesure the characteristic of the motor, it would be best if the mesure and the motor control could be carry out in labview at the same time.
My question is: does Roboteq offer labview driver for HBL1650 controller? If not, is there anyone has any suggestion of how to communicate labview with HBL1650?
After looking at the posts in the forum, I get to know that labview has a function called VISA that enables it to send command through serial connection. And roboteq HBL1605 can receive serial command to control motor. Is there anyone that has tried this approache before? If so, can you share with me your experience of how to implement the process please? I really need some help here on this matter.
I am trying to create a GUI in Labview to communicate with HBL1650 so that I will be able to control a three phase dc brushless motor. I know that Roborun+ offers the possibility to control the motor but since I need to do some data acquisition with the help of a torque sensor and a national instrument data acquisition device that mesure the characteristic of the motor, it would be best if the mesure and the motor control could be carry out in labview at the same time.
My question is: does Roboteq offer labview driver for HBL1650 controller? If not, is there anyone has any suggestion of how to communicate labview with HBL1650?
After looking at the posts in the forum, I get to know that labview has a function called VISA that enables it to send command through serial connection. And roboteq HBL1605 can receive serial command to control motor. Is there anyone that has tried this approache before? If so, can you share with me your experience of how to implement the process please? I really need some help here on this matter.
Please Log in or Create an account to join the conversation.
8 years 3 months ago #29530181
by TechSupport
Replied by TechSupport on topic Communicate with HBL1650 using Labview
We do not have any Labview drivers. Here is a link to another thread another user created. There are some attachments in there. Don't worry about the 0kb zip, there are files in there from the last time I checked.
dev.roboteq.com/dev1/index.php/forum/11-...h-nexgen-controllers
You may want to ask the person who posted those for any help regarding those files.
dev.roboteq.com/dev1/index.php/forum/11-...h-nexgen-controllers
You may want to ask the person who posted those for any help regarding those files.
The following user(s) said Thank You: Trainee
Please Log in or Create an account to join the conversation.
8 years 2 months ago #29530268
by Trainee
Replied by Trainee on topic Communicate with HBL1650 using Labview
Ok thanks a lot. I have a question concerning the serial command. In Roborun PC utility console page, when I send a serial command for example ?A to read motor amps, I will get a return message of something like this :
?A
A=0
Is there a way to configure the Roboteq so as to get only the message part "A=0", without "?A" ?
?A
A=0
Is there a way to configure the Roboteq so as to get only the message part "A=0", without "?A" ?
Please Log in or Create an account to join the conversation.
8 years 2 months ago #29530269
by TechSupport
Replied by TechSupport on topic Communicate with HBL1650 using Labview
You would have to disable the command echo.
~ECHOF 1
Disables echo.
To re-enable, send a 0 instead of 1.
~ECHOF 0.
See page 198 of user manual.
~ECHOF 1
Disables echo.
To re-enable, send a 0 instead of 1.
~ECHOF 0.
See page 198 of user manual.
The following user(s) said Thank You: Trainee
Please Log in or Create an account to join the conversation.
8 years 2 months ago #29530270
by Trainee
Replied by Trainee on topic Communicate with HBL1650 using Labview
Thanks again. I have another question concerning the communication between Labview and Roboteq. Is it possible to send a serial command through MiniCAN or RawCAN network? For example if I want to run the motor without using Roborun, the only way is to send a serial command of !G 1000 through serial command. In this case with a CAN network established, is it possible?
Please Log in or Create an account to join the conversation.
8 years 2 months ago #29530271
by TechSupport
Replied by TechSupport on topic Communicate with HBL1650 using Labview
It would be easier to use our newest protocol that is proprietary to our controllers. This is Robocan.
You don't have to use our software to send serial commands. Something like hyperterminal, real term will work as well. You just have to make sure that the communications settings are correct. See usermanual for reference.
dev.roboteq.com/dev1/index.php/technology-menu
You don't have to use our software to send serial commands. Something like hyperterminal, real term will work as well. You just have to make sure that the communications settings are correct. See usermanual for reference.
dev.roboteq.com/dev1/index.php/technology-menu
The following user(s) said Thank You: Trainee
Please Log in or Create an account to join the conversation.
8 years 2 months ago #29530329
by Trainee
Replied by Trainee on topic Communicate with HBL1650 using Labview
I am sending ?A serial command via USB to my Roboteq HBL1650 in a loop in labview to receive the motor amps value continuously while the motor runs. Is it possible to know the time interval between the first value received and the next value? Does Roboteq has any specification for this?
Please Log in or Create an account to join the conversation.
8 years 2 months ago #29530336
by TechSupport
Replied by TechSupport on topic Communicate with HBL1650 using Labview
If you want for it to be continuous, perhaps you can send the command # nn where nn = value in mS.
If ?A is sent, then it will query the amps.
Sending in # 500 will repeat that query every 500mS.
If ?A is sent, then it will query the amps.
Sending in # 500 will repeat that query every 500mS.
The following user(s) said Thank You: Trainee
Please Log in or Create an account to join the conversation.
8 years 2 months ago #29530338
by Trainee
Replied by Trainee on topic Communicate with HBL1650 using Labview
Thanks a lot. Does that means if I just send ?A_#500, the query will repeat every 500ms?
Please Log in or Create an account to join the conversation.
8 years 2 months ago - 8 years 2 months ago #29530339
by TechSupport
Replied by TechSupport on topic Communicate with HBL1650 using Labview
Yes. However you need to put a space between the # and the 500 or it won't work.
Edit: You may want to also send the # C as well before the ?A so it clears out the buffer history.
# C_?A_# 500
Edit: You may want to also send the # C as well before the ?A so it clears out the buffer history.
# C_?A_# 500
The following user(s) said Thank You: Trainee
Please Log in or Create an account to join the conversation.
Moderators: tonysantoni
Time to create page: 0.077 seconds