Visa tcp ip
Bonjour,
Je cherche un exemple de visa tcpip simple pour m'aider pour mon premier essai.
Je souhaite raccorder un MC redlion a mon pc pour faire de l'acquisition de données, j'ai fait mon reseau avec max mais au niveau programmation ça ne marche pas(erreur E/S).Ci joint mon prog avec juste une visa read,le nom de la ressource, le nombre octect et le buffer.
Merci pour votre aide
Eric
Attachments:
essai.vi 9 KB
ok, tanks for your response,
the modular controler red lion (model; CSMSTR-SX) have been configured to comunicate in MODBUS / TCP:IP, after consulted to red lion's service center they suggested us to change the controller priority to slave, but wihtout success. in this configuration it is not neccesary to send any command to the device. we'd like to create a VI that permets us to read the data from the controller.
link to the data sheet: http://www.redlion.net/Products/Groups/ModularControllerMaster/CSMSTRLE/SX/GT/Docs/05033.pdf
thanks in avance
Similar Messages
-
VISA TCP/IP wait after query
Hi
I found an issue with the driver to MSO-X 2014A TCP/IP scope which was sending the status request too early after the previous query was issued.
I have modified the vis, but I was wondering if there is a VISA property node which specifies the wait time after each VISA write is executed?
In that case I could set it upfront and do not worry about the other vis.
thankspawel wrote:
OK, thanks to all. I was just wondering if I can go shortcut, but I guess not.
thanks
The *opc? command IS a shortcut! Adding it on to the end of a SCPI command turns the previous command into a query. When the command is done, it sends a "1" (or something similar - I've found different vendors have different interpretations of what a "1" is) to the output buffer that you read so your application only waits exactly as long as it needs to before sending the next command. You have to look in your programmer's guide to see which of your commands supports this feature.
Bill
(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. -
I have a MacBook Pro. My mac can detect wifi. But will not connect anywhere. I did get connected via TCP/IP settings but I can't connect to any wifi anywhere. Network diagnostic has a green light for wi-fi and wi-fi settings. Red light for the rest. (Network settings, ISP, Internet and server.)
Hello NotAppleSavy,
Thanks for the question. After reviewing your post, it sounds like the computer wont connect to networks. I see you have used network diagnostic. I would recommend that you read this article, there are a lot of other things you can do in this article that may be able to help you resolve or isolate the issue.
Wi-Fi: How to troubleshoot Wi-Fi connectivity
Thanks for using Apple Support Communities.
Have a nice day,
Mario -
VISA TCP/IP Resources, Aliases & DHCP
I using an alias from my (VC++) application to access a LXI power supply. I've done the VXI-11 scan & alias definition from MAX. I want to avoid the user having to use MAX if the IP address changes.
The power supply has a DHCP assigned IP address, but no hostname. It looks like the alias is nothing more than a mapping to "TCPIP0::129.86.82.157::inst0::INSTR" -- is that the case? If so, then how do I re-bind the aliad to the instrucment if it gets allocated a different IP address? What does the"Validate" button do?
I need to ensure that the alias maps to the correct device / serial number. I'd like to only define the alias once in MAX and then handle any address re-assignment from the applicaiton (with as much handled in VISA, et. al., as possible).
Currently I'm at VISA 4.2, but can upgrade if that helps. (saw something about a new static flag in 4.4)
Thanks,On my work i use a Agilent PNA who work with lan. In Labview the viFindRsr Box will go find the device only if you record first the IP address on NIMAX. it mean that your IP address of your device must be !!!First!!! Defined staticly (not DHCP).
If your device must be DHCP there is a other way that i use.
I have developed a simple soft (dos style) who when i give the IP passerell adress (Ex 192.168.0.1) he will scan all the adress( 192.168.0.2 to 255) by PING and if the PING success the program stop when the *IDN? command match to my device and write in file the IP adress. Of course my acquisition program use this file to commicate wth my device. I don’t incorporate directly this code on my principal program, because The PING command to be use fastly, must be incorporate in THREAD and EVENT. It means that can provide crash and bugs if you incorporate directly in your program. -
DAQmx 8.7 + VISA 4.20 no TCP/IP-Devs in MAX
Hi Group,
i have installed DAQmx8.7 + VISA 4.20 on an Client Workstation.
I can't create an VISA-TCP/IP Dev in Max there is only PXI like
on my developer maschine, unfortunately my scope is connected
by ethernet.
What else do I have to install to have full VISA-TCP/IP-support?
IngoHowdy
Ingo,
I'm going to assume that your client workstation runs a NI-VISA compatible operating system like Windows 2000, XP, etc. You will want to create a new TCP/IP Resource in MAX for your scope and then reference this resource in your application. A KnowledgeBase article here explains how to accomplish this.
You may find another KnowledgeBase article, Connecting to an Ethernet Controlled Oscilloscope useful as well.
Warm regards,
pBerg -
Missing TCP/IP Socket from VISA Resource Property
My Labview "VISA Resource Property" is not showing "TCP/IP Socket". According to this website, it should:
http://zone.ni.com/reference/en-XX/help/371361D-01/lvvisaprop/visa_object/
I/O Session
FireWire Instr
GPIB BoardInterface
GPIB Instr
Instr
PXI Backplane
PXI Instr
PXI MemAcc
Serial Instr
TCP/IP Instr
TCP/IP Socket RIGHT HERE
USB Instr
USB Raw
VXI Servant
VXI/GPIB-VXI Backplane
VXI/GPIB-VXI MBD Instr
VXI/GPIB-VXI/VME MemAcc
VXI/GPIB-VXI/VME RBD Instr
I'm using Labview 8.6.1 along with MAX 4.6.x I'm able to see & utilize VISA TCP/IP Socket in MAX so I'm wondering how come I don't see it in Labview? Is there a way to enable this?nevermind, I found a workaround. I just type cast "TCP/IP Socket" from a "instr" VISA control
-
Can I use the second TCP / IP port on my cRIO to drive a meter Agilent
I would like to use the second TCP / IP port of my NI cRIO-9024 to control my Agilent 33210A pulse generator with VISA TCP/IP.
My Agilent has only TCP/IP and GPIB ports.
Is it possible?
cordiallyAll the MACs (from my old 2006 PPC Mini) will auto detect ethernet crossover and straight through and rollover cables correctly. They should be Auto-MDIX.
Having said that, the FW800 (via TB) and Ethernet should be very close in terms of performance. -
RS-232 through TCP/IP with LabView
Hello
I currently have a serial device being read through a hardware RS232 to TCP/IP converter.
On the computer with labview I use a third party virtual serial port that reads the TCP/IP data and converts it pack to COM port data.
I then read the COM port normally with VISA.
I would like to remove the third party TCP/IP to RS232 software and have LabView read the TCP/IP port and convert to serial.
How would I achieve this?
More details on the hardware and 3rd party sofware;
thydzik.com/monitor-cms2000-inverter-via-tcpip-usr-tcp232-e4-rs232ip-convertor/
More details ont he labview code here;
thydzik.com/log-solar-generated-to-pvoutput-with-labview/
Solved!
Go to Solution.I don't think it's as complicated as you seem to expect. Try the VISA TCP approach. Create a VISA TCP resource, in raw mode, as explained in the white paper. Take your existing code, replace the COM resource with the new TCP one, remove the serial port configuration, and it might just work. Make sure you close the resource when you stop there program.
If you want to go with the TCP functions, take a look at the examples. You open a connection, read and write strings to it exactly as you would with a serial port, and close it when you're done. -
Error message -1073807298 when connecting through TCP
I get the error code -1073807298 when I try to connect to a TCP raw socket VISA resource, the weirdest thing is that I actually can read the result of the queries I make. I fixed the problem reading one byte at a time but this is very inefficient (it uses a while loop) and I still get warnings, so I'd like to know if there is a way to fix this or if there is an equivalent of the "Serial Settings: Number of Bytes at Serial Port" for VISA TCP connections....
This is the WARNING that I get when I read one byte at a time:
Warning 1073676294 occurred at VISA Read in LV.vi
Possible reason(s):
VISA: (Hex 0x3FFF0006) The number of bytes transferred is equal to the requested input count. More data might be available.
This is the ERROR that I get when I set the byte count to 1024:
Error -1073807298 occurred at VISA Read in LV.vi
Possible reason(s):
VISA: (Hex 0xBFFF003E) Could not perform operation because of I/O error.
I enclosed the VI for your review,
Thanx in advance for your help,
Attachments:
LV.vi 22 KBHi,
While there is no equivalent of the "Serial Settings: Number of Bytes at Serial Port" for VISA TCP connections, one strategy is to make the first byte in your TCP string to contain the number of bytes to follow it. That way you can read that byte then know what to set the byte count to.
Regards,
John E.
Applications Engineering
National Instruments -
Stand-Alone exe not seeing my VISA instruments
Hello, I am attempting to build a standalone installer application from my VI using LV 7.1 on a Win 2k machine. I have gone through the build application wizard making sure to enable hardware configuration checkbox and select the desired VISA TCP/IP instruments from the list. I am able to build the application without errors and install the stand-alone app on a new PC without LV installed. When I try and run the app, I do not see my TCP resources.
I have tried to install the NI-VISA runtime ver 4 with no success.
Now, when I was installing the app on the new PC, I did recieve an error saying that MAX wasnt avalible. So is there a way to get MAX without installing Labview? Is there someplace on NI's website that allows you to download just the MAX. I would think that the whole purpose of building a standalone application is to NOT have to install labview and therefore MAX.
So what am I missing here? Any help would be great.I have done some additional digging and here are my results. On my front panel I have a VISA Resource Combo box that selects which instrument I want to use over ethernet (they are both Agilent RF sources). In the visaconf.ini file on my development PC, I see that the aliases for my instruments TCPIP0::xxx.xxx.xxx.xxx::instr0::INSTR are present. There is also a TCPIP-RSRCS section in the config file with more info relating to the TCPIP0 instrument.
On my target PC with only my stand-alone application installed (and no LV), my visaconf.ini file doesnt say a thing about TCPIP0. There is no TCPIP-RSRCS section in the file either. This probably explains why I am not seeing my Agilent instruments in the standalone application.
I do have the MAX configuration file (.nce) but I see no obviously way to load this file into my stand-alone application. I think I bundled it with the installer, but I am really stuck.
Any thoughts???
Attachments:
Labview MAX error.jpg 21 KB -
TLA APplicatio​n and NI VISA
Hi,
I am using LabVIEW 8.2 and NI MAX 4.1
I am using Tektronix TLA7016 with TLA Application 5.1 SP1. In NI MAX I added VISA TCP/IP resources with IP address of TLA. It detects Mainframe and all the modules of the TLA. But while I open TLA Application, TLA APplication does not reconise TLA modules! Does any body use this and found some solution for this? Could you please help me?
Regards,
VishalHi Vishal,
I assume you are using TekVISA in addition to NI-VISA. Correct? If you delete the TCP/IP resource from MAX, are you then able to access your TLA modules using the TLA application? I notice you posted in this thread; Are you still having trouble even with just one vendor's VISA installed? Also, does the "switching" utility you mentioned get rid of this issue? Thanks!
Regards,
Message Edited by _Belle on 04-23-2007 04:58 PM
Ebele O.
National Instruments -
Set-up configuration of visa driver
I'm setting up new device via VISA TCP/IP Resources. my evice is plugged into the physical computer through a COM port which then communicates with the instrument via RJ-11 telephone wire. I can not get VISA to recognize my device
Hey terbotim,
If you are connecting to your device through a COM port than you will not be able to communicate with it through TCP/IP. This document gives a good overview of serial communication: http://zone.ni.com/devzone/cda/tut/p/id/2895
This link is a tutorial which gives information about setting up a serial device in MAX. Please post back if you have any additional questions.
Regards,
Kevin
Product Support Engineer
National Instruments -
VISA error: 0xBFFF0011 When trying to connect FBG Interrogator via Ethernet
Hello, I have a SmartScan Dynamic FBG Interrogator and I've been wanting to switch it over from the proprietary SmartSoft (a suite of labview based applications) to LabVIEW. I have some VIs lying around that seem like they would be helpful in getting a LabVIEW VI with all of the functionality of the SmartSoft package, however they make use of a DAQassistant that references something that isn't there. And so I need to properly connect the device in NI MAX
I don't know that much about LabVIEW but I was able to find that since the interrogator connects via cross-over cable that I should install VISA and add it in NI MAX. But when I try and do this, the automatic find device option when I try and create New VISA TCP/IP resource finds nothing and the manual entry method doesn't work for me. Now I know the IP address, as it is static and when I open SmartSoft I am able to connect to the device using it; also I have pinged the IP successfully. However, it asks for the port number and I've seen a few possibilities based on a UDP Message Format Guide that was with the VIs that I mentioned I had found earlier. I've tried 'validating' with all of the port numbers the guide lists which are for Diagnostic, Maintenance and Data messages, but I always get the error I list in the topic title. I saw other threads with this error but it was always in regards to serial communication.
Am I headed in the right direction using NI VISA? And if so, do you have any suggestions on what could be preventing NI MAX from connecting to the device?
Any and all help would be appreciated,
ColinWell, I didn't really ignore the reference so much as I wasn't sure if it was a VXI-11 instrument or not, so after the other method didn't work I thought I'd try it. Based on that not working I would assume that it is not a VXI-11 instrument.
And sorry, by manual entry I meant Manual Entry of Raw socket. Which is why I brought up my concerns of whether or not I had the right port number. -
NI MAX entry for a Non-NI/VISA Instrument LabWindows/CVI Driver
Hi All,
Sorry in advance if this is not the right forum.
I have created a IVI class and specific instrument driver in LabWindows/CVI for a Video Generator. The generator is a networked, SCPI based instrument. It does not automatically appear in MAX like other NI based instruments.
How or what do I need to do to MAX to use the instrument? Is it as simple as adding the logical name, driver session and advanced driver entries to MAX? Do I need to create a new instrument in the HW section such that the driver session has a device to point to? I have been playing aroud with the networked instrument section in MAX and nothing seemed to make sense to me.
Any help would be greatly appreciated!
Thanks
Minesh
Solved!
Go to Solution.Minesh,
Maybe this Knowledge Base article will help get you started. I think you will need to add a new VISA TCP/IP Resource in Measurement and Automation Explorer.
How Do I Configure an Instrument to Communicate via TCP/IP in Measurement & Automation Explorer:
http://digital.ni.com/public.nsf/allkb/D7D8E3E1B682022286256D4A00771A52
Robert B
Applications Engineer
National Instruments -
Bonjour,
J'aimerai utiliser le deuxième port TCP/IP de mon NI cRIO-9024 pour piloter mon générateur de pulses Agilent 33210A.
Est-ce possible?
Mon appariel ne possède pas de port RS232, mais seulement du TCP/IP et GPIB.
Cordialement.Bonjour,
Merci pour votre réponse.
Je voudrai untiliser le VISA TCP/IP.
Comme c'est un apareil Agilent il faut activer le passport NIVisaTulip.dll et
celui-ci n'existe pas sous NI-RIO, il a y des passports nom.out.(Cf pièce jointe1).
De toute façon dans un premier temps je n'arrive pas à ajouter un nouveau périférique réseau
à partir de mon NI cRIO (Creat New VISA TCP/IP Resource).
J'ai activer mon deuxième port avec une adresse IP qui correspond bien avec mon appareil.(Cf pièce jointe3)
Il faut bien procéder comme cela ? (Cf pièce jointe2).
Cordialement,
Attachments:
Passports.PNG 79 KB
Périohérique réseau.PNG 110 KB
Cartes réseau.PNG 27 KB
Maybe you are looking for
-
This is extremly frustrating. I was sent the wrong disk for my OSX as well, so I can't even use that disk. I called customer service and was told I had to pay for someone to help me fix this issue.
-
How to save a query in package and transport it?
i have saved a query as local object? now without making any changes to it, how to save it in a package? and please give me step by step procedure to transport query from one server to another server?
-
Only one Bluetooth device works at time! Mouse or headset, not both
I've used Apple Bluetooth mice for years with my Mac Mini. Bought a Motorola HX1 headset and one or both disconnects after a few minutes. Sometimes when the headset is detected the mouse starts being very very jumpy. I'm fairly certain that BT suppor
-
Installation of "Oracle BPEL Process Manager" (newbie)
Hello, I need to evaluate the "Oracle BPEL Process Manager" for a seminar at my university. I am completely new to the BPEL topic and I need some help installing the "BPEL Process Manage". 1) I downloaded the file "Oracle BPEL Process Manager (10.1.3
-
Is there any way to recover site settings from another user profile on my PC? This past weekend, our support deparment switched domain names on us. Now I have a new user profile - support dept. was unable to import previous user settings. I can see .