You wrote:
I have been working with a vi witch connects to a serial port and reads load and displacement, how can I simulate the type of data I would normally be receiving , so that I can test everything thoroughly, without actually connecting to the instrument at work.
One of the nicest things about LabVIEW is that it allows you to create easily "stubs", dummy VIs with the same connector pattern at the real ones, to replace external equipment. I commonly simulate serial port writes and reads with very simple VIs in which large front panel string controls and indicators allow you to specify and observe any character sequence you can imagine. This is readily extended to simulated real data by using the LabVIEW sine and random functions driving these controls through the appropriate formatting functions. The LabVIEW express VIs offer an even easier way to mimic real data.
I'm attaching (private email only) a set of such VIs from a LV3 project , converted to LV6. Since they have the same names as the built-in VIs they replace, make sure that all 11 stubs load from the Stubs.llb.
--
EnWirementally,
Paul F. Sullivan----------------------------------------------------
SULLutions (781)769-6869
"when a single discipline is not enough"visit http://www.SULLutions.com
----------------------------------------------------
