LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help Me On These Labview Programmings...

Hey all..
 
I don't know exactly where i should post this but moving on, I actually got a few things to enquire....
 
Im very virgin to this LabView thing so I kinda need your help..
 
1. How to datalog ecg signals acquired from a DAQ board?
2. How do i save the waveform to a binary file?
3. And how do i read it back?
 
is there anybody that can help me with the programming...
HELP MEEEE..
 
Thnks in advance!
0 Kudos
Message 1 of 13
(3,892 Views)

LabVIEW ships with a huge collection of example programs.

In LabVIEW, go to "Help...Find examples".  In theexample finder, I would start with the section "Fundamentals...File Input and Output" for your current problems. See how far you get. Maybe you should also do a tutorial to become familiar with some programming concepts.

Post again if you get stuck 😉

0 Kudos
Message 2 of 13
(3,878 Views)

Hey thanks!

But...Im stuck with something now..

I have already tried to do my data-logging that I have acquired the signal from the DAQ board and then write it to a file and it is successful. However, when I want to read it back, I cannot access to the same file that I write in. It leads me to the file path, named file dialog. So how??Smiley Sad

And i hope it makes sense..Smiley Tongue

0 Kudos
Message 3 of 13
(3,865 Views)
Is it possible that you open the file for writing with a certain "deny mode" and then don't close it? This would prevent you from reading it. Can you attach a simple example (leave out the DAQ, just generate some random data).
0 Kudos
Message 4 of 13
(3,837 Views)
I hope u can help me modify this program because im so confused...i dunno wad else 2 do....
0 Kudos
Message 5 of 13
(3,815 Views)
sorry..another attachment..
 
do assist..thnks
0 Kudos
Message 6 of 13
(3,815 Views)

Your datalog types are not matched.

First, you also need to wire the datalog type when you open the file in the writer (just create a constant on the cluster leading to the write node, place it next to the file open, and wire it to the type input.)

You need to read it as the same type!

  1. You are writing records as a cluster containing a cluster of 2 strings and a 2D DBL array.
  2. You are trying to read it as a cluster containing a simple string and a 1D SGL array.

You cannot write it as one thing, then read it as something else! You need to wire the same type to the type input in your reader.

(Since in the writer you are denying writing, you need to open the same file read-only in the reader if you want to run both at the same time.)

Attached is a 1 minute modification, please go from there. It's still pretty ugly, but actually works. 😉

 

I hope these tips will help you.

Message Edited by altenbach on 08-29-2005 08:29 PM

Download All
0 Kudos
Message 7 of 13
(3,810 Views)
hi there...thx for taking time 2 look at my program but i still cant read the waveform..An error message pop-up...
it say an input parameter is invalid...i feel like crying rite now...coz my due date is coming n i cant do tis data logging thingy..
plz help me again..........
0 Kudos
Message 8 of 13
(3,801 Views)

Did you select the correct file path before running the program? 😉

(If you want that the program asks you for the file name with a file dialog, replace your path control with the "file dialog" from the advanced file I/o palette.)

0 Kudos
Message 9 of 13
(3,788 Views)

hello altenbach....i tried 2 do another way of my program but i m stuck  again....i dunno how 2 display the waveform & how 2 save it to...binary or wat type of file the best....i hope u can assist me...thx

 

0 Kudos
Message 10 of 13
(3,778 Views)