LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

MAX shows my TCP/IP Interface, but no communication's with Labview

i'm trying to control tegam 1830a power meter with labview visa 

it use TCP /IP CONNECTION  ,the device working properly in max and it accept orders and answering it ,but when trying to controlo it in labview 

the function writr to visa gives error  

i'm using visa 5.4 & labview 2011

0 Kudos
Message 1 of 16
(3,696 Views)

What error code/description are you getting from the VISA Write?

 

Without knowing the details of the error it is difficult to determine what is causing it - it could be a Firewall issue (MAX being allowed to connect but LabVIEW isn't) or it could be something to do with your configuration/code in LabVIEW.


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 2 of 16
(3,688 Views)

this the error message the open visa function don't generate error but write function or read do 

0 Kudos
Message 3 of 16
(3,684 Views)

When you connect to it in MAX, does the device have an Alias? Can you show a screenshot of the device configuration in MAX? Does the device have an alias of 'rr'?

 

Can you show the rest of the VI where you read/write to the device?


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 4 of 16
(3,675 Views)

yes i mad an alias for the divece i changed it to tegan 1830a 

 

but i tryied before without the alias and thier is no response

0 Kudos
Message 5 of 16
(3,655 Views)

what happens if you change the alias to 'inst0' or you put in the IP address of the device into the VISA alias name?

 

There is a similar issue here (http://forums.ni.com/t5/LabVIEW/VISA-TCP-IP-can-not-open-session/td-p/2297012), do any of the solutions offered there help you out?


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 6 of 16
(3,626 Views)

thanks for you answer but , i tried to change device alias as ypu asked  but  the same error happend 

i see your link and i tried to use TCP\IP function but i don't know what to write to port input to the function open tcp protocol

the error value changed when using "0" as port value and when using any numeric values

Download All
0 Kudos
Message 7 of 16
(3,602 Views)

please help .........................................................

 

0 Kudos
Message 8 of 16
(3,570 Views)
Let's start at the beginning. Did you go into MAX and select Create New>TCP/IP Resource and manually enter the address or was the instrument automatically detected? The instrument is on the same subnet as the pc? The instrument is not configured for DNS? The port setting matches what the instrument is set to?
0 Kudos
Message 9 of 16
(3,564 Views)

Have you tried restarting LabVIEW? I've had issues where I had to restart LV after adding things to NI MAX in the past.

0 Kudos
Message 10 of 16
(3,553 Views)