Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Data Sockets BUG

I have this VI (See attachment) which talks to a PHP script. It reads the contents. So pretty simple ..

But I noticed that it calls the script twice for some reason. The reason I know it is, there is a counter in the PHP script which records the number of times it's been called. The script is called twice at exactly the same moment (right down to the seconds). Anyone has had problems with these in the past ?

Kudos are the best way to say thanks 🙂
0 Kudos
Message 1 of 4
(3,353 Views)

Hi Spartan00,

I'm still not really seeing the exact thing that you are talking about. Can you give me any more details on how to reproduce the expected bug that you are seeing? Also, which version of LabVIEW are you using and what OS are you using? Thanks for the information!

National Instruments
Applications Engineer
0 Kudos
Message 2 of 4
(3,324 Views)
Hello Carla
If you have a PHP or HTML script that can count the number of calls made by the DataSocket VI, you can reproduce the "bug" that I saw. I did the same call with .NET classes and it made just one call.
I am using LabVIEW 8.5, and Windows XP Professional.

Thanks

Kudos are the best way to say thanks 🙂
0 Kudos
Message 3 of 4
(3,322 Views)

Hi Spartan00,

Thanks for your reply. I think what is happening is that the PHP script is being called once during the Open Datasocket VI and then being called a second time during the DataSocket Read VI. One suggestion would be to block out the Read VI, run it and see if the PHP script still says that it is being called.

National Instruments
Applications Engineer
0 Kudos
Message 4 of 4
(3,298 Views)