01-20-2015 04:42 AM
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
01-20-2015 04:48 AM
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.
01-20-2015 04:54 AM
this the error message the open visa function don't generate error but write function or read do
01-20-2015 05:06 AM - edited 01-20-2015 05:06 AM
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?
01-20-2015 05:58 AM
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
01-20-2015 06:48 AM
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?
01-20-2015 08:17 AM
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
01-20-2015 09:52 AM
please help .........................................................
01-20-2015 10:01 AM
01-20-2015 10:36 AM
Have you tried restarting LabVIEW? I've had issues where I had to restart LV after adding things to NI MAX in the past.