取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 12 条)
4,835 次查看

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 项奖励
2 条消息(共 12 条)
4,829 次查看

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 项奖励
3 条消息(共 12 条)
4,798 次查看

Hi Gerd,

 

I think you were busy.

 

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

 

Regards,

X. Ignatius

0 项奖励
4 条消息(共 12 条)
4,752 次查看

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 项奖励
5 条消息(共 12 条)
4,738 次查看

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 项奖励
6 条消息(共 12 条)
4,718 次查看

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 项奖励
7 条消息(共 12 条)
4,713 次查看

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 项奖励
8 条消息(共 12 条)
4,684 次查看

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 项奖励
9 条消息(共 12 条)
4,678 次查看

Gerd,

 

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

Regards,

X. Ignatius

 

下载全部
0 项奖励
10 条消息(共 12 条)
4,674 次查看