11-05-2007 01:41 PM
11-05-2007 02:02 PM
11-05-2007 02:37 PM
11-05-2007 02:53 PM
Why are you using 2 DAQ Assistants? That would only generate an error. A single DAQ Assistant can have multiple channels.
You really didn't answer my question either about how you are acquiring the data. N Samples, On demand, etc.
The From DDT (convert From Dynamic Data) is on the Express>Signal Manipulation palette.
11-05-2007 03:14 PM
11-05-2007 03:49 PM - edited 11-05-2007 03:49 PM
Here's one of many ways to get the individual channel data. The Convert from Dynamic Data converts to an array of waveforms. The Index Array gets each channel. The Get Waveform Components gets the Y array from each waveform. You haven't said what type of comparison you want to do so I left it that.
11-12-2007 12:50 PM
I'm tryin to use the DAQmx Trigger funciton (start analog window) to use the acquired signals to trigger an output signal However, I have no idea how to use the function. the signals were coverted from dynamic data to array as explained by Dennis. When source 2 (Ch 1) is at a given threshold, the output signal should be triggered, until source 1 (Ch 0) reaches that same threshold value. the trigger function indicates that I need a source but it cannot use the array because function requires a string. Do I need to convert the data or is the function asking for something else? I would really appreciate your help.
11-12-2007 03:10 PM
11-13-2007 01:54 PM
Hi,
Dennis’s methods will complete the task that you described and if you would like more information on analog triggers please look at the following document. It will be fairly simple to accomplish this task using software but it will be more difficult to accomplish this using hardware triggers. If you do not require deterministic timing then software will be the best route.
Tips and Techniques in Data Acquisition Triggering - NI-DAQmx
A screen shot of your code would be very helpful in determining the best way to accomplish this task. With regard to the source input on the trigger function that is referring to the analog channel that the trigger should be watching. Please post back if you have more questions.