LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data logging failure...

Solved!
Go to solution

Dear experts...
I am currently trying to collect acceleration sensor data using cRIO-9042 and NI9232 module, but when I run the FPGA code created by referring to the NI homepage, only the input data is 0... (please see the Figture)
If you know the cause or solution of this phenomenon, please reply.
I will attach a VI and a project.
Thank you.

캡처.PNG

0 Kudos
Message 1 of 10
(2,825 Views)

I guess this is caused by error7. File path "c:\analog_input.tdms" is not valid for Linux-RT.

Please check valid path --> Working with File Paths on Real-Time Targets

 

Certified LabVIEW Developer
There are only two ways to tell somebody thanks: Kudos and Marked Solutions

GCentral
Message 2 of 10
(2,795 Views)

Dear, Emboar.

 

Thank you very much for your opinion.

I changed the file storage location to'/home/lvuser/test.tdms' by referring to the link you provided, but the same thing happens.

Maybe it's because of another problem.

 

Thank you.

 

0 Kudos
Message 3 of 10
(2,766 Views)

Error 7 was removed? Or still there?

Certified LabVIEW Developer
There are only two ways to tell somebody thanks: Kudos and Marked Solutions

GCentral
Message 4 of 10
(2,755 Views)

Error 7 is gone, but the data is still only measured as zero...

캡처2.PNG

 Thank you.

0 Kudos
Message 5 of 10
(2,748 Views)

On FPGA VI,  there is type mismath. Mod2/AI0 is "signed, 24,7" but FPGA FIFO is "signed, 26,5".

Why don't you fix it.

 

When you directly see the returned FXP value on RT VI, do you also see "ZERO"?

Certified LabVIEW Developer
There are only two ways to tell somebody thanks: Kudos and Marked Solutions

GCentral
Message 6 of 10
(2,740 Views)

What sensor are you using?  Do you need to turn on the IEPE for the sensor?


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 7 of 10
(2,695 Views)

Sorry, I'm late.

When I looked at the FPGA I/O output as a probe in FPGA.vi, I found the following values:

The meaning of the sentence in the red box is 'not executed'.

 

And Second figure is current Labview project tree.

 

What's the problem...??

 

그림1.png캡처.PNG

0 Kudos
Message 8 of 10
(2,626 Views)
Solution
Accepted by topic author DNS_MTB

Notice in your project there is a I/O called "Mod2/Start".  You need to write a TRUE to this in order to enable the ADC on the module.  So write to that IO before your loop.

For more details: NI 9232 (FPGA Interface) 


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 9 of 10
(2,599 Views)

As you told me, I used 'Mod2/Start', 'Mod2/Stop'  block, then It works well !!

 

Thank you very much.

 

Have a nice day ^^

0 Kudos
Message 10 of 10
(2,572 Views)