Serial Port Visa to read 1 line IO

I have a visa series opened and need to read the State of the PIN-6 on a connector Series 9 pins to see if this line is high or low. Is there a way to do so by the visa series read the command?

PIN 5 is located on a 9 pin connector. If you want to detect the actual input lines as CTS, DSR, DCD or RI, use a VISA property node and select property > settings series > Modem line parameters

Tags: NI Hardware

Similar Questions

  • Virtual serial port: no bytes to the serial port before you read visa

    Hi I want to use LabView for data acquisition in real time from my dc servo motors. I'm new to LabView, so I will try to do the same thing with virtual port. I am writing some data (a sinusoidal wave) to the virtual port and can read and display it on the chart. the writing part just works that we see in the hyper terminal. but he's not reading anything. the number of bytes to port is zero. I tried to put the number of bytes in visa read manually, but it does not work. I have attached my code below. any comment is appreciated. Thanks in advance

    This is just the basics of how communication works series. To do a reading without any instrument, you loopback (short) the transmission line to the receiving line. For a connector 9 pins, you short-circuit pins 2 and 3. If you have not done this, I do not understand where you thought you could do a reading of.

    In any case, if you have servos that are controllable of RS - 232, it isn't likely that the series is even close to what you do a closure won't tell you much more that the converter is functional. When you have a real instrument connected, you still need to debug settings com (baud, parity, handshake), type of cable (null-modem or directly through) and the actual orders that you send to the instrument and its answers.

  • Can not read the serial port VISA without MAX

    Hello

    I'm trying to build an application that will interface with a Black Cat Systems GM-10 radiation detector.

    The app works fine on my computer (with the full development system OR) but when I install it on another computer, without LabView, the application cannot see the serial port!

    I checked that the driver is installed correctl and Windows can see the device, but when I run my program, he can't seem to access the serial ports.

    I then tried to install MAX on the second computer, how the application worked well, but as I install this app in other places, I don't really have the ability to install MAX everywhere (software must be autonomous).

    Any help would be appreciated!

    Z

    I would have joined the project file, but the forums seem to not want to allow me to download that big of a file.

    What version of LabVIEW are you using? With 8.x, the installer is very able to install the runtime of NI-VISA and MAX. If you are using an older version of LabVIEW, there is an option to include the series VISA support. Install just MAX will do nothing to make the available ports. This is the VISA that does this.

  • setting the parameters of serial port VISA does not persist

    When I set the baud rate using the VISA's Interactive Control Panel for a serial port specific (ASRL) and then close the window for ASRL, baud rate goes back to the default value.  Why doesn't baud rate?

    Also when I change the port settings for a particular serial port (COM) on the side of Windows, why can't I see these same port settings when I look at them from the interactive panel of VISA?

    Also, when I set by programming the output baud rate for a particular ASRL (code C), why is it reset by default when I re - run my program and do a get on baud rate?

    Some information:

    My C program works on an industrial PC which has a PXI MXI connected to it expansion chassis.  Series 3 cards in the expansion chassis.

    When you close the VISA session and/or close your application, port settings in the system default values.  It is a very normal behavior.  As long as you keep your open VISA session, the port will behave how you already told (set Baud Rate, etc.).

  • Serial port visa and while loop

    Hello

    I am trying to acquire data of a device through serial communication. This is an RS232 interface. I use a port of visa and I know open and close the port of visa again and again while the program is running is bad style. So, I trieed to use a while - excluding the Visa open loop and nearby (see the attachment of a second, program 2). Unfortunately this work of isn´t program and I can´t find the bug. However the first attachment (program 1) works properly (except that the speed is maybe more low). Sombody could me to get the second work programme.

    Thank you!

    Best regards

    Soffi

    What you need to do is to add a register to offset for the name of resource VISA and error. See attachment a screenshot.

    I couldn't find this anywhere in the examples of NEITHER. (This one is based on the basic series example write and read vi.) When I started with LV, I asked tech support how to do this, and they told me. I WISH THEY WOULD SHARE THIS TECHNIQUE WITH USERS IN THE UNITED STATES!

    I hope this helps. (I can reach the vi if you wish.)

    Ed

  • How can I open serial port VISA, automated?

    Hello.

    I have Labview 8.5.

    I have a program that works very well, on an interface series, on a well-known port (COM7). I have a converter USB to serial on my laptop.

    Is there a way to make my programm (.vi) to discover the port where my transformer is plugged? I want to open automated say.

    Thank you.

    Take a look at the discussions in this thread.  They discuss something similar.

    http://forums.NI.com/NI/board/message?board.ID=170&view=by_date_ascending&message.ID=322692#M322692

    R

  • Serial Port problems - carriage return and use as an executable file

    Hello

    I developed an application to send a few simple commands on the serial port and read the corresponding answers of a device that I am in communication with.  I have been using logical Port to watch the line TX of the serial port.

    By using the Visa configure Serial Port I set the stop character property allow true and used the hexadecimal value D trying to make the termination a carriage return characters.  When I sent the order, I'll send the cmd followed by Enter.  No matter if this property is set to true or the hexadecimal value is set to D for carriage return or line break is, the serial port would always send a line break.

    Then I got crafty and the string constant under normal display to hexadecimal display.  The ONLY way I could send a carriage return was manually putting 0x0D after ordering.  So my question is, why the Visa set up the Serial Port is not working correctly, and is there a better way to send a carriage return?

    My next issue is facing the construction of executable files.  I'm using LabVIEW 8.2 and wrote this program for another employee to use on his laptop computer.  I did install runtime Labview 8.2 and led to the executable that I generated.  I did-> the executable by clicking Tools build the executable.  The problem I noticed was that the executable would open and will work perfectly, but it would not send any data the serial port.  I then ran the executable on my laptop (which contains the full version of LabVIEW 8.2) and the serial port has worked well.  I guess my question is... Are there plug-ins that must be installed to use the serial port with the Labview runtime engine?  Or y at - it a step that I failed to do?

    Thank you

    Gary Still

    Not immerse in the first issue. The Knight will probably be galloping until shortly.

    For your second question, after building the executable, you must build the installer and includes support for the VISA. VISA is required for serial communication, and it does not accept American Express.

    It may be useful

    -AK2DM

  • Communication Serial Port with PIC

    Dear all.

    I am interfacing the labVIEW to an eeprom controller PIC, where I need to input data user to store in a location memory EEPROM, according to my condition that I've done programming the pic and it works very well with hyperterminal, at the same time I need to do with a labVIEW using communication serial port VISA , but when I did I receive a warning in 1073676294 that cannot be ignored, but I am not able to write user data to EEPROM by labview but I can do it to hyperterminal, please someone help me on this.

    Charron a G

    I was interfacing to pictures for a while, and the example that you have to build from was the same that I used. First, move the initialization OF THE outside of the loop. No need to re-initialization of the COMM PORT every 750ms.  Inside the code example, there is an expectation of 500ms between WRITING and READING (it is hardcoded for now, you brought it out on the ICON).  So time total is 750ms loop over the 500ms wait (more traffic comms), FYI.

    You do not use a return of ramasseherbe (13) or a NEWLINE (10) as a dismissal. You use a SO (14). Unless you're on a triggering a 14 ASCII in the PIC, the PIC will never see the "end of the chain of command" to analyze out. I have attached a good routine of init (IMO) I re - use on all my PIC projects, take a look.

    I use compilers Mikroelectronica MikroCPRO and displayed a complete interface of the UART (triggers on a CR (13)) on their site LIBSTOCK if you want to take a look at the side of the PHOTO of my work.

    http://www.libstock.com/projects/view/250/RS232-interrupt-driven-command-based-interface

    Steve

  • Change Windows 7 default serial port settings

    I need help how do I change the way Windows 7 control a default serial port COM1.  I use a serial cable very easy to control the special with external hardware.  The serial cable only use the RTS and DTR, GND pin of the cable and does not require special hardware drivers.  I used the camera on several versions of Windows 95 to XP without any problem at all with serial ports.  With Windows 95 - XP serial COM1 port's RTS and DTR lines defined 'stop' by default.  I just upgraded to a new computer with Windows 7 and now have a problem with the serial port.

    For my problem, I need to have the serial port to be 'stop' default until load control software and specifically opens the serial port to turn on the external device.  Using a serial port data Tester (a lot of green and Red led) I see that as soon as Windows 7 starts, it automatically sets the lines DTR, RTS and TD to serial port as "HOT" (high voltage).  This is not acceptable because it activates the external hardware until the control software is loaded!  Similarly when the control software is closed and the serial port is released in Windows 7, the serial port DB, RTS and TD lines are again defined as "HOT" (high voltage) by Windows.

    Computer: Dell Optiplex 745
    Windows 7 Pro 64 bit with SP1 installed
    Serial port on motherboard: Intel ICH8/ICH8R LPC Interface Controller 2810
    Serial driver: Microsoft 6.1.7600.16385 (is up-to-date)

       Settings for COM1:
       -------------------
       Baud Rate:     9600
       Data Bits:     8
       Parity:        None
       Stop Bits:     1
       Flow Control:  None
    

    I spent hours looking at the Manager of devices/port settings and try to find anything online with no luck.  Is it possible that this is because of the way Windows 7 plug-n-play manages the serial port?  How can I turn it off then the port by default as if it was on XP and earlier versions of Windows is 'off '?

    Thanks, Dave

    I need help how do I change the way Windows 7 control a default serial port COM1.  I use a serial cable very easy to control the special with external hardware.  The serial cable only use the RTS and DTR, GND pin of the cable and does not require special hardware drivers.  I used the camera on several versions of Windows 95 to XP without any problem at all with serial ports.  With Windows 95 - XP serial COM1 port's RTS and DTR lines defined 'stop' by default.  I just upgraded to a new computer with Windows 7 and now have a problem with the serial port.

    For my problem, I need to have the serial port to be 'stop' default until load control software and specifically opens the serial port to turn on the external device.  Using a serial port data Tester (a lot of green and Red led) I see that as soon as Windows 7 starts, it automatically sets the lines DTR, RTS and TD to serial port as "HOT" (high voltage).  This is not acceptable because it activates the external hardware until the control software is loaded!  Similarly when the control software is closed and the serial port is released in Windows 7, the serial port DB, RTS and TD lines are again defined as "HOT" (high voltage) by Windows.

    Computer: Dell Optiplex 745
    Windows 7 Pro 64 bit with SP1 installed
    Serial port on motherboard: Intel ICH8/ICH8R LPC Interface Controller 2810
    Serial driver: Microsoft 6.1.7600.16385 (is up-to-date)

       Settings for COM1:
       -------------------
       Baud Rate:     9600
       Data Bits:     8
       Parity:        None
       Stop Bits:     1
       Flow Control:  None
    

    I spent hours looking at the Manager of devices/port settings and try to find anything online with no luck.  Is it possible that this is because of the way Windows 7 plug-n-play manages the serial port?  How can I turn it off then the port by default as if it was on XP and earlier versions of Windows is 'off '?

    Thanks, Dave

    Dave,

    I can't believe that you have not answered this question.  I had the same problem as you trying to control my radio interface.  I just came by for a Dell Optiplex over the weekend and noticed the same problem.  I was searching the Web for an answer when I found this post.  I am happy to say that I found the solution to my Optiplex and how it works for you.  I went into the BIOS and set the UART protection on.  Makes no sense to me because I'm a software guy, only an amateur on the hardware side.  I left the BIOS and the serial port works as it should like in XP.
    Steve
  • Serial port under guest operating system does not work

    Running VMWare Workstation 7.1.3 on win 7-64 bit. Guest operating system is win 7 32 AND Windows XP (32 bit). I followed the instructions on connecting to the host serial port. However, there is no access to serial port a guest OS. Serial Port sniffer running on the host shows NO ACTIVITY on the port operating system serial host.

    Even serial device, attached and if running on the host works very well.

    Any ideas?

    Steve

    I doubt that the documentation is correct for what is with VMplayer 3 on Windows TGV serial ports is.
    Read my notes http://faq.sanbarrow.com/index.php?solution_id=1007

    I removed the option of thinprint and reconfigured the serial port in the vmx file attached.

    Turn off the virtual machine and replace the existing by the attached vmx file.
    Then try again

    If it still does not - change
    Serial0.yieldOnMsrRead = "FALSE".
    TO
    Serial0.yieldOnMsrRead = 'true '.

  • Time GPS, Position, Velocity.vi - error-1073807360 reading was held at node (arg 1) .vi property VISA set up a Serial Port (Instr)

    We receive information such as the Latitude and Longitude of a receiver Garmin GPS18xLVC via a serial port on our PC using LabView 7.1.  Successfully, I connected the GPS on the serial port and tested with HyperTerminal.  I tried reading GPS time, Position, Velocity.vi several times and still receive the following error message: error 1073807360 has occurred to the property node (arg 1) visa configure a Serial Port (Instr) .vi.  I think it has something to with the configuration of the VISA series under vi.  Any suggestions would be greatly appreciated.

    Thank you

    I understood the question, that I had with the time reading the GPS, the Position, the Velocity.vi.  The vi. "do not open" port com automatically and so I had to modify the NMEA GPS Subvi reading to first open the port (VISA open command) and then continue with other operations.  Once I did this it started to work very well.  I don't understand why this feature has been left out because it won't work without it.  I tested the code with a receiver Garmin 18xlvc and it seems to work fine.

  • VISA from read/write to serial port - unable to implements several orders of writing!

    Hello

    I'm new to Labview and I'm reading from a pressure through a virtual serial port USB sensor. I am able to read the port when you use HyperTerminal

    The code sequence that I should write to the port in order to obtain measurements using hyperterminal is the following:

    ' *' (2A hex)-online start and the responses of the port by asking 'Command', I should then enter

    FF-online measurement select the port must ask the 'mode', so I should enter

    0 has-online measurement of high resolution mode and it was then that I should start receiving action.

    The port is always answer by errors when I write the start command or the FF one. I tried to establish a sequence stacked to write the three commands then read the port, I added some delay between the three of them, but it does not work.

    Now I made really simple and removed the stacked sequence and just put the three commands one after the other and try to remedy not to not on the code.

    I'm really stuck at this point, could someone help me please? I read a lot fo articles on the forum, but I can't solve this problem

    Thank you

    I have attached my VI and the SCP1000 documentation (I can provide other versions of my demo if necessary)

    The reason for your problem is a frequent misunderstanding even among experienced programmers. Take a look at this thread

    http://forums.NI.com/NI/board/message?board.ID=170&thread.ID=417750

    In your data sheet, then they return codes like 0xFF or 0x0A so has a single byte of average value. Then you in your-active code constant writing FF\n is so this equal to values in format hexadecimal 46460A and your instrument do not understand. But it will include FF0A. In order to solve your problem, you would type in \FF\n in your '-' chain helped codes. Remember too, if you type in \32 it will be converted to character 2 this being 0 x 32 50 decimals and code ASCII 50 is equal 2

    Take the time and change the display format of string between '-' display and Hex display and you will see the difference

    Hope this helps

  • Error: The property node (arg 1) in .vi VISA set up a Serial Port (Instr)

    Hello

    I've seen people once they have gotten this error, but none of them really apply to my situation.

    Right now I use LabVIEW example code to read from a device manufacturer. This device is connected using a Tripp Lite USB adapter series (http://www.tripplite.com/en/products/model.cfm?txtSeriesID=782&txtModelID=2430) for the connection from the PC to device with RS232. The adapter works fine when using the software prepared in advance (not LabVIEW) given by the manufacturer and the COM port is seen by LabVIEW. When I run the program, I get the property node (arg 1) visa set up a Serial Port (Instr) .vi (I've also attached the VI but it's a standard VI I got of LabVIEW). I get this error despite the fact that I use the same COM port, who has worked with the manufacturer's software.

    I have attached manual of Protocol RS232/debit BUS (not sure if this applies) that requires the device. The device is a mass flow controller whose operating instructions is: (http://nemu.web.psi.ch/doc/manuals/device_manuals/Bronkhorst/917023--Operation%20instructions%20digi...

    I'm using LabVIEW 10.0.1

    Any help is appreciated

    Try to restart the PC and then try the LV version before trying other software.

    I have seen thrid party serial interfaces work on the first try but fail when you switch to another application. It was as if the pilot did not know that it was no longer the first process.

    Ben

  • Problem: read bytes to serial port

    Hello, I need to communicate with an external device with serial port. I have to write a command to my device string, and then it should play with 64 bytes of data. I built a function of READING-WRITING and I use it in a loop (I have to read a lot of 64-byte block)

    Sometimes, I have the following problem:

    (1) I have send the command string, I wait with "Bytes to the serial port" whereas I have more then 60 bytes, then I read.

    (2) sometimes happen that the read function cannot read all 64 bytes, so the net for cycle, I have in the receiver buffer mor than 64 and the program to stop working. (does not work well)

    I need to be sure that after writing the command I have 64 bytes, so I red all the 64 bytes so the next loop for, I have the buffer of the empty receiver.

    I enclose my writing reading function. Please refer to the block diagram (there are a few notes).

    Thank you

    In no place in your program see the VISA configure the Serial Port. It's always a good idea to include this that even if you use the default settings. I suspect this is one of the default settings which is wrong with you. By default, playback is set to end when a character is considered. This means that if you have a 10 hex (ASCII LF) in your stream, playback stops until the specified number of bytes is read. Put in a VISA set up the Serial Port and connect a constant False to the stop character allow entry.

  • Questions about serial port read and write at the same time

    Hi I create a user interface for the communication serial port, where there are essentially 2 front panels, where the user enters commands one and the other where the prints of UART is delivered. I thought initially using a state machine but the reading and writing may be independent sometimes and so I can't rely on States. I searched a bit on the forum and he left me even more confused. Help, please.

    (1) in a thread that sessions visa duplicated has been used for writing and reading at the same time, is it recommendable? How will this affect performance?

    (2) essentially when the vi is reading data are it must constantly view as well, however, someone said that it takes too much memory to use shift registers, so how do I go about this? If using a State in queue after the loop of reading it affects the playback loop and be sequential?

    In addition anyway is to move the cursor to the latest data from the indicator

    (3) for the control of the user input, assumes that the user has entered an order in the control and press ENTER, then writing visa is launched, but if it comes in another string and press enter then write must be called again... is - it possible? will detect the previous commands in the control of compensation?

    (4) according to my understand the expectation for the event do not monopolize resources and writing can go in parallel, am I right?

    Thank you. I have attached a very basic vi which took me to the point, but I want to make it more robust. Please help especially in the part of the user interface.

    su_a,

    (1) you can have only one session to a port. Several UART can handle full duplex so performance is not affected.  At flow rates of high data and large amounts of data, buffering and latencies of BONE can become a problem.

    (2) who told you that shift registers using too much memory? Shift registers are usually the best way to transfer data from one iteration to another. String concatenation inside a loop (registry to offset or not) causes the chain to develop and may require re-allocation of memory.  Your VI never clears the string so its cold length become very large.

    Generally, you do not have an active cursor on an indicator.  If you want to always display the most recently received characters and turn on the vertical scroll bar use a property node to keep scrolls to the bottom.  This can be annoying for users if they attempt to manually move the scroll bar and find that the program continues to move it back automatically.

    (3) if the user has changed the value in the chain of command, when he hits enter the modified value event fires.  Simply strike brace does not change the value and does not trigger the event.  Not control need to be erased, but the value that he has to change.  If you want to send the same command again, have a button send a command may be a better choice.

    (4) write is a case of the event.  It is not in parallel with anything.  The structure of the event do not monopolize resources.  The other loop will run while it waits.

    The event loop will not stop when you press the STOP button. Probably it wll take two command: change events of value after JUDGMENT before any loop stops.  Replace the Timeout event (which never expires) with a STOP: value change event and a real wire of this judgment to the Terminal endpoint.  Remove the local variable.  Make mechanical locking when released.

    Lynn

Maybe you are looking for