LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why won't my peer-to-peer stream work?

I am attempting to enable a continuous peer-to-peer stream between The PXIe-5122 Oscilloscope and the PXIe-7846R R Series Reconfigurable I/O Module. The PXIe-5122 is currently reading measurements from a PXI-5412 arbitrary waveform generator. At the moment I am just trying to send the read values from the waveform to the PXIe-7846R where I can see just to make sure the peer-to-peer stream is working before I move onto something more advanced. No error is returned but when I view the "element" output from the FIFO read in the 7846R VI no values appear. I have attached the LabVIEW Project below and a screenshot of the host VI (wires leading off screen are for the waveform generator).

Download All
0 Kudos
Message 1 of 5
(1,486 Views)

The first thing I see that looks wrong is that within the loop, you are opening connections, reading, and closing connections every iteration of the while loop.  Both for the oscilloscope and with the FPGA

 

You said you want "continuous" peer-to-peer.  That implies opening connections before the loop, doing the communication within the while loop .... continuously...., and only closing connections when you are done after the while loop.

0 Kudos
Message 2 of 5
(1,451 Views)

I see, so should I just have the "niScope Initiate Acquisition" VI inside the single-cycle timed loop then and everything else outside of it?

0 Kudos
Message 3 of 5
(1,446 Views)

I'm talking about the regular while loop in the picture you attached.  That is not a single-cycle timed loop.

0 Kudos
Message 4 of 5
(1,443 Views)

Right, sorry, mixed it up with the FPGA VI, so I'll keep only the "niScope Initiate Acquisition" VI inside of the while loop?

0 Kudos
Message 5 of 5
(1,436 Views)