LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

HTML Source

Hi again,

I havn't solved that problem till now. In my previous message I wrote a bit to much text. So I try to focus my problem a bit better.
I have the problem, that the Datasocket Event "DS_EVENT_DATAUPDATED" doesn't occur. The "DS_EVENT_STATUSUPDATED" Event gives me first the message "connecting... " and than the number of bytes which were downloaded. But the event were I can get the incoming data doesn't occur.

Maybe someone of you have had same problems. For me its a very urgent task. So please if someone has an idea of whats going wrong, let me know.

Thanks
Michael
0 Kudos
Message 11 of 21
(2,586 Views)
Hi Michael,

Does the attached program exhibit the same behavior?

Regards,
0 Kudos
Message 12 of 21
(2,570 Views)
Hello James,

I am sorry, I can't open the project correctly. I am using LabWindows 6.0.
The Error message which occur looks like this.

0 Kudos
Message 13 of 21
(2,562 Views)
Sorry, post was gone, when I was not ready.

Error: Unable to open file dataskt.fp cause its not there.

Thanks for your help.

Michael
0 Kudos
Message 14 of 21
(2,562 Views)
Hi Michael,

I saved the project with a reference to the Datasocket instrument library on my computer. If it is located in a different location on your computer, remove my reference and then add the reference again by browsing to wherever it is located on your computer (if you successfully ran the other example attached to this forum you would have needed to do the same thing already). For me it is located in:
<CVI>\toolslib\datasock

Once you add the reference and my program works, can you attach the smallest version of your program that can reproduce the problem (with steps about what I need to do to see it).

Regards,
0 Kudos
Message 15 of 21
(2,538 Views)
Michael,

If you're using CVI 6.0, you don't need to have dataskt.fp in your project at all, since CVI 6.0 included DataSocket in the Library menu. (DataSocket wasn't obsolete yet, back then). You can do what James suggested, which is to remove dataskt.fp from the project he sent you, but you don't have to replace it with another reference to dataskt.fp.

Luis
0 Kudos
Message 16 of 21
(2,535 Views)
Hi Mates,

I solved the problem with the library stuff :-), thanks for your hints.
The program works but only:

1. When I switched on my firewall an apply every access to the internet manually --> that slow down the process!
2. When I go into debug mode and going to it step by step by pressing F8.

So its the same effect that happend to the other program off the thread and that happend to my program.
Just a few days ago my program worked whithout any problems. As I remeber I havn't changed something on my pc.
So its not needed to post my program because all the other programs show the same silly problem.

What can I do, I know its a bit complicated cause you are not able to generate that effect on your pc's.
But maybe you have an idea off whats going wrong.

thanks for your willing to help me.

Michael




0 Kudos
Message 17 of 21
(2,525 Views)
Hi again,

if its useful for you I logged the status messages for you:

1. Connecting: Connecting to URL.
2  Active: HTTP/1.0 200 OK
3. Active: Downloaded 18672 bytes

After the 3rd status message nothing else happend. The connection to the URL seems to be okay cause the status message 2 look pretty normal.
But the 3rd message is a bit funny, because no DataUpdate occur and the number of bytes are different evry time I tried the same url.

Cheers

Michael
0 Kudos
Message 18 of 21
(2,515 Views)
Hi Michael,

Has anything at all changed on your computer since it was working before?
I remember you saying it only happens the second time. Using my program, is there a particular website and order of buttons to press that I can try on my machine?
Have you ever been able to get it to happen with breakpoints (I think you already said no to this)?
If so, where were the breakpoints?
Can you reproduce it on another computer?
I can't reproduce it in CVI 8.1.1 - can you download and install the evaluation version of 8.1.1 and try to reproduce it?

Regards,
0 Kudos
Message 19 of 21
(2,472 Views)
Hi James,

first thank you for your help.

1.Has anything at all changed on your computer since it was working before?

Not that I remeber I am pretty sure that nothing specially changed!

2. I remember you saying it only happens the second time.

Yes, as I first tried your program it only works the first time. Even a restart doesn't helped.

3.Using my program, is there a particular website and order of buttons to press that I can try on my machine?

I had choosen the default url: http://www.ni.com.
I only press the "Connect (Auto Update)" Button.

4. Have you ever been able to get it to happen with breakpoints (I think you already said no to this)?

Yes, when I'm going to the code and press F5 than it happend again.
But when I am going step by step with F8 than it worked.

5.If so, where were the breakpoints?

I set the breakpoint at the Statusupdate Case.
At the line: "hr = DS_GetLastMessage (dsHandle, message, 1000);"

6.Can you reproduce it on another computer?

Yes I have another computer running with LabWindows 6.0, there is the same problem.
These two computers are in the same network, and use the same internet connection.
I also reinstalled the LabWindows 6.0 but that hasn't changed anything.

7. I can't reproduce it in CVI 8.1.1 - can you download and install the evaluation version of 8.1.1 and try to reproduce it?

I downloaded this demo and suprise suprise it works. Now I am also not able to reproduce it.
Even when I use the LabWindows 6.0 it works now!????
Okay I think the problem itself is solved, but I am really confused why it happend.
Is there something that the new CVI 8.1 set in the Windows system, that was missing?

Thanks for your help
Michael

Test-Verification Engineer
Infineon Technologies





0 Kudos
Message 20 of 21
(2,431 Views)