02-04-2013 01:33 PM
Hi,
I am trying to prepare a VI that is capable of acquiring, analysing, and recording the results via a state machine but there is someting wrong about acquisition state. I intended to acquire 2 different signals, one of them is temperature and the other is amper. Temperature is acquired precisely but the ampera is not. What could the problem is here?
02-04-2013 01:50 PM
You need to have both of your channels in a single task.
02-04-2013 01:57 PM
Since you are only reading a single value, I don't see a reason to use the start and stop DAQmx task VIs. Just use the read (it will take care of it all for you). That might clear some things up.
Another thing I noticed is that you are not closing out your log files.
02-04-2013 02:06 PM
Actually, I do not understand what you meant whit gathering channels in one task.. Could you explain it explicitly?
02-04-2013 02:07 PM
Yes I have forgotten to close them. I fixed it. Thanks. And also I delete the start and stop functions and it works as it has done before.
02-04-2013 02:21 PM
@pallen wrote:
You need to have both of your channels in a single task.
I could not still handle with it. What do you mean with a single task? I need to acquire 2 anlaog signals from different modules of a compact daq. How could I do it in single task?
02-04-2013 03:10 PM
Hi Egemen,
There's an example that illustrates what I'm describing.
\National Instruments\LabVIEW 2012\examples\DAQmx\Synchronization\Analog Input - Voltage and Thermocouple in a Single Task.vi
Or, you can open the Examle Finder and type "Input". There should be an example called, "Analog Input - Voltage and Thermocouple in a Single Task.vi"
02-04-2013 03:22 PM
Hi Patrick,
Thank you for your response but I have Labview 2009 SP. I search to find an example something like you mentioned but I have not found it. Also the case that I am trying to constitute is not synchronization of analog input and analo output. Both of signals are analog inputs. Could you send the example (saved as for 2009 SP1 version) to me ? Thanks in advance.
02-04-2013 04:18 PM
Hi again Patrick,
I found something about multi measurements and attached the snippet. Did you mean something like that?
02-05-2013 07:02 AM
@newbieeng wrote:
Hi again Patrick,
I found something about multi measurements and attached the snippet. Did you mean something like that?
Yes. That is what you should be doing. Then for the read, you need to select multiple channels. The result will be an array, so you will need to index the values out.