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.

Similar Messages

  • Controlled reading from serial port

    I'm trying to establish a connection to an external device through the serial port. This is done in a while-loop which sends an association request tries to get a response if a response is not recieved a new rewuest is sent, etc. At the moment this procedure does not work. I am considering two explanations for this. The first is that the loop does not wait long enough for a response to come and simply keeps pumping out requests, the other is that there is something wrong with the reading algorithm, that doesn't let it properly take in information from the serial port.
    Solved!
    Go to Solution.
    Attachments:
    association_loop.GIF ‏5 KB
    read_visa.GIF ‏8 KB

    I made a new version of the read case. The old version was a while loop, the new version is a while loop which will go on until it encounters an EOF character. In this case it is
    0xC1 or 'Á'. I thought the old version would break before getting any message. This doesnt get any signal either. I have probed it, and it doesn't get a string from which to take the length.
    Attachments:
    read_visa2.GIF ‏10 KB

  • Thinkpad with serial port (RS232)

    For my job I need a laptop with a serial (RS232) port.
    I have the choice of the following laptops: Lenovo Thinkpad X230, X230T, T430, T530, W530.
    Neither of them have a serial port, right?
    I saw some mention of an adapter for the ultrabay slim bay, that would support an RS232 adapter.
    Does that work for all the above mentioned models?
    And if so, would the RS232 port work in the same way as the regular one? I need to program e.g. an Agilent datalogger with Labview to measure and recieve the measured data through the serial port.
    Kind regards,
    Rachel.

    thare are two ways :
    1. you can buy a usb to seial cable converter.
    2. if your laptop have a Docking Station. there is a serial port in the Docking station.  Put your laptop on the Docking station, the windows system will automatically recognizes the serial port.
    For example, my laptop is thinkpad x61t,  Itself does not have any serial port, But there is a serial port on the Docking station.
    I am a volunteer, don't work for Lenovo. I am a software engineer.
    thinkpad x61t, os:win7 Awavo Software com port monitor serial port monitor

  • CPU load goes to 100% with IMAQ interface and 4 serial ports. Any trick?

    Hello to all,
    I am using an IMAQ interface in conjunction with 4 serial ports for data acquisition. Both systems run with different VI's. My problem comes when I run both at the same time. In this case the CPU goes to 100%, and both programs slow down drastically. I must keep a sample rate between 300 and 600 ms for the test (easily achieved by the IMAQ or when I run only the VI for the serial ports), but unfortunately the sample rate goes to 3-4 seconds when running both programs at the same time.
    I have put “Wait (ms)” in every single while loop, but the delay stays and the CPU is still on the 100%.
    Do you have any clue to overcome this? Any help will be greatly appreciated.
    Thanks in advance.
    Best regards,
    Alejo.

    Ok, this is my VI for the data aquisition through the 4 serial ports. The block diagram of the IMAQ sofware is password protected and I cannot send it at this time. I hope the problem is in the first one.
    Again, thanks.
    Alejo.
    Attachments:
    Micrometers.zip ‏111 KB

  • Interaction with serial port (RS232)

    Hi!
    I am workin with a PLC and I need to get information about connecting it to an Oracle DB.
    Anybody could help me? I have no idea where to begin looking, any information would be very useful.

    I doubt you are going to get this to work directly. I can't think of a PLC that includes the ability to load the Oracle SQL*Net client, but it has been a few years since I did PLC programming.
    If you can't load the SQL*Net client over the only alternative would be to implement the TTC protocol directly and this is not a published specification.
    Perhaps you should use a PC client of some sort as a 'middle man' to interface with both the PLC and the Oracle DB.
    Mark

  • 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

  • HT204387 Does a classic bluetooth (v2.1) based accessory using Serial Port Profile (SPP) require MFi chip to communicate with iPhone or iPad ?

    Dear All
      Can classic bluetooth (v2.1) based accessory using Serial Port Profile (SPP)  communicate with all iPhones or iPads ?
      Is MFi chip required by a classic bluetooth(v2.1) accessory to communiate with iPhone or iPad  over Serial Port Profile  ?
    Thanks
    Manju

    Due to a copy/paste glitch, some necessary spaces have inadvertently been removed.  If I could fix this, I would.

  • Nokia 6600 connection with pc via serial port

    Hello friends
    I want to connection my nokia 6600 via the serial port, or infrared, to a pc. How can I do this? I have made a test with the CommConnection Interface, but it doesn�t work, it gives a port not found exception. Who can help me?
    Thanks tritonman

    Thanks a lot, but you now a phone which supported the completely CommConnection Interface to communicated with a pc over the serial port?
    Thanks tritonman

  • Problems with parity and flow control using visa serial

    I am trying to create a basic user interface with the options that my
    company uses most often for a force indicator.  You can configure
    the indicator over serial, as well as read the values off the
    indicator.  I am trying to create the user interface so that using
    producer/consumer loops with events, once you change a value, it will
    write that new value to the serial port, ie the device. 
    The problem I am having is transfering the parity and flow control
    values for the serial config to the Basic read write VI.  The
    problem is that once the consumer loop executes, it will write the
    values correctly to the VI, but then the outer loop executes 200 ms
    later and clears the values.  I know that this is normal behavior
    and that in order to keep the values stored, normally you would use a
    shift register.  I tried to use this and had some issues with
    correct data types/array mis-mtaches, ets, so I created an indicator
    and had a local vaible read the indicator, which seems to be working
    for the stop bits, read bits, baud rate, etc, but not the parity anf
    flow control.  I always get "blank" outputs for theses values (if
    you enable the digital display you can see that they are outputing the
    value 0 which correspondes to None in both cases, which is
    correct).  Even though it appears that it is outputting the
    correct value, I get an error that says the VISA property is
    invalid.  I initally did a search and found that my stop bit
    control was wrong (outputting double instead of integer), but I could
    not find anything on the parity/flow control issue.  I even tried
    to copy the serial config controls from the basic serial read/write to
    my dialog box and that did not work either.
    I would be grateful for any suggestions.
    Thanks
    Kenny
    Kenny
    Attachments:
    BGI_main pandc.zip ‏232 KB

    I should add that I am using LV 8.0 and that the serial config
    indicator in the consumer loop will be off the frontpanel in the final
    VI so that it is not visible to the user.
    Kenny

  • How can I with LabVIEW programatically control the RS-422 port?

    I would like to talk to my hardware through the RS-422 protocal, how would I do this in LabVIEW?
    Thanks alot for ANY help.
    Brian

    Most likely the communication would be identical to what you do for RS-232, only you would use the port number associated with your serial hardware. Thus you can use VISA starting with the serial examples in LabVIEW.
    There are a few extra things like the transceiver control on NI-Serial RS-485 hardware that have special VISA calls, but those are easy to add.

  • How to control an Xserve G4 with the serial port

    I have an Xserve G4 first generation, and was wondering exactly how you would go about connecting to it via serial port incase I need to change something when there is a network issue. I have looked around the internet without much success. It has Leopard Server on it, so Apple says the baud rate is 56700, and 8bit, no parity. So that's all set in the client machine, which is a MacBook Pro with a USB to Serial adapter on it, which shows up in Zterm. Once I'm in Zterm, it just sits there, and pressing enter doesn't prompt a log in. Does anyone see what else I'm most likely missing?
    Thanks

    Thanks for the reply Cemelot. Yes, I did create a profile in ZTerm. This is what I have it set to.
    I also read that you're supposed to run the command "/usr/libexec/getty serial.57600 /dev/tty.serial" on the Xserve itself.  It made no difference if I did that or not. I also checked to make sure tty.serial was inside /dev/. Anything else I'm missing? Thanks again.

  • REM Planned Orders being generated with Order type LA instead of PE

    Hi All,
    I'm running the Repetitive Manufacturing scenario and when I execute the MRP run for my Planned Independent Requirements, Planned orders are automatically generated with the order type LA. I understand that for repetitive manuf., planned orders should have the order typ PE.
    Is there something missing in config? How can I get the orders to be generated with the Order type PE??

    HI,
    Check the following settings which is required for REM
    1. Master Data -
    - Create Material master - MM01
    -Create BOM - CS01
    -Create rate Routing - CA21
    Create Rem profile - SPRO ->Production planning -> Rem.Manuf->Control data or use existing one
    Assign Bom seelction method = 2 & 3 (Prod version) in MRP view
    Rem MFG indicator - mrp view in MM01.
    Assign the REM profile to a material - MRP view in MM01.
    create Valid Production version - MRP view in MM01 & Check Rem mfg ind
    Assign the BOM and routings in Prod. Version
    2.For Preliminary Cost Estimate:
    Create version specific product cost collecter for Header material and preiminary cost estimate - KKF6N as per the settings in Rem profile. -
    3 For standard cat Estimate.
    create std Cost estimation(CK11n)
    std cost Estimation Mark & release(CK24)
    Thanks
    Hrishi

  • Multitone generator with more inputs and with output to computer speakers

    I want to add several (perhaps 10)  harmonically related sinewave tones and output to the computer speakers or line out. Ideally would like to use the full audio range so 44100 Hz sample rate. I've managed to combine a couple of VIs and get something that works at lower sample rates but doesn't dynamically update if I change frequency or phases. And at higher sample rates it isn't a continuous sound. It just beeps, then waits, beeps then waits. I'm sure oters have tried to tackle this in the past but don't find much info. Currently using a Mac but could switch to a pc if needed. Guidance will be most graciously accepted.
    Solved!
    Go to Solution.
    Attachments:
    Dans Multitone Generator with amplitude and phase.vi ‏59 KB

    I found several things which together keep your VI from working the way you want. The VI attached works fine on my Mac.
    1. I configured the sound and the tone generator to use the same sampling info. Any other combination creates complications.
    2. I found out the hard way that the tone generator wants the frequncy to be an integer multiple of (sampling rate)/(# samples). This does not appear in the documentation (help file) but other combinations throw errors.
    3. Set the amplitude input (not Tone Amplitudes) on the Multitone Generator.vi to 1.00. This makes its output compatible with the Sound VIs. This is documented in the help but you have to read several places and put thepieces together.
    4. The reset input to Multitone Generator.vi must be true for it to respond to changes in the tone frequencies, amplitudes, or phases inputs. I just wired a true constant for now. Later this might be better handled by an event structure.
    5. Consider making the frequency, amplitude, and phase controls into arrays or one 2D array so that an arbitrary number of tones cna be used without modifying the program.
    6. Some kind of Wait may be required. Without it I occasionally received a Timeout error. Several options are in different cases of the Diagram Disable Structure. The Sound Output Wait will guarantee that the timeout does not occur but it also produces small gaps in the sound. The Wait (ms) works fairly well but it is a guess as to the optimum value for the Wait.  After all the changes I have madevene the no wait case seems to work.
    Lynn
    Attachments:
    Dans Multitone Generator with amplitude and phase.2.vi ‏38 KB

  • How interface N5181A MXG signal generator with labview by using LAN Interface????????????

    hai every one ...i have a doubt how  to interface N5181A MXG signal Generator with Labview by using LAN Interface???? and
    how to find IP Address of N5181A MXG signal Generator????????
    when i connect instrument with labview it shows that no instrument connected and what are the requirements for LAN interfacing with that instruments in labview and please help me?????? 

    You can set the IP Address on the instrument.  You may need to be in the same subnet of your controlling computer, so you may need to set your computer's IP Address to something static.
    Use VISA.  It makes life easier if you decide to use another bus (like GPIB, USB, serial, etc).  In MAX, create a network session with the static IP address you set the instrument to and use that as the VISA Resource.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • 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

Maybe you are looking for

  • How can I print a list of the apps I have on my iPad and iPhone ?

    I had to reinstall all my apps when I upgraded to the new iOS - while some were listed in my 'purchased' list a lot weren't and I had to go through all my iPhone apps to see what was missing. And my folders all vanished as well!  Any hints or tips be

  • Error while executing the stored procedure through sender JDBC adapter

    Hi All, I am getting below error while executing the stored procedure through sender JDBC adapter. Database-level error reported by JDBC driver while executing statement 'exec SapgetNextEntity 'SalesOrder''. The JDBC driver returned the following err

  • Frozen HP Desktop Envy Phoenix

    The keboard is not responding, the mouse is responding and I can move it aound the screen but cannot click anything.  When the mouse moves there is a lag.  The screen is just a green screen.  I have tried to bring up the task manager but cannot click

  • Is the LDC package actually LDC?

    For those of you that don't know what ldc is, its a llvm front-end for D. There is a package for it in aur, and looks legit enough looking at the comment and dependances, but the package doesn't seem to install ldc. There is no ldc binary (there shou

  • HTTP connection is thread isn't working

    Hi, I am writing an application that streams an input from a HTML webpage. I have put the connection in a separate thread (as advised). I need the input steam to be saved in the RMS (which is contained in the main part of the program) and as the thre