The solution is simple. The problem is that you are trying to read the
acquisition data before starting your switching, meaning the AI Read VI
in the Acquire N Scans with Analog Hardware Trigger VI. Therefore your
program is waiting until the acquisition buffer is full before it will
read all the data (that is the default of the AI Read VI). If you set
up the acquisition with the hardware trigger, start it, then do your
switching, then perform the AI Read VI, you can avoid this problem.
Mark
In article <397c8a4f@newsgroups.ni.com>,
"Tianyu Ching" wrote:
>
> I have a PXI-6070E DAQ card, and a 2503 switching card that I've set
up to
> behave
> like a 6x4 matrix. I'm trying to arrange things, so that in my
LabView
> code
> I ca
n use Acquire N analog scans with Hardware Trigger to gather my
data.
> I want to begin acquiring (actually, waiting for trigger voltage) and
then
> have my
> code throw the requisite switches, thereby providing the trigger
needed to
> start acquisition.
> The problem I have is this: The Acquire vi runs first, and the
switching
> vi will not
> run until the Acquire vi has finished. I tried putting them in
sequence,
> but since
> Acquire With Hardware Trig consists of a few other vis, the entire
thing
> must
> finish before the Switch vi will run. I would really rather not
embed the
> Switch vi
> INTO the acquisition vi. I know this is a basic question, but I
can't think
> of many solutions.
> How can I start the Acquire vi waiting for acquisition and then
trigger the
> switch?
>
Sent via Deja.com http://www.deja.com/
Before you buy.