07-29-2013 06:58 AM
I have created a RT FIFO like the figure below.
When I want to write to FIFO I get the following error.
Solved! Go to Solution.
07-29-2013 07:42 AM
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
07-29-2013 07:50 AM
RT FIFO is created with a data type of "fix-piont" but the error says that it is "double," that's confusing.
07-29-2013 07:51 AM
Please post the VI for further analysis....
Norbert
07-29-2013 07:54 AM
Please find attached the VI.
07-29-2013 08:10 AM
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
07-29-2013 08:19 AM
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.
07-29-2013 08:28 AM
I connected a 1D array of fixed-point type to configure the RT FIFO and the problem solved.
07-29-2013 08:30 AM
If the data you want to put into the FIFO is an array, the default datatype must be array as well:
Norbert
07-29-2013 08:31 AM
That's right.