LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

attach labels for write to measurement file and graphing

I am currently having alot of problems with attaching labels to double type of wires and changing the label attached to the dynamic type of wires. I want the write to measurement file to have the correct headings but the current headings for the columns are displaying untitled or change the heading for the dynamic type of wire. I attached a picture of the program and I would be very grateful if anybody knew how to change these headings.

 

 

untitled.JPG

0 Kudos
Message 1 of 6
(6,958 Views)

This is a question that has been asked numerous times. In the DAQ Assistant, when the dynamic date is created, there is a name assigned to each channel and it is this name that the Write to Measurement file uses. If you convert from dynamic data to anything other than waveform data type and then back to dynamic data, the name is lost. If you convert to dynamic data from a scalar or an array, there is no channel name information to start with. The way to use dynamic data with names is to convert to a waveform data type and use the Set Waveform Attribute function and then convert to dynamic data. There are examples with the posts so you can search the board for how to do this.

 

In my opinion, though, dynamic data is just evil. You can just as easily use waveform data or normal arrays with the Export Waveforms to Spreadsheet file or the Write to Spreadsheet file. You can write the column names with a Write to Text file function.

0 Kudos
Message 2 of 6
(6,947 Views)

I actually modified the 'write to spreadsheet file' to accept string arrays (and saved it as a new vi).

This way, you can make an array for all the column names.
Write this array to the file before collecting any data, then just append data to that file.

 

Cory K
0 Kudos
Message 3 of 6
(6,919 Views)

Cory,

 

What version of LabVIEW are you using. The current Write to Spreadsheet does accept string arrays.

0 Kudos
Message 4 of 6
(6,917 Views)

Apparently an older one Smiley Very Happy

 

On this computer, 8.2 though the other 2 computers I use have 8.6.1

 

I just like working in this room because .... well I dont really know why

Cory K
0 Kudos
Message 5 of 6
(6,915 Views)

Try this VI I made. It takes in a Double signal and a string, names your signal, and outputs it as a Dynamic Data.

I used this with the Write to Measurement File without any issues!!!

 

Name DBL Signal VI.png

 

To name a Dynamic Data Signal, use the Set Dynamic Data Attributes VI found in Express > Signal Manipulation

 

Hope this helps,

Cheers

Download All
0 Kudos
Message 6 of 6
(6,182 Views)