LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I select more then one channel to view in tdms file viewer graph panel

I have a TDMS file that I can view with the labview 2013 TDMS file viewer and I can select one signal out of 15 signals to view on the graph panel. however I would like be able to look at 2 or 3 signals

on the same graph but can't seem to be able to select more then one signal at a time. Is there a way to select more then one to view?  

0 Kudos
Message 1 of 12
(4,280 Views)

Generally, TDMS file viewer doesn't support viewing multiple independent channels in a graph. You can only view all the channels of a group by seleting the group.

0 Kudos
Message 2 of 12
(4,257 Views)

I've modified the TDMS viewer in the past to allow selecting multple channels.  It's a little bit of a pain because the tree control in the viewer only allows you to select one item.  You have to edit the tree to allow multiple items.  Now your selection is an array instead of a scalar.  This means the rest of the code has to be updated, and the references to the tree in subVIs need to be updated.  Not impossible but it takes some time.  Alternativly open it in Excel with the free add-in then you can select the two columns you want and insert a graph.  Not as simple for the user but using Excel, which users should be familiar with might mean users need less training on data files.

Message 3 of 12
(4,232 Views)

Hooovahh,

 

Do you have an example of the TDMS with multiple channel selection?

 

Thanks!

0 Kudos
Message 4 of 12
(4,054 Views)

I recommend just using Scout.  It was developed by Signal X and it works beautifully.  They do have a free version you can use.


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 5 of 12
(4,049 Views)

We do have Scout, but for my project we need to be able to select multiple channels through LabVIEW. I am fairly new to LabVIEW so any examples of this would be greatly appreciated!

0 Kudos
Message 6 of 12
(4,045 Views)

@SteMob wrote:

 

Do you have an example of the TDMS with multiple channel selection?


Nope, just the description I mentioned earlier.  Change the control to an array instead of a scalar tree, and update the code to select multiple channels, it isn't that difficult, post your code if you are having any specific issues.

0 Kudos
Message 7 of 12
(4,028 Views)

I think I may have figured out an easierish way. In the File Tree: right-click-->Selection Mode-->0 or more items. This allows multiple selections of the tree siblings. However, it changes the type to array as previously stated, so you will have to update the code paths and such, but that seems to be a more intuitive way to get there.

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

@SteMob wrote:

I think I may have figured out an easierish way. In the File Tree: right-click-->Selection Mode-->0 or more items.


...you know that's what I was trying to describe.

 

Anyway I went searching in the depths of old files and found some code that I made that allows multiselect in the TDMS viewer.  It is old, and the newer versions of the TDMS viewer (ones shipped with LabVIEW) probably have some improvements and better code documentation.  I also don't know how well it works, I think it was from a time when the TDMS file format only had 1.0 so you may need to update a few constants.  But it is probably is a decent start.

0 Kudos
Message 9 of 12
(3,980 Views)


Great stuff, thanks! I found 2 of the cases have errors in your program (same cases I was having errors on my program). It's the 3rd and 4th cases ("File Contents" and "Settings"). It looks like the Get Channel List is the VI that is having problems. Most of the errors are different terminal errors or something along those lines, but I'm not really sure how to go about fixing all of them. Any ideas on how to fix them? It may not pull up errors on yours...

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