Error using settings with serial port

Hi guys: Can any one please tell me how to I change this line as I am getting error on Settings in VB.NET
Thanks
'Me.Settings = frmWeightMain.SerialPort1.Settings  'Error
Me.CommPort = frmWeightMain.SerialPort1.PortName

me.settings is an xml file in the project.  The SerialPort doesn't have a settings property so you must have a custom property in the frmWeightMain form, or the error is occurring because the property Settings doesn't exist.
jdweng

Similar Messages

  • Any way to communicate with Serial PORT using JavaScript

    is there any way to communicate with Serial PORT using JavaScript ??
    Dont tell me to do it in java because I need to this on client side not on server side.
    such as when client pressed the button, a javascript function will be called and in that function I need to communicate with the serial port of that client... That action will not go to server side.

    Is there any way to send a string of bytes to the serial port from the client side ?
    Just a button on the web page that sends out stuff to the comport.
    I was hoping to do this using java script also ..

  • Use a HP 34970a with serial port

    Hello,
    I have labview 7.0 and I have to use a HP 34970a with serial port.
    Can anyone say to me any advice to do it?
    Where can I find some material?
    Thanks
    Vincent

    Hi Vincent,
    > I have labview 7.0 and I have to use a HP 34970a with serial port.
    > Can anyone say to me any advice to do it?
    > Where can I find some material?
    Your first step should be visiting http://ni.com/idnet and search for an
    instrument driver for your device (in this case I can promise you will
    find one).
    The "Learn" link on the same page tells you more about instrument
    drivers in general which could be helpfull if this is the first time you
    are working with instrument drivers.
    Rico

  • Communicating jsp with serial port

    Hi, I'm developing an web application that needs to communicate with Serial port. I'm not getting how to communicate with Serial port. I'm building application using jsp. Any one help me Please...

    package serialio;
    import java.io.BufferedReader;
    import java.io.BufferedWriter;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.OutputStreamWriter;
    import java.io.OutputStream;
    import java.util.Enumeration;
    import java.util.TooManyListenersException;
    import javax.comm.CommPortIdentifier;
    import javax.comm.PortInUseException;
    import javax.comm.SerialPort;
    import javax.comm.SerialPortEventListener;
    import javax.comm.SerialPortEvent;
    import javax.comm.UnsupportedCommOperationException;
    * @author SASH
    public class SimpleWrite
    implements Runnable, SerialPortEventListener {
    public String line = "";
    public String line1 = "";
    public String text1 = "";
    public String text2 = "";
    public void run() {
    static Enumeration portList;
    static CommPortIdentifier portId;
    // static String dest = "0517111930";
    static String messageString = "Hello";
    InputStream inputStream;
    static SerialPort serialPort;
    static OutputStream outputStream;
    public void serialEvent(SerialPortEvent event) {
    switch (event.getEventType()) {
    case SerialPortEvent.DATA_AVAILABLE: {
    BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));
    try {
    while ((line = reader.readLine()) != null) {
    arata(line);
    // System.out.println(line);
    } catch (IOException e) {
    System.err.println("Error while reading Port " + e);
    break;
    } //switch
    public int getWrite(SerialPort serial) {
    try {
    inputStream = serial.getInputStream();
    outputStream = serial.getOutputStream();
    try {
    serial.addEventListener(this);
    } catch (TooManyListenersException e) {
    System.out.println("Exception in Adding Listener" + e);
    serial.notifyOnDataAvailable(true);
    } catch (Exception ex) {
    System.out.println("Exception in getting InputStream" + ex);
    return 0;
    public static void main(String[] args) {
    portList = CommPortIdentifier.getPortIdentifiers();
    while (portList.hasMoreElements()) {
    portId = (CommPortIdentifier) portList.nextElement();
    if (portId.getPortType() == CommPortIdentifier.PORT_SERIAL) {
    if (portId.getName().equals("COM3")) {
    try {
    serialPort = (SerialPort) portId.open("SimpleWriteApp", 9600);
    SimpleWrite wr = new SimpleWrite();
    System.out.println(wr.getWrite(serialPort));
    } catch (PortInUseException e) {
    System.out.println("Port In Use " + e);
    try {
    outputStream = serialPort.getOutputStream();
    return;
    } catch (IOException e) {
    System.out.println("Error writing to output stream " + e);
    try {
    serialPort.setSerialPortParams(
    9600,
    SerialPort.DATABITS_8,
    SerialPort.STOPBITS_1,
    SerialPort.PARITY_NONE);
    } catch (UnsupportedCommOperationException e) {
    public String arata(String line) {
    System.out.println(line);
    if (line == null ? "250075C54CD9" == null : line.equals("250075C54CD9")) {
    System.out.println(text1);
    return "250075C54CD9";
    } else if (line == null ? "1D00451A3270" == null : line.equals("1D00451A3270")) {
    System.out.println(text2);
    return "1D00451A3270";
    return line;
    this code is working correct getting output at system output terminal but i want use further in as input for my jsp how to get this ?.......
    arata method is also working correct in class but it is not returnig value in jsp?
    plz give me way how to take string as input ...........

  • Communicating with Serial Port

    Hi,
    Hi I have an application that i have to communicate with serial port...
    Its working perfectly if am giving all the com settings as constants(pls hav a look @ codea).
    But i want to read the port number and baud reate from text file.When i changed the coding,in the serial
    setting i was not even able to find the port number and baud rate.it was displaying as buffer size.I think the way i connected the port number and baudrate to the clusture may be wrong(pls refer codeb).How do i fix this problem?
    Thanks in Advance....
    Solved!
    Go to Solution.
    Attachments:
    modemsetting.JPG ‏88 KB

    The problem I think is that you don't have a cluster tied to the center terminal of the bundler so most of the values don't have a name. Wire the cluster from above to the center terminal on the lower bundler. BTW, it doesn't matter what values are in the cluster you wire up because they will be overwritten.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • 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.

  • Material Movement using BAPI with serial number.

    Hello,
    I am currently doing material movement using BAPI with serial number management, however in some case it works fine and in some cases it given and error message E213(IO). Unable to find the reason, when simulated the same it works fine for 200 serial numbers and gives error when going above 200 serial number.  The confusion is some times it works fine for 3000 serial number as well.
    Tried finding the reasion on every possible site. No results.
    Thanks in advance for some solution.

    Hello,
    I am currently doing material movement using BAPI with serial number management, however in some case it works fine and in some cases it given and error message E213(IO). Unable to find the reason, when simulated the same it works fine for 200 serial numbers and gives error when going above 200 serial number.  The confusion is some times it works fine for 3000 serial number as well.
    Tried finding the reasion on every possible site. No results.
    Thanks in advance for some solution.

  • Getting error reading settings with service profile manager. Why and what can I do to solve problem?

    Getting "error reading settings" with the service profile manager in Lion server OS. Why and what can I do to solve problem?

    I have also had the 'Error reading settings' problem in Profile Manager, despite trying everything in the discussions and clean reinstalls (which work for a little while only).
    It seems that various different fixes work for some people but not others; and the underlying cause of the problem has not been resolved.
    There are now numerous threads on this problem (there are yet others with similar problems):
    https://discussions.apple.com/thread/3189397
    https://discussions.apple.com/thread/3195100
    https://discussions.apple.com/thread/3212015
    https://discussions.apple.com/thread/3208533
    https://discussions.apple.com/thread/3249062
    https://discussions.apple.com/thread/3199734
    https://discussions.apple.com/thread/3212304
    I have posted this in each to try and pull things together a bit.
    Does anyone know if Apple has acknowledged the issue and offered an official response?

  • Error 37 with serial port / no with hyperterminal

    I have added to my Pc a card with two serial port, I can access to them by hyperteminal or by labview but only at port 0 and 1 at the same time or 2 and 3, if not I have an error 37. What can I do?

    Error 37 means that LabVIEW cannot find the appropriate serial device. This indicates that one of the following conditions exists:
    LabVIEW cannot open the specified serial port;
    LabVIEW cannot find the file serpdrv.
    Make sure that the serial driver was installed before the board, and that the com ports appear normally in the control panel. If you cannot get it working, contact NI through either phone or email support. Since there are several potential causes, this is difficult to diagnose without more information. You can contact NI using the following webpage.
    http://sine.ni.com/apps/we/niae_asc.main
    Kim L.
    Applications Engineer
    National Instruments

  • Is it possible to communicate with two different devices using two seperate serial ports in the same labview program?

    The two bits of the program will talk to each instrument successfully if the other part of the program is not running. i do not need them to communicte with both serial ports at the exact same time, just within the same program, one after the other. i am using labview 6. any ideas of what i could be doing wrong?

    Hello,
    If you are using the Legacy serial VIs, you should really switch to the VISA VIs. Also make sure you are opening a session to each of the com ports at the beginning of the program and closing each at the end of the program. Problems can arise if your try to open a session to a port that already has a session open. Also you should update LabVIEW to 6.0.2
    If you are still having problems post the error code and error message you are getting.
    Ray K
    NI Applications Engineer

  • Problems with serial port synchronization.

    Hello to all!
    I have an oxygen analyser, the equipment has a serial port for communication, being based the communication on the AK communication protocol.
    In order to request to the equipment that responds with the measured value, the following command in hexadecimal is sent:  (02 78474B4FE20 03), obtaining like hexadecimal answer the following: (02 58474B4FE203220323038353030 03), in which it is included the measured value.
    I need to have the measurement from equipment in a PC, using the AK protocol and the serial port. For this, I have made a (vi) that it writes the read measure command in the serial port, wait a time (150ms) and read the port, this way everything works correctly, but there is a problem and it is that the communication is very slow due to the delay between the writing and the reading.
    If I eliminate the delay, the synchronization between the writing and the reading is lost, appearing readings of value 0. I think that is because the PC read the port and the analyser not yet has responded to the request from PC, and this happens in spite of using the options of synchronization of visa read and visa write vi's, (Do I/O synchronously).
    I would need to design a (vi) that hoped that the equipment had sent the last data, and then it sends the reading request again, being able this way to make the communication more fast and to eliminate the erroneous readings.
    I have attached two examples, first is (vi) that works well, but has the problem of being slow due to the delay, and the second analyzes the received message to know when this complete and then it writes another message of read to analyser, but it appears to me an error (ocurred AT sights read... Time out) after minutes.
    I would thank any aid that somebody could offer to me.
    Greetings and thanks!
    Attachments:
    Test_AK.zip ‏32 KB

    I don't have a serial port connected on this machine at the moment (they are becoming rare on laptops!) but try this code as a starting place. I notice in your second example you are basing the read on receiving a specific string, in the one I've made you can set the bytes at port compare to a number equivalent in length. I haven't tried it, as I mentioned before, so I appologize for any errors in my code.
    P.M.
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion
    Attachments:
    serial read.vi ‏67 KB

  • I need to use agilent34970A with serial cable;but i'm not able to build a routine.

    Hi, i'm learning labview and i'm not able to build a routine to communicate with my Agilent34970A with serial cable only and to use the data. Anyone can help me? thanks. lucky

    Are you using the driver from the LabVIEW Instrument Driver CD or that you downloaded from here? If you are, what problems are you having? Are there error codes generated and what are they? Have you verified that the serial cable is correct and the the comm parameters (baud rate, stop bits, etc.) are the same in the program and the instrument?

  • Error 42 at init serial port

    I built a simple application  using LabView 7.1  using serial ports and using VISA . I finish the project and built the installer. on the development PC I test the application (from the "start" menu,  and it run correctly. when I try to insall it at another PC (after  checking  that the appropirate port is valid) I have got an error message "Error 42 occured at Init Serial Port"what could be the reason for this problem
    Haim

    I am using 7.0 but have never used 7.1. But check out this setting. It may help
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)
    Attachments:
    sample.PNG ‏32 KB

  • Fastest Thinkpad with serial port

    Hello!
     what is the fastest thinkpad with dock station or port replication that still have the serial port that has been produced?
    Is it the X60 ?
    I have my faithful T30 but it is a little slow now...
    Ciao

    Welcome to the forum!
    Although the integrated serial port died with T30 and A31p, it's still available on dock for most newer ThinkPads:
    http://www-307.ibm.com/pc/support/site.wss/MIGR-61297.html
    Good luck.
    Cheers,
    George
    In daily use: R60F, R500F, T61, T410
    Collecting dust: T60
    Enjoying retirement: A31p, T42p,
    Non-ThinkPads: Panasonic CF-31 & CF-52, HP 8760W
    Starting Thursday, 08/14/2014 I'll be away from the forums until further notice. Please do NOT send private messages since I won't be able to read them. Thank you.

  • Is there a Labview Chroma6310 driver that works with serial port instead of GPIB?

    The driver that I have downloaded from NI site is based on GPIB, I need to run it via serial port. I don't have GPIB board. I am pretty new in NI world. How easily can I convert the GPIB driver to serial port (ASRL)? Has anybody already done this? Any help on this is highly appreciated.
    Best regards,
    Farsh

    I haven't looked at the driver and I'm not familiar with the instrument but the conversion should be pretty simple. If it uses VISA for the GPIB communication, the conversion is already done. VISA works with both GPIB and serial - just use the name of the serial port as the VISA reference name. This would be ASRL1 or Com1. If it's an older driver with the traditional GPIB calls, then replace every instance of GPIB Write and GPIB Read with VISA Write and VISA Read. You might also have to add some line terminator like CR/LF to every write. There are a lot of instrument drivers that are compatible with both serial and GPIB. The HP34970 is one that comes to mind. You might want to look at it to see how to do it yourself.

Maybe you are looking for

  • XLR microphone, do I need an audio interface?

    I have a Sennheiser ME66 microphone with a K6 modular power supply.  My computer is a Mac Pro.  Using a chain of cable adapters from Radio Shack, I was able to convert from the Sennheiser XLR output to a mini-mono plug and input the thing into the Ma

  • 10.5 update

    I updated last night after the update finished I received a few errors. The first one was error 7 (windows error 127) iTunes was not correctly installed please reinstall. Then iTunes.exe-Entry point not found. The procedure entry point kCMByteStreamN

  • Icons... suddenly some are different....

    I use Dreamweaver by Adobe.  I noticed recently that all my .htm icons have the Opera (Browser) icon assigned to them.  If I switch the view setting to "Icons" they go away, but I prefer the list view or Cover flow view.  Anyway to revert to the old

  • Issue in IT0591 update

    The BDC program we had prepared for updating IT0591 is not allowing more than 3 nomination per pernr whereas when I do this online 5 nominations are allowed. Request you to please look on this matter and give your valuable input

  • Core 2 Duo Swap?

    Hello, I have a Core Duo Macbook and would like to know if there is a way to upgrade to a core 2 duo? If so, how?