LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i send more than one signal to DMA FIFO?

Solved!
Go to solution

Hello,

 

I'm trying to send more than one signal to DMA FIFO, but i don't know how to do. When i send one signal i don't have problems. I try to use one block DMA FIFO for one signal. For example if i have 3 signal i use · DMA FIFO but whe i want to wath them in a waveform chart the signals have a delay.

 

How can I do to send more than one signal to DMA FIFO? and if that's no posible, How i can do for syncronizate the 3 signals?

 

The data type of the signal is FXP <16,10>

 

Regards.

 

Pablo

Download All
0 Kudos
Message 1 of 22
(4,529 Views)

If all of your signals are 16 bit numbers you can use the join numbers function to pack the three signals into one 64 bit number to send up through the FIFO.  You can use the split numbers function when you read from the FIFO to get back your original signals.

Matt J | National Instruments | CLA
Message 2 of 22
(4,492 Views)

hi Jacobson,

 

If i want the data type in FXP i can't use that block. Do you know how i can solve?

 

 

0 Kudos
Message 3 of 22
(4,457 Views)

You just need to do a quick reinterpret to integer and then use Join Number.  In this example, you will want your DMA to be of a U64.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 4 of 22
(4,437 Views)

and for read, is this okey?

 

thanks for your help!

Block diagram.jpg

 

0 Kudos
Message 5 of 22
(4,421 Views)

Not quite.  You need to use the Integer To Fixed Point Cast to change from the integers to your FXP numbers.  You can then build them into a cluster to write to the Waveform Chart.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 6 of 22
(4,414 Views)

i don't know what happen! I do the same and i cannot be wired and i have error!  Smiley Sad

 

block diagram.jpg

 

error list.jpg

Download All
0 Kudos
Message 7 of 22
(4,396 Views)

The Integer To FXP function cannot act on arrays.  So put your conversion code inside of a FOR loop.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 8 of 22
(4,390 Views)
Only the part that i use the integer to FXP? I thought that your example i can apply un my case
0 Kudos
Message 9 of 22
(4,374 Views)

@pablosan wrote:
Only the part that i use the integer to FXP?

Yeah, just the Integer to FXP needs to be in a FOR loop.  Then you should have arrays going into the bundle.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 10 of 22
(4,352 Views)