09-08-2007 09:00 AM - edited 09-08-2007 09:00 AM
As Bill mentionned (and shown nicely in his last post 😉 ), you MUST maintain the appropriate dataflow. You can accomplish this using by wiring the error cluster appropriately.
Otherwise you'll be saving a blank graph (or previous graph).
I modified your image (not the code), which I attach below. One comment is when you have two looks basically doing the same thing, try to combine them into a single loop.
Also note... (I just saw it after modifying and posting the image): your array is already a string array. You do not need to convert it, unless you want to modify it's formatting. You could wire directly to the "Write to spreadsheet file.vi" (you can wire numerics directly to it also). 🙂
Message Edited by JoeLabView on 09-08-2007 10:08 AM
09-08-2007 10:12 AM - edited 09-08-2007 10:12 AM
Hey guys!
Dataflow is important but your error cluster does not guaratee that the xy graph contains fresh data! You only guarantee that the xy express vi executed before the image, but it does not guarantee that the graph updates before the image is taken. (most likely it will be OK, but there is no guarantee!)
^ first ^later ^after first, but no necessarily after "later".
This is one of those cases where a two-frame flat sequence is needed. Also don't forget that xy graphs take complex data directly, so here's a quick draft with a lot of missing wires that should point you in the right direction.
Message Edited by altenbach on 09-08-2007 08:13 AM
09-08-2007 12:56 PM
09-08-2007 01:27 PM
09-08-2007 08:01 PM
Nice job Altenbach 😄
09-09-2007 12:12 AM
09-09-2007 12:57 AM
09-09-2007 01:19 AM - edited 09-09-2007 01:19 AM
Message Edited by altenbach on 09-08-2007 11:23 PM
09-09-2007 01:47 AM
09-09-2007 02:09 AM - edited 09-09-2007 02:09 AM
Message Edited by altenbach on 09-09-2007 12:11 AM