From 11:00 PM CST Friday, Feb 14th - 6:30 PM CST Saturday, Feb 15th, 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: 

Please help me assign channel names

Hi Im trying to log select data when any of 24 signals rises above 5 V which I have done with Greater or Equal Express VI. I'm having a hard time getting this data to my file via Write to Measurement File. A waveform plot that I have connected to this signal has no problem extracting the channel names from the signal. However they aren't as easy to get into my data file. I have been searching quite a bit and I know I need to convert to array to get names then back to dynamic for the file making. I'm not having any luck with this approach.  I have quite a few dummy channels involved and I thought about extracting channel names from mx, but obviously I'm only interested in the selected signals of specific channels that have specific voltages.  

 

Thanks.

0 Kudos
Message 1 of 9
(3,890 Views)
It looks like you are trying to assign the tab character as a channel name. There is an Express VI to do this. Everything else is Express, why not use that?

Since you did not attach the actual VI or an image in the correct format (look up snippet) and all of the details are hidden because you do use nothing but Express VIs, really difficult to say what else might be wrong.
0 Kudos
Message 2 of 9
(3,877 Views)

What Express VI does that? Snippet attached. Thanks Dennis.

 

 

 

0 Kudos
Message 3 of 9
(3,871 Views)

Okay here's the other approach I tried. I'm not sure what to do with the channels terminal on the read data expres vi.  It has a storage format, but I think the channel names are in there. I need them to go into my rows on the csv. What I have runs but doesn't work. Any hints appreciated.

0 Kudos
Message 4 of 9
(3,840 Views)

That last VI does not make any sense to me.

 

The Express VI to set a signal name is called Set Dynamic Data Attributes. The set waveform attribute function probably would have worked if you gave it an actual name instead of a tab character, which is something I already mentioned.

0 Kudos
Message 5 of 9
(3,826 Views)

I had a bunch of uneccessary VI's. Results are getting better in that each channel goes to a column in the data file but still no time column or channel labels. 

 

 

0 Kudos
Message 6 of 9
(3,799 Views)