LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Questions regarding output files

Solved!
Go to solution

Hi,

 

LabVIEW 8.5 user with a question regarding output files, as alluded to in the subject title!

 

Firstly is there a way I can rename "Dev1/ai0 (Formula Result)" (for example) in my output file?  I'm just wondering because in some files I write out various columns, each with the default name or untitled, and while it's still obvious to me what the parameters are it wouldn't be to others.

 

Thanks.

---------------------------------------------------

LabVIEW 8.5 User.
0 Kudos
Message 1 of 9
(2,948 Views)

Hello cevert73,

 

Thank you for posting on the National Instruments forum.

 

To be able to help you I would need some more information because it is a bit unclear at the minute.

 

What is your output file? Can you post it so that I can see how this is being generated?

Which device are you using?

Can you also post your code so that I can look at how you are trying to generate your output file?

 

Thanks,

Shalini B
Applications Engineer
National Instruments UK & Ireland
0 Kudos
Message 2 of 9
(2,905 Views)

This can be done in multiple ways. You can set up a global channel with the name you want to use. You can set up a task and give that the name you want to use. You could save the data in the file with a label for the device channel instead of the actual channel name. You would need to see which one fits your program and abilities and go from there.

Tim
GHSP
0 Kudos
Message 3 of 9
(2,901 Views)

Hi,

 

I've created a simplified example VI to pad this out which takes the output from a multifunction DAQ whereafter I manipulate the signal (here dividing by 10 which could be thought of as normalising with respect to a length scale or perhaps interacting with a signal obtained from another channel for example) while taking some statistics which are also written to file.  My question is how would I label each of the columns in an output file of this type?

 

I realise I can concatenate strings in the comment but I have reason to avoid this.


Thanks.

---------------------------------------------------

LabVIEW 8.5 User.
0 Kudos
Message 4 of 9
(2,886 Views)

Does anyone have any suggestions on this issue for me?  Thanks.

---------------------------------------------------

LabVIEW 8.5 User.
0 Kudos
Message 5 of 9
(2,858 Views)

Hi cevert73,

 

Have a look at the VI attached which allows you to change the channel names of your device programmatically.

 

Hope this helps.

Shalini B
Applications Engineer
National Instruments UK & Ireland
0 Kudos
Message 6 of 9
(2,833 Views)

Hi, thanks for your help.

 

I'm using LabVIEW 8.5 and therefore, unfortunately, can't open this VI.

---------------------------------------------------

LabVIEW 8.5 User.
0 Kudos
Message 7 of 9
(2,824 Views)
Solution
Accepted by topic author cevert73

Hi,

 

I have attached version 8.5.

 

Regards,

Shalini B
Applications Engineer
National Instruments UK & Ireland
Message 8 of 9
(2,820 Views)

That would have taken me a good while to find out.  Thanks for that!

---------------------------------------------------

LabVIEW 8.5 User.
0 Kudos
Message 9 of 9
(2,791 Views)