LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RT FIFO error

Solved!
Go to solution

I have created a RT FIFO like the figure below. 

When I want to write to FIFO I get the following error. 

 

fxp.png

0 Kudos
Message 1 of 11
(3,778 Views)

You have read the error message?

It clearly states the reason for the broken wire: Datatype mismatch.

 

What bothers me is that the error message you inserted talks about "1-D array" as source AND sink. I would expect your FIFO to be the sink, and it is configured as scalar fixed point (if you connected the Create FIFO correct)

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 2 of 11
(3,770 Views)

RT FIFO is created with a data type of "fix-piont" but the error says that it is "double," that's confusing. 

0 Kudos
Message 3 of 11
(3,765 Views)

Please post the VI for further analysis....

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 4 of 11
(3,762 Views)
0 Kudos
Message 5 of 11
(3,760 Views)

As i don't have your bitfile available, i cannot see the original datatype you want to put into the FIFO.

But it seems to me that it is an array as you get that value from "Decimate 1-D array" and you also put that value into a waveform as 'Y' (meaning: The data array!).

 

Also, the constant you are using for initialization of the FIFO is scalar fixed point set to "adapt to entered data". I would expect you to define the configuration of the fixed point number beforehand (configuration in "Data Type" tab).

 

hope this helps,

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 6 of 11
(3,753 Views)

Yes, the data to be input to RT FIFO is 1D array of fixed-point type. 

 

The problem is still there. 

I think I need to play around with the RT FIFO to solve this. 

0 Kudos
Message 7 of 11
(3,750 Views)

I connected a 1D array of fixed-point type to configure the RT FIFO and the problem solved. 

 

fxp.png

0 Kudos
Message 8 of 11
(3,746 Views)

If the data you want to put into the FIFO is an array, the default datatype must be array as well:

FIFO array fixed point.PNG

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 9 of 11
(3,743 Views)

That's right. 

0 Kudos
Message 10 of 11
(3,741 Views)