12-03-2020 12:46 AM
Hello everybody ,
what happened when the fifo get Data from 2 channels at the same time ?
the data is the times that come the pulses come from .
Thanks
Daniel
12-03-2020 01:31 AM
Hi Daniel,
@DaletCohen wrote:
what happened when the fifo get Data from 2 channels at the same time ?
Then the FIFO gets data from 2 channels…
Are you sure those 2 dates really "come at the very same time"?
Mind to attach your code?
12-03-2020 01:40 AM
Yes it’s could be .
i have some detectors that could get pulses simultaneously. And I need to detect it in the same FIFO .
How can I send you my code ?
12-03-2020 02:03 AM - edited 12-03-2020 02:04 AM
Hi Daniel,
@DaletCohen wrote:
How can I send you my code ?
There's an attachment area below the text editor box when you write a message. Use it to attach your code!
(For FPGA VIs it really helps to attach the whole project including the lvproj file as it contains all the FIFO definitions. When attaching several files it is recommended to put them all into just one ZIP file. Use ZIP, no other proprietary archive format. I prefer code downconverted for LV2017: file menu -> save for previous…)
12-03-2020 02:52 AM
@DaletCohen wrote:
Hello everybody ,
what happened when the fifo get Data from 2 channels at the same time ?
the data is the times that come the pulses come from .
Thanks
Daniel
As Gerd said, your FIFO will contain (after the two channels/sources enqueue their data elements) two data elements.
If you want to distinguish them, you should include other information with the data (such as an identifier of the source, an index of the measurement, etc).
Depending on what you want to do with the information/data "later" (i.e. after dequeuing, so maybe later here is in micro/milliseconds), you could send different types of information. But the time at which they are enqueued might not be critically important.
If the question is about pairing two data sources' information, it might be important to add a counter value or something to the information, or use some sychronization to ensure that you could use something like Decimate 1D Array to split a 1D array into multiple arrays, one per source (this requires that the FIFO receive elements like A B A B A B A B and never receives AABABABABABBABABAB... with some misordered elements).