08-27-2009 09:51 AM
I have a dual-output DAQ (NI-6120) and I would like to output data on each channel as soon as it is ready. Right now, using the DAQ Assistant block, I have to use a merge before the input which causes the DAQ block to not to generate the analog until both signals have arrived. With the below, I would expect to see a phase shift on my scope, but I don't.
Thanks!
Ben
08-27-2009 12:45 PM
08-27-2009 12:57 PM
No doubt about that - I have a lot to learn.
I can't simply use a second Simulate block. In my actual application, the Wait will be replaced with the second signal going out and back to a UDP echoer. It takes about 2msec for the round-trip, and I want this to be reflected in the phase shift I see after the DAQ conversion.
Ben
08-27-2009 01:37 PM
So how many DAQmx reads and writes will be in the actual application? I'll admit to being confused as to the exact system you are trying to emulate here. Is the simulate signal is supposed to represent a DAQmx Write to two separate channels? Will you follow that by a DAQmx Read and then another DAQmx Write?
08-27-2009 02:25 PM
The below pseudo-code is almost exactly I need (except for the not-working part!) Like I said, the problem is the merge waits for both signals to get there before passing them both to the analog output. Seems like the solution would be to use two analog output blocks, one for each signal input. But it won't let me do for the same hardware device.
08-27-2009 02:46 PM
08-27-2009 03:00 PM
Okay, thanks. I'm still looking for a solution to this, then. My objective is actually to measure the time it takes to do the UDP round-trip via measuring the phase shift. Sort of a funny way of doing it, but that's what this test calls for.
08-27-2009 07:48 PM