Discussion:
how do i name a dynamic data signal for file i/o
(too old to reply)
ewong
2008-08-05 16:10:07 UTC
Permalink
I have five signals (max,
min, mean, std dev., and # of readings) merging into a single signal and
writing to a measurement file. When I open my saved file after retrieving data
I have a spreadsheet with five untitled columns. I am wondering how I name those
columns within my program as I am collecting large quantities of data. Thank
you!
MikeS81
2008-08-05 20:40:11 UTC
Permalink
Hi ewong, you can use the express vi to convert the dynamic signal to a waveform. With this you can change the signal names.See this <a href="http://forums.ni.com/ni/board/message?board.id=170&amp;message.id=298415&amp;query.id=54435#M298415" target="_blank">link</a> please. Hope it helps.Mike
ewong
2008-08-06 14:40:05 UTC
Permalink
I had seen similar threads to that one after posting and tried implementing them in my code. However my results were not what I was looking for. When I tried changing the channels names indvidually I no longer recieved data in my lvm or my graph and when I tried changing the channel name of the merged signal my column headers were "comment", "comment1", "comment2" and so on. I 'll post my VI without the above changes and maybe someone will be able to tell me what I'm doing wrong :smileytongue:. Thanks again.
ewong
2008-08-06 14:40:08 UTC
Permalink
So apparently the forums dont like me trying to upload such a large code so I am attaching a jpeg.


code.JPG:
Loading Image...
MikeS81
2008-08-06 14:40:13 UTC
Permalink
Hi ewong,
why donĀ“t you make what the example from the link shows? Try this please.
Mike


change_channel_names.PNG:
Loading Image...
ewong
2008-08-06 15:10:09 UTC
Permalink
I have tried that but it only labels the header as a single "comment" and a number value. What I want to do is label the individual headers as max, min, mean, std dev, and # of runs. Maybe I'm just missing something but when I incoporate that example into my code I get headers like test0000, test0001, test0002, and so on. Thanks for all your help though.Message Edited by ewong on 08-06-2008 09:54 AM
ewong
2008-08-06 15:10:12 UTC
Permalink
I got it!http://forums.ni.com/ni/board/message?board.id=170&amp;message.id=308326&amp;query.id=63578#M308326the link above helped me finally realize it. By adding a case stucture with the different string names in different cases it labels the individual channels. Thanks for all your help Mike.
Loading...