LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA TCP/IP can not open session

Solved!
Go to solution

Hi all!

I'm trying to made a communication between two computers through TCP/IP protocol. I create New VISA TCP/IP Resource, choose Manual Entry of Raw Socket, enter IP address and Port Number and have next error:

What is the solution to this problem?

0 Kudos
Message 1 of 10
(8,682 Views)

Help me, please

0 Kudos
Message 2 of 10
(8,678 Views)

Why don't you just use the normal TCP/IP functions? I'm not even sure you can talk to a non-VXI-11 device with VISA. You've got numerous TCP/IP examples, pick one.

Message 3 of 10
(8,647 Views)

@Dennis_Knutson wrote:

Why don't you just use the normal TCP/IP functions? I'm not even sure you can talk to a non-VXI-11 device with VISA. You've got numerous TCP/IP examples, pick one.


VISA TCP will work with any generic TCP device.

 

Also, to the OP your resource name is incorrect. It should be TCPIP::<IP Address>::<Port>::SOCKET.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
Message 4 of 10
(8,637 Views)

@goodboycowboy wrote:

Hi all!

I'm trying to made a communication between two computers through TCP/IP protocol. I create New VISA TCP/IP Resource, choose Manual Entry of Raw Socket, enter IP address and Port Number and have next error:

What is the solution to this problem?


I think you're a bit confused.  Are you trying to do this?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 5 of 10
(8,635 Views)

You said you are trying to establish a communication between two computers, but in your example the client and the server address are the same. This leads me to think that you misunderstood the concept of creating a VISA resource. When you create with address x.x.x.x and port y, MAX tries to connect to that port as a client. It doesn't create a server.

The operation you are trying to do can be successful if there is actually a TCP server waiting on the same computer at port 50000, though.

 

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
Message 6 of 10
(8,627 Views)
Solution
Accepted by topic author goodboycowboy

@Mark_Yedinak wrote:

@Dennis_Knutson wrote:

Why don't you just use the normal TCP/IP functions? I'm not even sure you can talk to a non-VXI-11 device with VISA. You've got numerous TCP/IP examples, pick one.


VISA TCP will work with any generic TCP device.

 

Also, to the OP your resource name is incorrect. It should be TCPIP::<IP Address>::<Port>::SOCKET.


Okay. I've never used the SOCKET type.

Message 7 of 10
(8,618 Views)

Thank you for responding!

used only TCP/IP functions. All works=)

0 Kudos
Message 8 of 10
(8,581 Views)

please i'm facing somesing like that ,i'm trying to control tegam 1830 power meter to labview but when using visa write function i have error 

and when using TCP\IP  functions i don't know what to connected to tcp open function in port i\p 

please any help

0 Kudos
Message 9 of 10
(7,806 Views)

 

Hello e.gtoto88,

 

The original post to this forum has been resolved. I would suggest posting your question in your own forum page as the question you are asking is very different from the original post. Asking your question in your own forum page will make is easier for the community to help you.

 

Regards,

 

J_Bou

 

 

0 Kudos
Message 10 of 10
(7,767 Views)