01-21-2016 08:16 AM - edited 01-21-2016 08:36 AM
I'm working on a small VI (seen in attached picture) which is to be part of a larger program. I am trying to write an array of data to the serial port until all the points in the given array are completed using a for loop. Everything seems to work fine until about the 25th or so iteration, which is when the screenshot was taken. While single stepping, the loop freezes at the VISA Write block indefinitely. I'm not sure what the hangup is as I've used this VI to write other data sets with no problems as well as the first 25 points of this data set. Any help is appreciated.
Thanks
01-21-2016 08:36 AM
01-21-2016 08:40 AM
Can you explain how the configure serial port is repeatedly being called? Since it is outside the for loop, shouldn't it only be opened once?
As far as auto indexing, I was unaware the array into the for loop automatically did that, thanks. Is there any actual problem with wiring the N terminal as well? Other than being redundant? I've done this in other loops and never came across a problem.
01-21-2016 08:59 AM
01-21-2016 09:19 AM
I've attached the vi for your further reference.
Thank you for the help so far.
01-21-2016 11:10 AM
I haven't solved the or determined the acual problem but I have found a way around it. Seperating it into two loops, each completing half the data set, seems to work. Still unsure as to why the single loop stopped working after about 25 iterations.