05-14-2015 04:28 AM
Hi,
I'm trying to build up a communication between a dc motor(not NI) and LabVIEW.
PC(LabVIEW) -> NI-8472(USB-CAN) -> DC MOTOR(CanOPEN)
That is my setup
I have tried this example, CanOPEN SDO example for USB CAN
https://decibel.ni.com/content/docs/DOC-
But I'm not able to write anything... Do you guys have any tips to get started?
My second question, when I have a funciontal communication between LabVIEW and the dc motor.
How can I control it using LAbVIEW?
I only need thee commands:
-Start
-Stop
- Reverse
Thanks,
andechr
Solved! Go to Solution.
05-14-2015 06:58 AM
@andechr wrote:
My second question, when I have a funciontal communication between LabVIEW and the dc motor.
How can I control it using LAbVIEW?
You read the documentation that goes with your hardware. It will tell you what you need to send to make it do stuff, and what format you will get data in.
Also your link is broken.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
05-19-2015 09:01 AM
Thank you!
I was using this example:
https://decibel.ni.com/content/docs/DOC-4439
I'm not able to save this example, every time a close it down and restart it I have to change the interface, index etc...
When I tried to build it on my own I couldn't find the palletts for READ SDO, WRITE SDO etc.
Do you guys have any idea how I could get it?
/andechr
05-19-2015 09:25 AM
@andechr wrote:
I'm not able to save this example, every time a close it down and restart it I have to change the interface, index etc...
When I tried to build it on my own I couldn't find the palletts for READ SDO, WRITE SDO etc.
Did you set the control values to default and save the VI? Did you programatically set the control values on start?
That example looks like it uses a modified version of this library.
http://www.ni.com/example/30873/en/
I've never used that library and have no idea how it may have been modified. If you have questions about that example you'll probably want to contact the developer, they didn't give much information it.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord