Low level control of serial port?

Hi there,
We're using LabVIEW 7.1 and I would like to control some low level aspects of the serial port (I'm having a LOT of difficulty connecting to an ABU93 autoburette). Is there a way to set the DTR, DTS RTS and CTS in LabVIEW 7.1? Is this controllable through VISA?
Thanks for any help,
Russ

The serial lines cannot be adressed using the Configure serial port VI. You need to dig a little deeper, and access the modem property node.
See the attached vi.
CC
Chilly Charly    (aka CC)
         E-List Master - Kudos glutton - Press the yellow button on the left...        
Attachments:
Serial line settings.vi ‏35 KB

Similar Messages

  • Motion Control via Serial Port

    I have previously developed an automated video microscope application in Labview. It worked great. My setup was: NI PXI system with 1409 image board, 7344 motion controller, 7764 breakout box, stepper motors, motor drivers, and tables. Now, a customer is requiring that we use a specific brand of drivers that encompass a motion controller and are daisy-chained together. Communication will take place from a serial port, thereby bypassing the 7344. My question is: will I have to can my entire previous Labview motion/data acquisition program b/c I won't be using the 7344 controller? Or, will it be easy to specify in the program to commmunicate via the serial port rather than the card? Would this setup take place in MAX, or in the LabView applicatio
    n itself? Any nuances that I should know about? Any info would be appreciated. THANX-ROB

    Rob,
    in this case you won't be able to use any of your motion related code. The motion VIs in LabVIEW call the NI-Motion driver dll and thus they are not hardware independant. By the way, this is not a specific disadvantage of the NI-Motion driver. In fact there is not such a thing available like a standardized interface and hardware independant motion control language.
    In general you will have to use low level serial communication (VISA). That means you have to read the drive/controller manual, identify the serial command strings you need and send them to the device.
    For configuration the drive vendor should provide a utility to set the necessary parameters.
    On the other hand you could be lucky in the case that the vendor of the drive/controller provides h
    igh level LabVIEW vis. You should check with this vendor if a LabVIEW driver is available. Still you will have to rewrite your motion related part of the code.
    I'm sorry that there are no better news.
    Best regards,
    Jochen
    NI-Germany

  • PCMCIA Low Level Control - Satellite 5100

    Hi to all,
    I've an important question, my PC (Satellite 5100-503) does not works properly for PCMCIA slot when I want to controll it at low level by means Jungo Drivers (writing and reading of a particular address space for Compact Flash Card device), for others LAP TOP PC (HP) my program works properly.
    The question is: do you know if this is a known problem and what driver or ather solutions you propose to solve my problem?
    Thanks a lot,
    Francesco

    Hello Francesco
    I cant give you a proper solution because Im not familiar with this Jungo Drivers.
    But why did you use these drivers? Why did you not use the Toshiba drivers which will work properly?
    I dont believe that you will found an answer for your question in this forum. There are users who search for a solution of common problems.
    Good luck
    Bye

  • Motor control by serial port

    So now I decided to move to a little hardware 
    I have been controlling the speed and direction of a DC motor by passing a combination of ASCII values and HEX values.For eg:- P20 will give me some speed P50 will give me another.M1/0 will rotate the motor in both the directions.S will give me counts which has been converted to the respective RPM.
    So I have no issues here. But now I have to implement a PID controller with it.
    That means Set Point will be decided by user(That is me) and Process Variable(PV) will I think be the feedback from the output of RPM.And, I think output of PID will be given as HEX to VISA.I don't know.Am I correct over here? 
    How to implement the motor control with the PID block?
    Can anyone guide me in the right direction?
    Attachments:
    Basic Serial Write and Read1.vi ‏23 KB

    Hi Sunny,
    the output of the PID is a number used to set an actuator. In your case you have to send that number to your motor control board, which expects strings (not any kind of HEX)! As you already gave examples of the expected strings you would use a FormatIntoString function to form the proper commands.
    VISA also only uses strings as in-/output, you have to create them anyway!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Low level control of SCXI 1127 relays

    Hi,
    How can I close or open switches HLSELECT and 1WIRE of SCXI-1127 manually? There is a VI(1WireINDEP) which uses CIN to activate these switches. This VI allows to activate HLSELECT and 1WIRE relays when the SCXI 1127/1128 is used in 1 wire mode as a 64x1 multiplexer. The 1WIRE relay will always connect to 1wirelowref signal. The HLSELECT will connect to Com0+ when H-L Channels is set to Channels 0-31 and to Com0- when H-L Channels is set to Channels 32-63.
    I need to control 1WIRE relay just like this VI controls HLSELECT relay. I have attached this VI. Can you please modfiy it or write a different VI to allow controlling 1WIRE relay. I should be able to open and close these two relays (HLSELECT and 1WIRE) manually thro
    ugh the VI. If this is not possible, can we modify this VI so that the 1WIRE relay will always connect to com0- signal instead of 1wirelowref signal.
    Thanks
    Attachments:
    1wireINDEP.vi ‏48 KB

    Thanks for your reply. My problem is not that simple.I am using NI-SWITCH1.6 and need to continue using it. Can't I just use this VI as sub VI and call it? Here is my problem:
    I am building a system to test cables that are open at both ends. A cable can have 4, 6, 8, 10, or 20 wires in it. I wish to test the resistance of each individual wire in a cable and insulation between wires. I have four SCXI 1127 modules with SCXI -1331 in a SCXI 1000 chassis. The switches are controlled by a PCI-4060 DMM.
    I have written a VI ( in Labview 6.1, NI-SWITCH 1.6, NI DMM 1.6), which configures DMM for multipoint measurement and SCXI 1127 modules in scanner mode. I connect 1_WIRE_LOW_REF of all SCXI-1331s to a common point, which connects all wires in a cab
    le/s under test. So, by using SCXI in scanner mode and generating scanlist, I can measure the resistance of individual wires. I use 1127 in 64 x1 multiplexer mode. This takes care of one requirement.
    Now for insulation testing, I keep all wires of cables connected to switch channels and need to connect them in combinations. I can generate the combinations and pass it in a loop to close or open switches. I need help in creating correct paths and route the measurements to DMM.
    For example:
    Let�s say, we have a four wire cable, I need to test the insulation between them in pairs. There are six possible combinations: 1-2, 1-3, 1-4, 2-3, 2-4, 3-4. Let�s say these wire are connected to ch0, ch32, ch1, ch33 of module 4, the VI may need to close the switches as per the paths required (attached in word document).
    I just don't know how can it be done.
    Attachments:
    Channel_combinations.doc ‏41 KB

  • Time out function in VISA configure serial port vi

    I have some doubts regarding the time out functionality of "VISA configure serial port vi":
    1) I have set the time out value as 10s while initializing the port using this vi. Does this mean that for any Rx operation happening on the serial port, it will wait for 10s for the data to be received?
    2) Is this waiting functionality also valid on "bytes at port" vi which I am using before reading the port data?
    Because in my application, the control at serial port is actually not waiting for 10s and is coming out before the desired time out (10s). Do I need to set this time out anywhere else apart from initialization at "VISA configure serial port vi"??
    Can anyone please tell the steps to set this timeout for the serial port?
    Thanks in advance!

    1. A read will return when the first of the following is satisfied:
       a. The number of bytes at byte count has been received.
       b. The termination character (if enabled) has been received.
       c. An error is detected.
       d. The timeout time has elapsed.
    I am not sure what happens if handshaking is enabled and the other device pauses communication.
    2. No. Bytes at port returns immediately. This is a status check and it would not make sense for a timeout to apply.
    Without seeing your code and the data the remote device is sending, we can only guess. My first guess would be that you have termination characters enabled (default) and a termination character appears in your data.
    Lynn

  • Can't find a PCI-serial port

    Hello:
    I am using a PCI-Serial card to control a serial-port stage, I can not find the serial port with Labview8.0. Windows can find this serial port. When I use the same Labview program in my old computer which has a serial port on board, it can be recognized. Shall I change something of the 'Visa serial' communication module?
    The attached file is a Labview programmed driver for a motor-stage.
    Thanks,
    Attachments:
    ZaberLabview8Demo.zip ‏77 KB

    If Windows can't find the serial port, then LabVIEW isn't going to find it, and it's irrelevant what you've coded. You should go into the Windows Device Manager to see what it tells you about the device. Does it even show up in the list of devices? Does it have a driver loaded? If it doesn't show up in Device Manager, try plugging the card into another PCI slot. Does the card show up if you plug it into another computer? Perhaps the card is bad.

  • A31 Serial port only works on dock..?

    Hi All,
    I have an IBM A31(2652-P3M) and I'm trying to use it as a GPS terminal for 4x4 driving. Most new laptops don't have a serial port to hook into my gps so this one is good in that respect.
    But... the serial port on the laptop doesn't work. Only the serial port on the dock  (Type 74P6733) works. Unfortunate the laptop with the dock is too big to mount in the car.
    Is there any reason why the port on the back of the laptop itself doesn't work? Is there some software, hardware or bios switch that controls which serial port works?
    Thanks for your help,
    Ashley

    Hi freaky-namuh, welcome to the forum
    It could be that it is disabled in BIOS, config > serial port
    Andy  ______________________________________
    Please remember to come back and mark the post that you feel solved your question as the solution, it earns the member + points
    Did you find a post helpfull? You can thank the member by clicking on the star to the left awarding them Kudos Please add your type, model number and OS to your signature, it helps to help you. Forum Search Option T430 2347-G7U W8 x64, Yoga 10 HD+, Tablet 1838-2BG, T61p 6460-67G W7 x64, T43p 2668-G2G XP, T23 2647-9LG XP, plus a few more. FYI Unsolicited Personal Messages will be ignored.
      Deutsche Community     Comunidad en Español    English Community Русскоязычное Сообщество
    PepperonI blog 

  • Low Level Serial Port Access

    This question has gone unanswered several times on this forum in the past but I thought I would try it once more.
    Is there any Java API that is in, or will work with J2ME to allow direct read and write to the serial port similar to the functionality that javax.comm provides for j2se.
    This would be useful for a project where a palmos device is used to communicate with equipment used to monitor industrial processes.

    Some MIDP 1.0 devices support access to the Serial
    Port.
    I have done it with Motorola i85, i50 (iDen) and
    Motorola T720i.
    I think 95cl also supports it. I'm ALSO having problems with serial port access on
    my T-Mobile Moto T720i phone. I've had MUCH success
    with the Nextel i85, i50, i95cl, etc phones, but the
    same code isn't running on the T720i.
    What do I need to do differently???
    Thanks,
    -Tim

  • Low-level USB control

    Hi all,
    I'm trying to do some very-low level USB control using Labview. Tasks are:
    -Write 1 to output
    -Write 0 to output
    -Write clock to output.
    Very simple tasks (no need to read, just write) , but i need to be able to do this with just a USB cable attached without any device. It will be used to characterize the cable.
    The other end of the cable will be terminated appropriately. 
    If anyone could give me some information for me to start this, that would be extremely helpful.

    If you want to do something like setting the pins of a RS-232 port without a device attached, this will not work.
    USB works fundamentally differently to RS-232.  It is a point-to-point connection.  It doesn't work open ended and you don't have direct access to the signal levels at all.
    Look for a cheap I/O device instead and use it for testing.
    Shane.
    Say hello to my little friend.
    RFC 2323 FHE-Compliant

  • How to do you control lower levels from the Stage?

    How to you control lower levels from the Stage?
    I have a button on the main stage and I have a symbol that has another symbol inside that I want to control that timeline or label.
    I have had success with going one level deep but not two or three deep.
    sym.getSymbol("symbol01").stop("label01");
    Any help would be great!
    Thanks.

    Can you explain the hierachy of your symbols? By this I mean, name of your symbol and any symbol inside and any symbol inside nested symbol and what event you are triggering from where?

  • Control a generator with a control volage by serial port RS232

    Hello everybody,
    I would like to control a generator thanks to a control voltage. This last one would be sent to a switch wich turns on the generator.
    To do that, I want to link the switch and the computer with a serial port RS232 by using NI-USN 232 cable.
    I made some research on this subject and I am only a beginner on LabView but I would like to use one (or several) pin which will send 5V in voltage when I want.
    Is that possible? Is there another way to make it?
    Thanks in advance.

    Thank you for your answer.
    Maybe, I didn't explain myself correctly. 
    For example, on the Raspberry Pi, you can control a card by sending 3,3V signal with RS232 port (I made it last year so it makes a sense).
    What I want to do here is to control an electronic card that turns on my generator after. I don't have enough to buy a generator controlled unless you know one not very expensive.

  • How to add control buttons using Java thorugh serial port?

    Hi everyone,
    I'm new to this forum.
    I have some questions on Java and serial port.
    I want to write a Java program to control my robot, through serial port. For example, when I click "Forward", the robot will go forward, and so on.
    Now I already have the buttons, so next I would like to ask how to interface the buttons with the serial port.
    I already have all the javax.comm things installed.
    below is the code for my buttons:
    import java.awt.*;
    public class ControlButtons extends java.applet.Applet
         GridLayout myLayout = new GridLayout(3, 3);
         Button button1 = new Button(" ");
         Button buttonForward = new Button("Forward");
         Button button2 = new Button(" ");
         Button buttonLeft = new Button("Left");
         Button buttonStop = new Button("Stop");
         Button buttonRight = new Button("Right");
         Button button3 = new Button(" ");
         Button buttonReverse = new Button("Reverse");
         Button button4 = new Button(" ");
         public void init()
              setLayout(myLayout);
              add(button1);
              button1.setVisible(false);
              add(buttonForward);
              add(button2);
              button2.setVisible(false);
              add(buttonLeft);
              add(buttonStop);
              add(buttonRight);
              add(button3);
              button3.setVisible(false);
              add(buttonReverse);
              add(button4);
              button4.setVisible(false);
    }Now I would like to ask for direction on how to add in the code to make it work with serial port.
    Thanks

    The plan is, I have a robot device connected to the serial port.We don't know anything about that device. We don't know how to control it. We don't know what you have to write to the device to make it do anything. Only you know what.
    For example, when I click "Forward", the robot will go forward, and so on.So what do you have to send to make it do that? and same for the other buttons.
    Next, you need to work out from the javax.comm API how to open the serial port and send data to it. This is a standard exercise in learning a new API. You must be able to do this. Again and again.
    But the program is useless. The button can be clicked, but didn't do anything.Because (a) they have no ActionListeners and (b) there is no code to send anything to the serial port.
    You have to write all that. So you also have to look up ActionListener in the Java API and how to attach it to a button. You can do that. We all do that kind of thing every day.
    So next I would like to ask how to interface the buttons with the serial port.You've been asking nothing else since you started, but you've also only done enough investigation of your own to create the buttons. That's only the start.
    The problem is what method and command should I use to make those buttons actually functioning.See above. You've been told part of it several times. The rest only you can answer, because it's your robot.

  • Serial port control

    hello
    is it possible to control, using labview, the inputs and the outputs of a serial port as they were simple digital on/off channel?
    for example in order to use them to turn on/off a relay or to read the state of a switch
    I've searched among the labview examples but they show only complex communication to an hardware using strings...
    thankyou in advance
    paolo
    Solved!
    Go to Solution.

    You can control the handshaking lines Request to Send (RTS) and DTE Ready (DTR).  You can read the handshaking lines DCE Ready (DSR) and Clear to Send (CTS) as digital inputs.
    They are accessed through property nodes of the VISA reference under Serial Settings / Modem Line settings.
    Be careful of any loads you apply to them or signals you enter in terms of voltage and current so you don't fry your computer.
    Message Edited by Ravens Fan on 09-10-2009 04:27 PM
    Attachments:
    Example_VI_BD.png ‏2 KB

  • How can I control a HP 33120A waveform generator with the serial port of my PC?

    Hello,
    I want to control a HP 33120A waveform generator with my PC using the serial port. I don't have any idea about how to do it. If you've done it or if you know how I can do it, please give me some indications.
    Thanks
    Jean-Baptiste Paillet
    PS: I don`t have G PIB port

    The answer to your cross-post in the LabVIEW General group seems to be right on the money:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=50650000000800000032200000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
    Regards,
    John Lum
    National Instruments

Maybe you are looking for

  • Creation of a ztable

    Hi, what is the purpose of a ztable. when would we be pushed to create one. how do we create it like is it going to se11 enter a table name and create. centrino

  • Native sql not populating correct data in ECC6.0 unicode system

    Hi, I am working in an upgrade upgrade project from 4.6c to ECC6.0. 4.6c is non-unicode system. ECC6 is Unicode system. I am facing Native SQL problem in custom developed programe in ECC6.That means programe reading the data from oracle datbase and s

  • Pictures placed in Trash by accident....

    By accident, hundreds of good pictures I want to save were placed in the Trash. I have tried and tried to take them out and place them in a new album I created where they belong. It just will not let me do that. The Trash is the only place where thes

  • Equipment download: R3 -- CRM

    Hi, The equipment BOM in R3 contains serialized(equipment) and non-serialized materials. When we download the equipment BOM from R3, the corresponding equipments are viewable in CRM, through the install base. However, the non-serialized materials are

  • My DVD imports into iMovie keep freezing in playback????

    Hi there- I have imported a few DVDs into iMovie using Aimersoft DVD Ripper's full purchased version. They were working fine in playback mode, both down in the Event library and up in the project I was editing. But all of a sudden, when it gets to th