01-19-2013 02:42 PM
OK.
To implement a model can be fairly straightforward.
Let's look at a simple mode in one dimension: x = v * t + x0, where x0 and v are given constants. You want 10 points for t. Use a for loop. Let t = i. Drop a Multiply function and an Add function onto the block diagram from the Numeric palette. Wire up according to the formula. Wire the output of the Add to the edge of the for loop with autoindexing enabled. The output will be an array of x values. Wire t (i) to a different place on the edge of the for loop to get an array of t values.
You have now implemented a model representing a simple physical system.
To display this on an XY graph connect a Bundle primitive (Cluster, Class & Variant palette) to the arrasy and to the XY Graph terminal as indicated by the context help window.
You now have the model results displayed on an XY Graph.
Replace the simple example equation with one appropriate for your physical system and you are done.
If you have problems, post your VI so we can help.
Lynn