LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

lan

How can we control tow PC's by using LAN Network in LAB VIEW?
 
Please sent me the steps...
 
Thankyou
0 Kudos
Message 1 of 12
(3,622 Views)
Hi bedaiwim@…,
can you please be more specific? Did you search in the example finder for "tcp" or "tcp/ip"? Smiley Wink
Mike
0 Kudos
Message 2 of 12
(3,619 Views)

We have test station uesd Network TCP/IP

The setup for test station:

IP Address: 172.17.100.28

Gateway: 172.17.100.254

Stubert Mask: 255.255.255.0 

DNS Server: 10.1.1.21

TCP Port: 8888

Terminetor: CR

 

0 Kudos
Message 3 of 12
(3,607 Views)
I think Mike meant "can you be more specific" about what you want to do between the two PC's... Such as controlling LV front panel? Looking at results? etc?
 
🙂
0 Kudos
Message 4 of 12
(3,600 Views)
we have command can be controled this tset station...
 
we need LABVIEW to open program, read and send command...
0 Kudos
Message 5 of 12
(3,594 Views)
Let's try this again, shall we? Smiley Wink

What is running on each PC? Is the other PC running LabVIEW? Is the other PC running some custom application? If so, does this other application act like a TCP/IP server? Does it accept connections? What is the communication protocol? What do you mean by "open program"? Does this mean that LabVIEW is supposed to automatically launch this other program? How is this other program normally started? What do yo mean by "read". Read what? Read data? Does this other application continuously send out data? If so, in what format? What do you mean by "send command"? What kind of command? What does this command do? What is the response? What do you want to do with the data?

Now perhaps you can be a bit more specific... Smiley Wink
Message 6 of 12
(3,578 Views)

Thanks for your response and support...

What is running on each PC?

One PC running with test station.

Other PC connect to test station PC by LAN connectors.

Is the other PC running LabVIEW?

Test station PC have control program.

Other PC running by LabVIEW.

Is the other PC running some custom application?

Yes,

If so, does this other application act like a TCP/IP server?

Yes,

The PC of test station is normal PC connect to test station by RS-232 and this PC connect to other PC by LAN(TCP/IP)

Does it accept connections?

yes,

What is the communication protocol?

LAN connection…

What do you mean by "open program"?

LabVIEW is able to open program that was created using our program.

 Does this mean that LabVIEW is supposed to automatically launch this other program?

Yes,

How is this other program normally started?

Normally

What do you mean by "read". Read what? Read data?

Yes, read data

Does this other application continuously send out data? If so, in what format?

Yes,

Data type: integer or Decimal or ASCII

What do you mean by "send command"? What kind of command?

Sand command by I/O Direct

What does this command do? What is the response?

Example 1:

Command: LGHT?

Test station response: 1 (Indicates that test station light is ON)

Example 2:

Command: LGHT0

Test station response: Trans test station light is OFF

What do you want to do with the data?

Using this data to other test

 ----------------------------------------------Smiley Wink

 

sorry...

But just we need steps to control PC's by using TCP/IP (we need using LAN connection without GPIB)

 

Thankyou

 

 

0 Kudos
Message 7 of 12
(3,537 Views)
There are some great resources available on the web to get you started using TCP/IP with LabVIEW.  They can be found at the following links:

Using LabVIEW with TCP/IP and UDP (Manuals)
Using LabVIEW with TCP/IP and UDP (Developer Zone)
Basic TCP/IP Communication in LabVIEW

There are also some really good examples that come with LabVIEW.  You can find them by selecting Help » Find Examples.  Then navigate to Networking » TCP & UDP.  These examples should provide a good starting point.

Eric C.
Applications Engineer
National Instruments

Eric C.
Applications Engineer
National Instruments
Message 8 of 12
(3,511 Views)

See in attachment my step I made for communication...

Please advice, to do communication between two PC's…and

I want using I/O Direct…

0 Kudos
Message 9 of 12
(3,486 Views)
Hi Bedaiwim,

The manner you posted is not the best way to communicate using TCP/IP between two computers using LabVIEW.  It looks like you are trying to set up your computer as a VXI VISA resource.  Instead, it is much easier and more straightforward to use the TCP/IP VIs in LabVIEW as I mentioned in the previous post.  Take a look at some of the examples in Example Finder as well.
Eric C.
Applications Engineer
National Instruments
0 Kudos
Message 10 of 12
(3,447 Views)