12-01-2008 11:47 AM
Hi,
I'm using the datasocket read function and I noticed that if my php page contains less than 4 characters the function returns an error.
For example <?php echo 'abc' ?> returns an error but <?php echo 'abcd' ?> doesn't.
Is that normal?
Is there a way to have the page content whatever is written in?
Thank you in advance for your support.
Bim
12-02-2008 04:21 AM
12-02-2008 06:05 AM
Hello.
Could you give us a screenshot of the error please?
Thanks in advance.
Regards.
Romain D.
National Instruments France
12-02-2008 07:02 AM
Hi,
You'll find attached the diagram I'm using.
12-03-2008 03:21 AM
Hello.
Could you give us all your code please?
I will try to reproduce your issue about it.
Thanks.
Regards.
Romain D.
National Instruments France
12-03-2008 03:29 AM
The datasocket read function itself is sufficient to reproduce the issue.
You just have to access a web page that includes the php code I mentioned in the 1 comment.
12-03-2008 05:05 AM
I reproduced your issue.
I have never heard about this problem like my colleagues.
I will submit it to the R&D, and I will tell you more when it's possible.
Best Regards.
Romain D.
National Instruments France
12-05-2008 02:30 AM
Hello.
Could you tell us which version of LabVIEW do you use?
How are you writing to the HTML? Are you hosting a web server that you are writing to?
R&D would be very interested in seeing a screenshot of the VI that is writing the data, as well as reading it.
Thanks.
Regards.
Romain D.
National Instruments France
12-05-2008 02:56 AM
Hi,
I'm using LabVIEW 8.5 PDS .
I've run the test on an html page and I don't reproduce the issue, both characters are returned.
I don't host the server, and I also don't wirte anything on it in that case, I just get back what it returns.
12-08-2008 02:24 AM
Hi Bim.
Thanks for your reply.
I think this KB which helps you to solve your problem. You just have to put [HTML] at the end of the URL.
For the moment there is not another way to solve this issue. I have already seen this KB but I want to know if the issue is fixed.
I test this way this morning and DataSocket Read returns the good characters. Let me know if it's ok for you.
Thanks.
Regards.
Romain D.
National Instruments France