LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data logging from labview FPGA

Solved!
Go to solution

Hello,

I am working with NI-cRIO 9014 with NI-9104 chassis. I am trying to get analog data from sensor with NI-9219.I am using windows 7 and labview 2017.

I want to acquire data from my sensors so that I have followed a NI tutorial (https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x3ruCAA&l=fi-FI&nisrc=RSS-crio-en). I have made exactly the same FPGA program for my sensor to get analog data. But the problem is, in the output, I am getting exactly half of the input value. There is no resistor connected. Also in the tdms file , some random values are coming in between the voltage variation (marked in the picture). I don't have much knowledge in LabVIEW FPGA so I am seeking help from experts. Can anyone explain why I am getting exactly half of the supply voltage and why random values are coming?

I am sharing my VI files and image of the TDMS file.

 

Thank you in advance.

Best Regards,

Nisatuz Jahra.

 

Download All
0 Kudos
Message 1 of 8
(1,328 Views)

I find it strange you are reading from 4 analog inputs in the FPGA, but you are treating it as a single channel in the RT.  Are you only using 1 sensor (in which case every 4th sample will be real)?  Or are you using 4 sensors (in which case you are interleaving your channel data)?


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
0 Kudos
Message 2 of 8
(1,316 Views)

Thank you for your response. Yes, I have made it for 4 channels but I am using one channel for one sensor. I thought It will not affect the overall output. Should I only keep the channel I am using?

 

Best Regards,

Nisatuz Jahra

0 Kudos
Message 3 of 8
(1,299 Views)

@JAHRA wrote:

Yes, I have made it for 4 channels but I am using one channel for one sensor. I thought It will not affect the overall output. Should I only keep the channel I am using?


Your FPGA can still read 4 channels, but then you need to make sure you are doing something to only extract the data you need on the RT side.  The simple way to handle this would be to use Decimate 1D Array expanded to 4 elements and only keeping the first array.


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
0 Kudos
Message 4 of 8
(1,296 Views)

I added Decimate 1D Array but it's not connecting with the index array anymore. Should I place something else instead of the index array?

 

0 Kudos
Message 5 of 8
(1,284 Views)
Solution
Accepted by topic author JAHRA

Get rid of the Reshape Array.


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
0 Kudos
Message 6 of 8
(1,278 Views)

Hello,

 

After getting rid of the reshape array, there is no data coming in the output at all. And now, in the ftp server the tdms file is showing up. Is there any other way?

 

Thank you for your time.

 

Best Regards,

Nisatuz Jahra.

0 Kudos
Message 7 of 8
(1,239 Views)

Hello,

Thank you so much for your help. My program is working now.

 

Best Regards,

Nisatuz Jahra

0 Kudos
Message 8 of 8
(1,226 Views)