10-26-2021 01:45 PM
New to labview, I attached my VI, been having difficulty with an over run error for multiposition valve by Vici, also unable to execute valve position command, but other commands work. Please help.
Solved! Go to Solution.
10-26-2021 01:59 PM
Do you really need to send all of these commands every iteration? And sending "false" when not setting seems like it would cause issues.
As far as your reading, get rid of the Feedback Node and the Concatenate String. Also, set the read count to something large, like 100. The read will stop when it reads the termination character, which you default to a Line Feed (0xA). And how often is data even being sent from the instrument?
Do you have a manual you could attach or link to so we can see what the commands and responses are?
10-27-2021 01:47 PM
Thank you for prompt response, do you have examples that would only have input written in serial? I attached the PDF, and on page 7 shows the list of commands. All commands to change position work but failed to display valve position. What do I add if I remove the feedback node, and the concatenation string. Current read count is zero but when I change it to 1000 it reads but wont change position. I tried a read count of 5, it shows bad command line but still changes position. Im assuming my programming in getting a signal from each case structure is causing the issue.
10-27-2021 02:25 PM - edited 10-27-2021 02:26 PM
So you have a control for each position. And confusing the CC and CCW with that. And trying to write all of those each iteration. Yeah, that will massively confuse your device.
I propose you use a single numeric control to set the position. You can use an Event Structure so you only tell the device to go to a new position when your user says to change the position. I would then use the Timeout case to query the position or any other status you may want. And then use the Value Change event on the Stop button to close down the session and stop your loop.

11-01-2021 11:16 AM
Do you have a list of commands for serial? I was using go#\r commands but noticed your using go%d\r, do you have a list or reference that I can use to structure my code. I want to add LED to represent each positon.
11-01-2021
11:30 AM
- last edited on
05-01-2025
04:36 PM
by
Content Cleaner
I recommend you give this article a good read: Format Specifier Syntax
In your case '#' by itself will just return a '#' character. "%d" formats a decimal integer into a string.
11-01-2021 11:44 AM
Thanks again, is this list compatible with Linux from format specifier syntax? Also, do you have list of robotic arm manufacturers that labview supports? Trying to see if interbotix can be used with labview but they make reference to Linux command structure. Do you have any experience in creating a control using a PS4 controller and robotic arm? Any info would, finding some info on youtube using interbotix.