05-07-2010 04:07 PM
Hi
I am developing a vi, which takes data from a series of tests. Some of this data is analyses using peak detection software others simply using an array function for outputting a minimum value. This data is then processed using a mathscript function, where the boolean outputs are produced depending on the input combinations. Outputs from mathscript are then processed using logic gates.
Our main problem is that the data entering the mathscript code is coming in at different times as the tests have an order of operation. What I am looking for is a method where we can store the data that is being inputted into the mathscript and transfer all the data simultaneously after the testing is complete so as to make the mathscript processing more efficient.
Thanks
Chris
05-07-2010 04:17 PM
Chris,
I think you could probably use the auto-indexing functionality of a while loop (or a for loop if you know how many data points you're recording) for this.
-Shawn
05-07-2010 04:22 PM
ok i will give this a try.
Thanks
Chris
05-07-2010 05:35 PM
If you send data into a node over wires, the data is held in the wire itself. The node won't start until all data input is present. Consider the following example. The formula will not start executing until the three loops have finished because the data inputs will not all be present until the loops have finished. The first loop finishes in 100mS. The last loop in 5 seconds. The formula will wait until the last data input is present (5 seconds) before it starts executing. So if you wire your data such that they go into a node or structure, the node will not start processing until all data is present. Is this sort of what you are asking? If not, please be more specific. There are things like notifiers and occurances that can be used to cause a program to wait at a certain point until some other action is done.
05-07-2010 05:50 PM
thanks for your help, I am away from my lab just now but am going to give it a try later and will get back with the results.
thanks
chris