LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

datasocket read characters

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 

0 Kudos
Message 1 of 10
(4,016 Views)
?
0 Kudos
Message 2 of 10
(4,002 Views)

Hello.

 

Could you give us a screenshot of the error please?

Thanks in advance.

Regards.

Romain D.
National Instruments France

0 Kudos
Message 3 of 10
(3,995 Views)

Hi,

You'll find attached the diagram I'm using. 

0 Kudos
Message 4 of 10
(3,989 Views)

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

0 Kudos
Message 5 of 10
(3,963 Views)

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. 

0 Kudos
Message 6 of 10
(3,960 Views)

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

0 Kudos
Message 7 of 10
(3,948 Views)

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

0 Kudos
Message 8 of 10
(3,930 Views)

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.

0 Kudos
Message 9 of 10
(3,926 Views)

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

0 Kudos
Message 10 of 10
(3,890 Views)