Hi everyone,
I’m working on a LabVIEW application to control a Mark-10 device (specifically to set and control the distance) via the VISA serial communication interface. So far, I’ve successfully established communication and can read the distance value by sending the "x" command. However, I’m having trouble implementing a feature to set the distance from my LabVIEW VI instead of using the physical Mark-10 control panel.
Here’s what I’ve done so far:
- I’ve configured the VISA communication settings (baud rate, data bits, parity, etc.) as per the Mark-10 manual.
- I’ve created a VI to send a command string for setting the distance using the required syntax from the manual.
- However, when I send the command, the device either moves in the wrong direction or makes a ticking noise without moving properly.
Attached is a screenshot of my block diagram. The VI logic attempts to send a formatted command to move to a specific distance.
My questions are:
- Has anyone successfully controlled the distance of a Mark-10 device via LabVIEW? If so, could you share a working example or provide guidance on how to structure the commands?
- Are there specific steps I need to take to ensure the Mark-10 device properly interprets and executes the command? (e.g., formatting, delays, or termination characters?)
- Is there an existing VI for Mark-10 devices or general tips for controlling similar equipment via VISA?
Any help, example VIs, or troubleshooting tips would be greatly appreciated. Thank you!