LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

save data in tdm if button is pressed

Solved!
Go to solution

Hi,

To save my data in TDMS file each time I pressed the button "Save data". I created the VI attached.

My VI worked fine but When I opened the file I found my data, in addition  columns of zero , Cause in the fault case of  my Condition structure I selected use the default value if it's not wired.

I would appreciate your help

Thank you in advance

My best regards

Nadia

0 Kudos
Message 1 of 7
(3,133 Views)
Solution
Accepted by topic author k.nadia

1) You need to wire the TDMS reference and error wire through the FALSE case

2) You have 1 too many items in your channel list array.  Delete element 0.


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 7
(3,128 Views)

Thank you   

The solution is so simple, but I didn't see it Smiley Frustrated

 

0 Kudos
Message 3 of 7
(3,121 Views)

I few a couple more bugs.

 

1) The Reshape Array has the size elements swapped.

2) You might want to use Create Or Replace for the TDMS Open.  Otherwise you will just be adding more data to the file.

 


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
Download All
0 Kudos
Message 4 of 7
(3,115 Views)

Hai guyz,

 

I apologize for using this wall to ask but i went and used a sumilar design for my saving funtion. However when i saved, the whole data was saved in a single column. why is That?

Regards,
Newbie92

Download All
0 Kudos
Message 5 of 7
(2,952 Views)

You reshaped the array into a 1 x 2 instead of a 2 x 1 like the example above showed.

Message 6 of 7
(2,942 Views)

Hai RavensFan,

LOL. That did the trick. Thanks 🙂

 

Regards,
Newbie92

0 Kudos
Message 7 of 7
(2,932 Views)