LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

help needed-- error code 1815

i m using 'visa configure serial port' followed by 'visa read' to take input from com1 port. The received signal is spreadhead string. i need to convert it to digital waveform for further processing. there is a VI available for this named 'spreadsheet string to digital.vi'. but while using this VI for the conversion, i m getting an error as given below
 
-------
Error -1815 occurred at DTbl Spreadsheet String to Digital.vi
Possible reason(s):
LabVIEW:  An invalid character was present in the spreadsheet string. Use only 0, 1, L, H, X, Z, V, or T.

Complete call chain:
     DTbl Spreadsheet String to Digital.vi
     DWDT Spreadsheet String to Digital.vi
     visa read.vi
------
 
I need your help to solve this problem. its very urgent for my project
 


Message Edited by gupta.nitesh87 on 05-05-2008 07:12 AM
0 Kudos
Message 1 of 10
(3,614 Views)

Hi gupta.nit…,

check your string for the invalid characters. Can you upload your vi, because it´s easier to see what you have done?

Mike

0 Kudos
Message 2 of 10
(3,607 Views)

You should try "Spreadsheet string to array".  You can set the array to your desired numeric format (ie: Double, etc).

Depending on how you do your acquisition, you may want to build your array until it is ready to be processed, plotted, etc.

RayR



Message Edited by JoeLabView on 05-05-2008 08:22 AM
0 Kudos
Message 3 of 10
(3,605 Views)
i m uploading the vi here
0 Kudos
Message 4 of 10
(3,585 Views)
Hi gupta.nit,
i thought you can upload the vi in the same configuration as you use it, can you? I see no "Spreadsheet String to digital" function. Can you upload it with some characters you have already received?
Mike
0 Kudos
Message 5 of 10
(3,580 Views)
sorry mike. that was my mistake.
now i m uploadig correct vi.
 
0 Kudos
Message 6 of 10
(3,564 Views)
One more thing I want to tell is like our data is coming from a microcontroller that is sending all 000-FFF and without ant delimiter. So suggest any other visa read vi which can directlr take in binary or as byte instead of reading it as string.
0 Kudos
Message 7 of 10
(3,561 Views)
There is only 1 VISA Read, and it returns a string. It's up to you to deal with that string. You state:
our data is coming from a microcontroller that is sending all 000-FFF and without ant delimiter
So why are you trying to use the Spreadsheet String to Digital Waveform VI? If you have no delimiters, then that VI won't work. Smiley Surprised

It seems to me that what you actually want to do is typecast the data recveived from the microcontroller as an array of numbers. You did not provide a sample of what you're actually receiving from the microcontoller.
0 Kudos
Message 8 of 10
(3,555 Views)
Actually we dont want it in string its just that we found only VISA read VI to take data from device connected through com1 port which stores in buffer as string by default. What we are recieving is a signal recording some heart beat pulses and we want to have it displayed in amplitude time graph. When we are seeing on other oscilloscope programs its showing nicely but we are facing problem in labview possiblly due to these data format mismatch. Its showing YYYYYYYYYY in read buffer and when we are tring to convert in byte array and converting in digital waveform it gives Error -1815 occurred at DTbl Spreadsheet String to Digital.vi LabVIEW:  An invalid character was present in the spreadsheet string. Use only 0, 1, L, H, X, Z, V, or T.
 
0 Kudos
Message 9 of 10
(3,548 Views)

If you are getting strings of "YYY", the it doesn't meet the criteria.  You can only use 0, 1, L, H, X, Z, V, or T.

So as Smercurio stated, you cannot use the Spreadsheet string to Digital waveform.  You have to deal with the string in a different manner.

Use the VISA Read to get the serial data.  But you must then handle that before you try to plot it. 

In order for anyone to propose something, we would need to see an unmodified version of the received string straight from the serial port.  You could save it in a text or binary file, whichever is more appropriate and post it in this thread. 🙂

 



Message Edited by JoeLabView on 05-05-2008 01:01 PM
0 Kudos
Message 10 of 10
(3,544 Views)