Discussion:
I want to Create a Project that combines TWO VIs, is it possible?
(too old to reply)
SeaMist
2008-08-15 00:10:27 UTC
Permalink
Hi every one&nbsp;I am working on a project that essentially is split into two part at the moment;&nbsp;1. Data Acquisition - (In LabVIEW SignalExpress)2. Data Manipulation&nbsp;Now I want to combine them together so that they can work sequentially together at the same time (sequence being ACQUIRE DATA, then MANIPLUATE DATA).&nbsp;Data Acquisition&nbsp;I am reading two channels simultaneously. So SignalExpress (SE) is configured such that it ACQUIRES the data for (lets say) 2 seconds and then it WRITES this data as .lvm at a certain location.&nbsp; <img src="file:///C:/Users/YAZAHR%7E1/AppData/Local/Temp/moz-screenshot-1.jpg" border="0"> &nbsp;&nbsp;Now because of the recording options available in SE (i.e. starting and stopping conditions met?) I have favored SE for data acquisition. When I generate a LabVIEW code of this SE code, VI comes up fine, but I loose automatic control of &quot;Stop Recording Data&quot;, i.e. user has to run the generated LabVIEW code, and the user has to MANUALLY start &quot;Recording&quot; and &quot;Stop&quot; it manually as well.&nbsp;Question No1: How can I confugure the Data Acquisition VI directly in LabVIEW with the ability to ,&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; a) When user hits &quot;Run&quot;, VI starts Acquiring the data simultaneously for specified time, and when that time has lapsed, automatically stops recoding it&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; b) The same VI also &quot;Writes&quot; the recorded data (specified time) at a specific location.&nbsp;Data Manipulation&nbsp;This VI does some data manipulation on already recoded data and is working fine.&nbsp;Question: How can I best integrate the both parts of my project (Data Acquisition + Data Manipulation) in just the ONE VI, eliminating the need of having to acquire the data in SE and the manipulating it with LabVIEW?&nbsp;I need help!&nbsp;Cheers&nbsp;
mikeporter
2008-08-15 02:40:19 UTC
Permalink
What you are wanting to do is very easy. Check out the examples that ship with LV. You will find code for doing data acquisition, signal analysis and program architecture. You might also want to consider getting some good training to answer your basic question, or go through the getting started materials that ship with LV.&nbsp;Mike...&nbsp;
Loading...