LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

inputting a text file as a waveform

hi,
I was trying to use the limittesting.vi from the exmaples section-to set some limits on my data(which is in the form of an ASCII text file).Whenever i run the vi,it gives me the error :"-1802".there is no explanation too.
Does anybody know the type of inputs that the vi can take?I think that is where the mistake is.
The VI is attached.
Thanks,
Sujani.
0 Kudos
Message 1 of 4
(2,872 Views)
Hi,

I tried to run the attached vi in LV7.0, its running successfully.

Here I have already created an .xls file by Labview file write VIs which i am reading through your vi.

Try running in same way, still if your problem is not solved, pl. attach the file which you are reading.

Are you creating the file (i mean opening a new file, editing the contents & saving the file by normal methods, but not through LV) ? Bcoz LV can read only specific format of the file so you need to convert your file into those formats supported by LV.

Your feedbacks are welcome.

Best Regards,
Nirmal Sharma
India
Message 2 of 4
(2,872 Views)
Hi,
Thanks for the reply.
I have an ASCII text file that I was trying to read using this vi.I converted it into an xls file in excel and I still cannot read it using this vi.How do create an xls file in LV itself?I am attaching the .xls file.
Sujani.
0 Kudos
Message 3 of 4
(2,872 Views)
Hello Sujani,

You can create an xls file in LV by using the "Write to Spreadsheet File" VI and specifying a "*.xls" file name. I attached a VI that shows this technique.

LabVIEW will only read and recognize *.txt files, unless you have the Report Generation Toolkit. The report generation toolkit allows you to open and edit Word and Excel files in LabVIEW. Please see the following website for more information:
http://sine.ni.com/apps/we/nioc.vp?cid=5769〈=US

Have a happy new year!

Liz Fausak
National Instruments
0 Kudos
Message 4 of 4
(2,872 Views)