09-17-2018 02:37 PM
Hi New at this and trying to figure out an issue. My company has Labview 8.6 and it would be nice to have a newer version but they don't have the budget for it.I also hope I post this in the right post. I enclosed a JPG of the Labview program. I have everything working on it except when I use an internal while loop. When I press the Move X it works fine but when I press move y the controller will not respond. if I remove the while loop the Y axis will move. I plan to do a multi function inside the while loop. Any suggestion of what I am doing wrong would be appreciated. This is a test program to ressolved any issue.
Thanks
JJM
09-18-2018 12:32 PM
I'm not sure why the loop would have any affect on how this code would run. However it doesn't seem to be doing anything so why have it at all?
You could try using highlight execution to see what's happening with that.
More generally though, an event structure might be a more appropriate tool for what you are trying to accomplish.
Hope this is helpful!
09-18-2018 01:21 PM
Thanks for the reply; what I am trying to do is I place the board in the machine. And inside the machine I have a camera mounted inside where the X axis and Y axis moves the camera where the software tells it to go. I then have the camera go to the bottom left corner and take a reading of the position of both servos and store those values. Then the machine is moved to the upper right hand corner and stores the data. Now with a little math the machine knows the size of the board inside it. The reason I need the while loop is that the machine needs to go back to the bottom left corner and sends a command to LabView which then looks at the sections for any missing parts then moves to the next sections until it scans the whole board. I am new to this and I am open for any other suggestions. Basically I am turning an old sprayer machine into an AOI station.
09-19-2018 02:59 PM
Did highlight execution reveal any interesting/unexpected behavior?
09-20-2018 01:47 PM
Do to my work load I am hoping to try it later this week. You also given me some other ideas to try. That is what is nice about this site talking to others on here and getting suggestions.
09-21-2018 12:56 PM
Yeah, the forums are a pretty great place to get suggestions!
Post back if your testing next week reveals anything interesting!