From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Re: How do I write signals'names on the TDMS file using CAN bus without having to hardcode every single of them?

Solved!
Go to solution

rt089_1-1600927811839.pngFig.1

rt089_2-1600928063122.pngFig.2

 

 

Hi,

 

I am trying to run "CAN INput Stream to TDMS logfile" example from "NI Example Finder", but I encounter an issue as shown in Fig.1 above. I used different file path and cluster name as shown in Fig. 2. Could anyone help me to solve this issue? Thank you beforehand.

0 Kudos
Message 1 of 11
(1,649 Views)

Hi rt,

 

which system do you use to run that VI?

Is the filepath available to this system?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 11
(1,645 Views)
Solution
Accepted by topic author rt089

Hi GerdW,

 

I am using cRIO 9045.

 

May I know what do you mean by "filepath available to this system"?

 

I just copied the example VI file into my folder where my Labview Folder located.

In "TDMS open", I chose "create or replace" and file path is the same folder where I saved my VI. Still, I am not able to create the tdms file.

My file path is

D:\Document_Ddrive\CAN VI\Gaurav_Model\logfile_test.tdms

 
 

tdms_filepath.PNG

tdms_error.PNG

 

Thank you very much.

Rudy

0 Kudos
Message 3 of 11
(1,595 Views)
Solution
Accepted by topic author rt089

Hi Rudy,

 


@rt089 wrote:

I am using cRIO 9045.

May I know what do you mean by "filepath available to this system"?

 

I just copied the example VI file into my folder where my Labview Folder located.

In "TDMS open", I chose "create or replace" and file path is the same folder where I saved my VI. Still, I am not able to create the tdms file.

My file path is

D:\Document_Ddrive\CAN VI\Gaurav_Model\logfile_test.tdms


The cRIO is a computer on its own - which has NO ACCESS to the files located on the harddrive of your development computer!

(In general you don't want other computers give access to ALL files on your own computer nowadays - think about all those security implications!)

 

You need to deploy all files needed by your realtime target onto this target.

Did you read the cRIO basics tutorials?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 11
(1,584 Views)

Thank you very much for your explanation, GerdW.

 

For logging large amount of data over period time, may I know what is your suggestion?

 

Any recommended sources (e.g. website link) for cRIO basic tutorial?

 

Regards,

Rudy

0 Kudos
Message 5 of 11
(1,565 Views)

Hi Rudy,

 


@rt089 wrote:

For logging large amount of data over period time, may I know what is your suggestion?


LabVIEW comes with a lot of example VIs and projects. There are also several projects explaining the usage of cRIO targets for different purposes, like data logging…

For logging large amounts of data I would stream the data to your PC (when the cRIO is always connected to your network).

 


@rt089 wrote:

Any recommended sources (e.g. website link) for cRIO basic tutorial?


  1. See those Training resources in the header of the LabVIEW board!
  2. Look for tutorials in the Support library
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 11
(1,547 Views)

@GerdW wrote:

Hi Rudy,

 


@rt089 wrote:

For logging large amount of data over period time, may I know what is your suggestion?


LabVIEW comes with a lot of example VIs and projects. There are also several projects explaining the usage of cRIO targets for different purposes, like data logging…

For logging large amounts of data I would stream the data to your PC (when the cRIO is always connected to your network).


Hi GerdW,

Ok. In that case, can I use the tdms for logging the data and streaming it to my PC?

 

May I know how to create tdms file in cRIO? Is there any example?

 

Regards,
Rudy

0 Kudos
Message 7 of 11
(1,529 Views)
Solution
Accepted by topic author rt089

Hi Rudy,

 


@rt089 wrote:
Ok. In that case, can I use the tdms for logging the data and streaming it to my PC?

May I know how to create tdms file in cRIO? Is there any example?


You can use TDMS also in the cRIO.

You create the TDMS file the same as on a standard (Windows) computer using the TDMS functions. All you need to care about is using the correct local path of your cRIO! (Open the web interface of the cRIO, which you hopefully installed with the system setup, and browse for a nice path…)

 

For streaming data to your PC you should learn about using NetworkStreams!

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 11
(1,514 Views)

Hi GerdW,

 

Thank you very much for your kind helps.

 

Is it the path which you referred to? 

 

rt089_0-1601543182530.png

 

0 Kudos
Message 9 of 11
(1,433 Views)

Hi Rudy,

 

the usual path is ni-rt/startup/data...

 

(The RTEXE is deployed to this startup folder.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 11
(1,410 Views)