07-10-2006 09:49 AM
07-10-2006 10:00 AM - edited 07-10-2006 10:00 AM
Message Edited by Novatron on 07-10-2006 11:02 AM
07-10-2006 10:41 AM
hi,
I'm using XY graph and it gets the numeric data. The program interfaces with two instruments(pH meter and Syringe pump).we get pH from pH meter and Volume from syringe pump.I should plot the graph from those two values.I'm attaching my vi here. i would appreciate if you can help me solving.
07-10-2006 11:22 AM
Dataflow dictates that the graph cannot execute until both while loops have finished.
If you only want see the full graph AFTER the loops have finished, leave everything as is, but right-click on the two output tunnels of the while loops and enable indexing. Still, there could be problems because the loops are not syncronized. You might get more data from one loop than from the other.
If both loops should output the same amount of data, maybe you sould put everything inside one single loop instead?
To see the graph built while the loops are running, You need to place the graph inside one of the loops and grab the "other" value via e.g. a local variable. (Also disable "clear with each call" on the xy graph express VI).
Sorry, I don't have any NI-DAQ installed, but what determines the loop time of the upper loop?
07-10-2006 11:52 AM