LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to save my 3 channel data like this

Okay. You are acquiring with waveforms but your data is bundled as a cluster. You have to use the Unbundle function to unbundle the waveform data to then put into the Build Array function. I used Unbundle By Name from the Cluster menu. I can't see your subVIs so hopefully this will work.
0 Kudos
Message 11 of 16
(839 Views)
It works,thank you. I have 2 last questions. 1) When I run the multichannel.vi ,save window opens eventhough i didn't press save button. I want that save window opens when only save button pressed. 2)Saved data appears like this

Time Marker ECG GSR BR
08:40:45 . . . .
08:40:45 . . . .
08:40:45
08:40:45


In order to plot this data I need to differentiate time in miliseconds such as

Time Marker
ECG GSR BR
08:40:45:007 . . . .
08:40:45:008 . . . .

08:40:45:009
08:40:45:010

Is it possible to save data like this?
Thanks a lot for your help.
0 Kudos
Message 12 of 16
(839 Views)
It works,thank you. I have 2 last questions. 1) When I run the multichannel.vi ,save window opens eventhough i didn't press save button. I want that save window opens when only save button pressed. 2)Saved data appears like this

Time Marker ECG GSR BR
08:40:45 . . . .
08:40:45 . . . .
08:40:45
08:40:45


In order to plot this data I need to differentiate time in miliseconds such as

Time Marker
ECG GSR BR
08:40:45:007 . . . .
08:40:45:008 . . . .

08:40:45:009
08:40:45:010

Is it possible to save data like this?
Thanks a lot for your help.
0 Kudos
Message 13 of 16
(839 Views)
Yes, the Save to File window will open every time. To eliminate this, you can use something called a simple state machine. There should be an example in LabVIEW under "Find Examples". You can search for "state" or "event handler". I'm not sure that that would even work very well necessarily. When you acquire the data, it has to go somewhere. Right now instead of filling up a buffer, it gets written to file. To do what you want, if I'm thinking correctly, you'd have to either (a)keep the data in the buffer and then access it later to save it to file, or (b) write it to a temporary file each time, then when you want to "save" the data to another file, it just reads from the temp file and wr
ites to the new one. Does that make sense? It's probably not as complicated as I'm making it seem, I've just never done it.

Secondly, here's a file that uses the Format Date/Time String in Labview. You can get fractional seconds to whatever precision you want. I have it set on two. Rather than the format HH:MM:SS:ss, it is HH:MM:SS.ss
I haven't seen too many posts that give you the format you want, so sorry that I dont know how to do it.
0 Kudos
Message 14 of 16
(839 Views)
Hi,
As you know I acquire 3 channel data. My sampling rate is 1300 and number of sample is 440. As you can see in the picture in the attachment data comes as # 433 for each channel. Thus, as you can see in the txt file everything is mixed up.What do you recommend me to do? I've tried to solve this problem but I couldn't I need your help again.
Thank you very much for your help.
0 Kudos
Message 15 of 16
(839 Views)
here is the picture
0 Kudos
Message 16 of 16
(839 Views)