Labview to control pan/tilt via Romea board

I recently purchased a pan/title system and a romeo controller board from robot shop. i was wondering if anyone can help me to write a labview program to control the pan/title system through digital outputs of a national instrument A/D board.
thanks

Thanks Coleman for the response. Suppose that I would like to have it controlled through USB port and would like to have my pan/title device move one step on each direction of pan and tilt. What are the characteristics of the signal being sent through the two middle pins of the USB? Is each pin responsible for one motor (i.e. one pin for pan and one for tilt?)

Hello Mr.Coleman,

I work for Dr.Hamid who has posted the question in this forum. I have a small question. How do I get the instrument drivers for the romeo board? I want to send signal to romeo board through USB using LabVIEW. Any help would be appreciated.

Kali.

Hello Mr.Coleman,

Can you please give any idea about how to write the program that could recognize the parameters that I send from LAbVIEW? Thanks!!

Kali.

Thanks Mr.Coleman. One last quick question. Before Connecting labview, I programmed the romeo board using the software from adruino. I wrote a program for controlling the two servomotors connected to pan and tilt camera. My intent was to rotate two servo motors by steps of 30 degrees until it reaches 180 degrees. Though my program did not work as expected, there was a movement of one of the motors. Now my question is: When I closed the program, the motor was still making some noise indicating that though there was no space for rotation, the motor was trying to rotate. When I unplugged the USB, it stopped . When I plug in USB , without any program running, the motor rotates and keeps on rotating. Even if I plug my USB to some other PC the motor rotates and keeps on rotating. When I opened adruino software and tried running another program, an error popped up " serial port COM6 already in use, try quitting any programs that may be using it." How do I stop the program that is running in the romeo Board? I would appreciate your answer.Thanks!!

Kali.

Hi hamid,

Welcome to the RobotShop Forum. Unfortunately RobotShop does not provide code, though it is possible other users here may be able to help. In order to control a servo motor via the ROMEO from a computer, you need to first write code for the ROMEO which translates code being sent from the computer to servo position(s) and repeats these positions every ~30ms. The code you write for LabView should simply send the servo number and position (matching the format required by the ROMEO - which you wrote) at the correct Baud rate and via the correct COM port.

Hope this helps,

Hi,

The communication sent through the USB cable is essentially serial, which can handle all types of signals. In order to do what you want, you need to first program the ROMEO using the Arduino software found at arduino.cc, and then either use Hyperterminal in Windows, or another programming language of your choice to send serial commands via the COM port to the ROMEO.

Sincerely,

Hi,

There are no “instrument drivers” for the Romeo, which is essentially an Arduino clone. You send serial communication via the COM port, though you will need to program the Romeo to know what type of data to expect. You cannot program the Romeo via LabView - we suggest the standard Arduino programming language. There seem to be many tutorials online explaining how to send serial data from LabView to a USB device.

Sincerely,

Hi kali,

It sounds like the code you created was trying to get the servo to move to outside its operating standards. You should always have the ability to load a new program - try connecting the ROMEO to another USB port. Be sure to wait until the program says “done” before disconnecting it.

Hope this helps,

In order to read parameters sent serially by LabView, you program will need to do the following:

]Wait to receive a serial packet/:m]
]once a serial packet is received, check it against a predefined communication scheme/:m]
]store the received data accordingly/:m]
]optionally check for data integrity (e.g. with a check sum)/:m]
The communication scheme will be specific to you program and to what LabView can output.

Check out this blog post in order to find a more specific solution: web.me.com/iklln6/automation/LabVIEW.html This was found by searching “labview to arduino”

As always, it is important to search since the solution to pretty much everything is available online for free.