From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

tcp 2006 connection


Hi again all!
 
 
Until recently (thanks to the folks who helped my other problem here last week - much appreciated!)  it's been a while since I programmed my last vi's  - almost 2 years in fact! - and I need a slight bit refreshing on programming a TCP2006 unit.
 
The main problem is getting my cfp 2020 and my TCP2006 to communicate properly.  I had this problem 2 years ago, and it seems to have come back.
 
What is hapenning, on the vi's attached the connection is there for about 10 seconds, then is unable to reconnect, unless both units are reset and I get another 10 seconds connection!  
 
I can also monitor from a distance a nice communication between the TCP and cFP units using what I call a 'pulse' on the TCP screen - of which shows a healthy connection, rather like a heartbeat.
 
 
 
 
In the vi for the 2020 unit I am still using the 7.1 labview software, but for the 2006 I use LV 8.0.
 
The vi for the 2020 is cFP2020onLV7.vi and the 2006 unit is TCP2006onLV8-0touchscreen.vi   I suppose the names say it all! 🙂
 
IP for the 2020 connected to the TPC is 169.254.000.004.
 
 
 
IP for the TPC2006 is 169.254.206.246.  This was built using Labview 8.0. 
I have however since forgotten how to get from the vi to the exe file on the TPC unit.  That I shall need a quick reminder on please 🙂  (If possible how to make the 2006 unit startup with the vi running - I never could get that right!)
 
 
If it helps my laptop has an ip of 192.168.2.103
Subnet mask is 255.255.255.0
Default gateway is 192.168.2.1
 
The *.IAK is attached as well.
 
 
 
You folks have helped me before, and I hope you can help me again!
 
 Thanks again,
 
Steve Potter
 
Note:  I seem to be having problems uploading the vi's - If you don't see them here please email me at fios1@aol.com and I'll forward them that way.  I will keep trying to post them here too though.
 
 
0 Kudos
Message 1 of 10
(3,314 Views)

Download All
0 Kudos
Message 2 of 10
(3,313 Views)
I still have trouble posting the *.iak for it, I don't suppose it matters much though.
0 Kudos
Message 3 of 10
(3,312 Views)

You can try below link "troubleshooting tips", see if it can solve your problem.

http://digital.ni.com/public.nsf/allkb/50BE7BEA4D5285DA862573370070D30B?OpenDocument

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

Hi again.  Still no luck!   I think it must be some slight error in the communication setup...I'm sure it's something simple but I need to fix it fairly fast! 🙂

 

Thanks again all so far 🙂

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

Anyone have any ideas yet?  I tried the vi's out on just my laptop and the connection worked fine there (had to alter the ip addresses for the laptop itself of course!)

 

 

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

Hi Steve,

 

With regards to how to make your VI run upon startup, you can refer to this link. This should solve the startup issue.

 

As for your connection problem, I am assuming that TPC and cFP is connected to an internet router. Correct me if I am wrong. Can you try this out?

 

1. Change the IP address of cFP-2020 to something like 169.254.206.004. Make sure the subnet mask is 255.255.255.0. Do all this in MAX.

2. Save cFP2020onLV7.vi to cFP2020onLV8-0.vi (using LabVIEW 8.0).

3. Create new exe for cFP2020onLV8-0.vi. Deploy the new exe.

4. Rebuild TCP2006onLV8-0touchscreen.vi. Redeploy the exe.

 

If after trying the above, the problem still occurs, can you connect the TPC and cFP using a cross ethernet cable? This cross ethernet cable connects TPC and cFP directly, without going through a router.

 

Hope to hear good news from you soon.

 

Regards

Lee

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

Hi Lee,

 

Thanks for your reply 🙂

 

I'm connecting the units through crossed-CAT5 only, no router involved.

I have had the devices running and talking to each other in the past, just one day last year they decided to not talk!  Both the cFP and TPC have been tested and both are in fine condition.

 

I shall consider giving the 7.1 to 8 labview thing a go soon, but I'll have a look at that link first.  As I mention above it has ran perfectly well on a 7.1 platform for the cFP before though - that's the darned infuriating thing about it!

 

regards,

 

Steve

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

Still the same problem I'm afraid ... 😞

 

There must be a simple pair of vi's somewhere that will connect the two units together!

 

 

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

Actually if someone has sucessfully been able to connect a 2006 touchscreen with a cFP2020 could they post the vi's please?

 

I could then use that as a backbone and insert my own code in there. 🙂

 

Cheers!

 

Steve

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