LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Infinite datalogging using cRIO

Hi,

I am a new cRIO programming. Developed simpled datalogging program using FPGA and RT. As per the example given, the code works perfectly but since the array dimension has been given as 500 columns, we are getting the max data points logged was 500 data points.

I want all the data to be logged until pressing the stop button. Attached the RT vi for your reference.

 

Regards,

X. Ignatius

 

 

 

0 Kudos
Message 1 of 12
(3,558 Views)

Hi Ignatius,

 

you should use shift registers for references (file reference, FPGA reference)!

 

Can you attach a TDMS file you created with your VI?

What kind of RT target do you use to have an UI with a chart? (The same with those stop buttons…)

Why do you use string functions to build a path?

Do you get any errors in your (inner) loop?

 

And after all:

WHY do you wire a TRUE condition to your CompoundArithmetic in the inner WHILE loop???

 

Generic question: You know how to use debug tools in LabVIEW?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 12
(3,552 Views)

Hi Gerd,

I tried modifying the example. Now Attached the original RT vi. sorry for the inconvenience.

1. Attached the TDMS file created using the vi.

2. RT target is cRIO 9004.

3. String for the path - modified to try creating multiple files. Now changed to constant path as it was the original as per the example code.

4. No I didn't get any errors in the loop.

5. Additionally attached the fpga vi.

 

0 Kudos
Message 3 of 12
(3,521 Views)

Hi Gerd,

 

I think you were busy.

 

Can anyone help me in completing my simple data logging project.

 

Regards,

X. Ignatius

0 Kudos
Message 4 of 12
(3,475 Views)

Hi Igni,

 

do you still have problems with your code?

(Btw. you forgot to use shift registers for all references…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 12
(3,461 Views)

Hi Gerd,

Thanks for the input, it is working now.

I need the data saved in RT to be moved to Host PC. I tried using FTP get vi but it is not working properly. I had connected the while loop stop button to a case structure to execute the FTP get instruction. Am I right in doing this?

Regards,

X. Ignatius

 

 

0 Kudos
Message 6 of 12
(3,441 Views)

Hi Igni,

 

I tried using FTP get vi but it is not working properly.

What does it mean? Any error messages/numbers?

 

I had connected the while loop stop button to a case structure to execute the FTP get instruction.

Why do you call a FTP.Get function in your RT target?

 

Am I right in doing this?

Dunno. You don't show snippets or VIs…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 12
(3,436 Views)

Hi Gerd,

Attached the vi as per the request.

I am using FTP.get to transfer the tdms files from the RT to the HOST PC.

 

Regards,

X. Ignatius

 

 

 

 

0 Kudos
Message 8 of 12
(3,407 Views)

Hi Igni,

 

why do you download a file from your HOST PC to your RT target when you want to do the opposite?

 

Shouldn't you use FTP.PutFile to move a file from RT to HOST?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 12
(3,401 Views)

Gerd,

 

Modified the vi with FTP.PUT but I am getting an error. Attached the error screen and the vi.

Regards,

X. Ignatius

 

Download All
0 Kudos
Message 10 of 12
(3,397 Views)