LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial over run

Solved!
Go to solution

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.

0 Kudos
Message 1 of 7
(2,110 Views)

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?



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 7
(2,105 Views)
Solution
Accepted by topic author Manny904

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. 

Manny904_0-1635360284492.png

 

0 Kudos
Message 3 of 7
(2,029 Views)
Solution
Accepted by topic author Manny904

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.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 4 of 7
(2,015 Views)

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.

0 Kudos
Message 5 of 7
(1,958 Views)
Solution
Accepted by topic author Manny904

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.



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 6 of 7
(1,954 Views)

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.

0 Kudos
Message 7 of 7
(1,950 Views)