Read data of sartorius scales with RS232 interface

Dear users,
I have to use a Sartorius scales with a RS232 interface.
In the attachment you see the program with which I try to read the data of this device – so far not successfully.
Therefore I have several questions:
Could somebody tell me if the structure of my program is correct? I think so, because I saw that other people created similar code. But I am not totally sure about this.
To read data of the scales, I have to send a print control to the device. In the manual of the device is written that the print command is as in the attached picture. They mention that ESC = Escape, CR = Carriage return, LF = Line feed.
So, how do I write this command correctly? Do I have to write in a string ESCPCRLF, or ESC P CR LR or ESC,P,CR,LF, or…? I am really totally lost here because I have never worked with such an interface so far.
I do not have a RS232 interface on my computer, so I use an USB to serial adapter. Do I have to adapt the baud rate etc. of my adapter in the windows device manager to the values of my scales?
When I run my program, the number of bytes at serial port is always 0. Could this be that I use next to my USB to serial adapter another adaptor to connect the 9-pin USB connector to the 25-pin connection of my scales - perhaps a connection is wrong?
I really would appreciate your help much!!
Attachments:
ScalesLV2010.vi ‏18 KB
ScalesLV2013.vi ‏21 KB
PrintCommand.png ‏5 KB

partial wrote:
Thank you for your reply.
Searching for drivers was one of the first steps I did. But unfortunately my device is so old (about 25 years) that there is no driver. I also tried to work with the programs of the LabVIEW LLB which are available from your link, but there I also get the 1073807339 error code.
Checking the cabling is for sure a good idea. So far it seems to be fine.
Thank you for your hint that the use of delays and the Bytes at Serial Port is incorrect.
But why is Bytes at Port then mentioned in this NI-document:
http://digital.ni.com/public.nsf/allkb/874B379E24C0A0D686256FCF007A6EA0
There they also mention the delay which should be used for older instruments. Since my device is about 25 years old, I thought that the use of wait is a good idea.
But perhaps you are right. So, could you please correct my program then? As I mentioned, I have never worked so far with the RS232 interface, so I really would be glad if somebody corrects my code.
Unfortunately, what NI doesn't tell you is that "Bytes at Serial Port" is a last resort, to be used only if you have no other way to figure out if a device has completed sending data.  Since you have a marker - the line feed termination character - I would configure the VISA serial port to use it, and then discard the white space (the CR) at the end.  That way you read exactly the data and don't have to insert a wait to make sure everything was read.
IMHO - If you have to insert a "wait" in between commands, you probably don't fully understand how to communicate with the equipment.  Of course, I have worked with power supplies that are so "dumb" that the programming guide says that you have to wait x milliseconds for a command to process! 
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.

Similar Messages

  • Accessing Newport ESP 300 Controller with RS232 Interface

    I am trying to access Newport ESP 300 Controller with RS232 interface. My goal is to read Newports collected data with LabView using RS232 Interface. Are there Vi's ore any support available? thank you.

    Hi
    we have built some routines for this machine
    LabVIEW 6.1
    are you interested?
    greetings from the Netherlands

  • Reading Data from a Table With an Expert

    Hi all - I'm trying to write an Expert in OWB that would read data from a table and create a new table based on that information. I have the table creation part down, but how can I read data from a table with an Expert? From what I've read, Experts only deal with metadata, and there is no mechanism in Experts to actually read data in the tables. Does OraTcl work in Experts? Has anyone ever came across this problem, and if so, how did you solve it? Thanks in advance for your time! - Don

    Hi Don
    Can also use Java and JDBC from within Tcl, see the routines in this file below, take modify or whatever;
    http://blogs.oracle.com/warehousebuilder/ombora.tcl
    source <dir>\ombora.tcl
    set g_user scott
    set g_upwd zzzzzz
    set g_hostname localhost
    set g_port 1521
    set g_srvname ora111
    oraconnect $g_user $g_upwd $g_hostname:$g_port:$g_srvname
    oraselect "select * from emp" ""
    As well as dumping the results to stdout (you probably want to comment that part out and change any other part you don't like), g_res is a ResultSet object you can use to do whatever.
    Cheers
    David

  • Problem retriving data from OSA MS9710 with GPIB interface

    Hi all,
    I'm trying to read data from Anritsu OSA MS9710 using a GPIB interface and a terminal software in computer. However, I am not having sucess with it. Anyone know how can I do this? or another way to read this data without needing a floopy disk? 
    Thank a lot!

    Anritsu has a LabVIEW driver. I don't know what kind of terminal software you are talking about. Most terminal emulators are only useful for RS-232. You can use MAX (Measurement & Automation Explorer) to communicate. Nor do I understand how a floppy disk could help.

  • Read Data from "virtual" Cube with different ConsUnit Hier. Version

    Dear all,
    I got a odd request.
    I need to load data from the virutal Reporting-Bapi Cube for a certain Data Version.
    This Version has been attached to a new consUnit Hierachy a few weeks ago.
    Now we get a request to read data in the past for units which are not present in the current hierarchy anymore.
    I know that this is a general issue... but does anyone got a workaround for this?
    Thanks in advance,
    regards
    Oliver

    Dear All,
    Restamtent functionality did not help at this issue.
    What we did a Copy of the Version and attached the "old" hierachy.
    This was the only solution.
    Regards
    Oliver

  • Reading data from BSEG table with Non-key fields in where clause

    Hi All,
        I have to read data from BSEG table based on WBS element field (PROJK). As I'm not passing key fields to WHERE clause system couldnt run the select statement. Since BSEG is a cluster table I cant even create secondary index on PROJK field.
       Could you please tell me, how to improve its performance.
    Regards
    Jaker.

    SELECT bukrs
                 belnr
                 gjahr
                 shkzg
                 dmbtr
                 hkont
                 lifnr
                 matnr
                 werks
                 menge
                 meins
                 ebeln
            FROM bseg
            INTO TABLE it_bseg
            PACKAGE SIZE 10
            FOR ALL ENTRIES IN it_final
            WHERE  bukrs EQ it_final-bukrs
               AND belnr EQ it_final-belnr
               AND gjahr EQ it_final-gjahr
               AND buzei EQ it_final-buzei
               AND hkont EQ it_final-hkont
               AND werks IN s_werks.
    By using package and fetch from BSEG table. gathering all other information to a final internal table.This will reduce the hit to database.And also try to put that data in hashed internal table which is it_bseg....then definetly improve the performance.
    <REMOVED BY MODERATOR>
    Dara.
    Edited by: Alvaro Tejada Galindo on Apr 21, 2008 12:47 PM

  • Work with RS232 interface

    Hi all!
    I want to sent commands on specific RS232 devices (on local machine, NOT WITH SERVER devices).
    While searching , find some discussion about it, here says - you can communicate it with Cirrus for example. So, im never worked with Cirrus.
    Please tell me, how I can communicate with local machine COM ports .
    So if its possible, show me instructions for start work with Cirrus ( inital knowledge)
    Thank.

    If it has an RS-232 interface, you should be able to do it..
    It may simply send an id-tag when it is in proximity..  The proximity simply sends enery to a coil (transformer) which activates the chip to transmit a small RF signal containing the badge id. 

  • RS232 programmin​g for Sartorius scales using LabView

    Has anyone written a any code to control and read in data for a Sartorius scale with RS232

    Hi,
    Unfortunately, I was unable to locate a driver for your instrument at www.ni.com/idnet or at the Sartorius website. I would like you to submit a request for this driver at: http://zone.ni.com/idnet97.nsf/instrumentdriverreq​uest/ and with the instrument manufacturer. We develop drivers based on demand and popularity so the more requests we have for it, the greater the possibility that we will develop one.
    If you would like to try developing your own instrument driver (or modify the existing one), we have documentation, model instrument drivers, and driver templates to help at :
    http://www.ni.com/devzone/idnet/development.htm
    We also have a syndicate of third party vendors that specialize in National Instruments' products and services. Some of the vendors specialize in driver development. I would suggest contacting one of the Alliance members at:
    http://www.ni.com/alliance
    An instrument driver is a collection of functions that implement the commands necessary to perform the instrument�s operations. In short, someone read the instrument user manual and implemented some of the functionality in a program for the end user. Instrument drivers are not necessary to use your instrument. They are merely time savers to help you develop your project so you do not need to study the manual before writing a program.
    There are example VI's in LV on Instrument Connectivity. If you go to the Help menu >> Examples.. >> I/O, you will see a couple and Examples.. >> Fundamentals for File and String manipulation. I would suggest tweaking them to suit your application. Also the specific command that your instrument responds to can be found from it's manual.
    Some useful resources for your application are
    ni.com > NI Developer Zone > Development Library > Instrument Connectivity
    http://search.ni.com/?col=alldocs&layout=TechResou​rces&ql=a , to search examples and knowledge bases
    Hope this helps!
    Best Regards,
    Aaron K.
    Application Engineer
    National Instruments

  • Having problem with adding and reading dates to/from database !!!

    Hi
    I am new in J2ME
    I am trying to code a simple software.
    My problem is with dates.
    I have a datefield on my menu and the user will choose the date from here. By default, datefield shows todays date. But when I try to write that date to database using rms, date value transforms to java.util.Date@acfdb0fe.
    As I read from tutorials this is common problem of date class, so I tried to use calendar class.
    But with Calendar class I cannot let user to choose date from screen like DateField. datefield dowsn't work with calendar.
    later, I will use that date for sorting records
    Summary : I need a sample code that read date from screen (preferably with datefield), write it to recordstore. and then read it from recordstore asnd write to screen.
    I searching internet for a sample code through days.
    Please help me
    Thanks

    Hi,
    The best i would suggest is instead of storing the date as 19 Jan 2004 or something like this better store the date in milliseconds.
    DateField df = new DateField();
    Date d = df.getDate();
    long ms = d.getTime();
    store the value of ms in RMS. This is the commonly used way to store date in RMS for j2me.
    You can get back date using
    Date d = new Date(ms);
    DateField df = new DateField();
    df.setDate(d);
    Prabhu.

  • Unable to read data from Analog Devices 6b11 module - error code 1240

    Hi everyone,
    I'm trying to read data from a thermocouple with an AD 6B11 module in an AD 6BP16-1 backplane using RS232 serial. I've been following this guide:
    http://digital.ni.com/public.nsf/allkb/8C77E5E52B4A27968625611600559421
    Everything seems to work out well until step 13, where I call the "AD6B Input Module - Read Data.VI". I get an error code 1240 stating something like "invalid parameter or unable to read instrument".
    Has anyone got any experience with this error or suggestions to fixing it?
    Thanks in advance!

    That user guide is 20+ years old. The serial functions from that day used 0 for com 1, 1 for com 2, etc. Make sure you have the correct one selected. Please provide the exact error message instead of 'something like'.

  • What all sofware is required to develop a userinterface.vi to read data from a data logger and save in a file

    hi,
    i am working on creating a GUI.vi to read data from the datalogger and the same should be used to set the date ,time,etc.i am thinking of using VISA to read data through serial port(COM1),that interface is available.but when i tried to read data from the logger i am getting timeout error.what should i do ?i am using the example given with labview 7.0 .can any one suggest me what all things i need to do if i want to read datalogger to a file.Is there any one who workrd on this.please reply me as early as possible,
    bye
    vbkraju

    You're welcome--I'm happy to help.
    The LabVIEW <-> Serial.vi is a good example that allows for writing commands to an instrument and reading back from it using a VISA Session. One of the inputs on this VI is the Resource Name. You need to ensure that the name of your serial port is in this drop down menu, so that the program is sending and receiving data from the correct place.
    The VI is setup so that you can send a command to the external device, and then receive data back. I am not sure about the Spectrum 4000, but most devices have commands that they receive to tell the device which data to send back over the serial port. The VI has a default string to write of *IDN?, which is a common command that tells the instrument to return an ident
    ity string. The fact that the program is timing out for you indicates that the program never received any data from the device. Either the device is not configured to automatically send data, or the correct command is not being sent to the device. Your datalogger manual may be able to help you determine what serial commands it needs to receive to send the data out you expect.
    I hope this will get you further along in your application.
    John M

  • How should i modify the hp54600a instrument driver for GPIB so i can use it for RS232 interface ?

    I try to modify the hp54600a instrument driver for GPIB, so i can use it with RS232. But somehow it didnt work. When i try to run the initilize it, the prgoram show VISA read error (time is up before the process is finish). How should I modify the VI so I can use it with RS232 interface ?

    First, check the instrument's user manual to see if the GPIB and serial command sets are the same. Also check to see what EOS(End of String) characters the instrument requires. Then, do a loopback test to test communication in LabVIEW.
    Search Results: Serial Loopback Test
    Ray K
    NI Applications EngineerMessage Edited by Molly K on 02-18-2005 10:57 PM

  • How do I read data from a DMM or DC Power Supply at a specified rate?

    I have a PXI system with 4071 DMMs and 4110 DC Power Supplies. I want to be able to measure the power consumption of my DUT as it performs various operations. This is what my process flow looks like:
    1. Configure DMM and Power Supply 
    2. Wait for DUT to go into a certain mode
    3. Start  Acquiring data from DMM and PS.
    4. Wait for DUT to get out of this mode
    5. Stop Acquiring data from DMM and PS.
    Since the duration of step #4 is uncertain, I cannot tell the units to collect a predetermined number of samples and give it back to me. Instead I have to take readings as long as it's required. 
    I'm attaching screenshots of my setup and read process. The reading is done inside a timed loop which is running at 1kHz.
    The problem is that using niDMM Read Multi-Point or niDCPower Measure Multiple takes 5-9ms before I get a reading, so I'm not really getting 1ms resolution in my data. I'm sure there are other folks who have had the need to read data from these devices with better time-resolution, so if anyone can point me in the correct direction, it would be great. I'm pretty sure I'm not doing the correct thing here.
    Attachments:
    1-Setup.PNG ‏12 KB
    2-Read.PNG ‏9 KB

    What is really confusing to me is why you are even using the multi-point function when you set the sample count to 1. If you want multiple points, request multiple samples and let the DMM acquire them at a rate you specify. If you want a single sample, use the normal Read. You also need to pay attention to how fast the DMM can acquire. If you want the fastest sample rates, you might be a lot better off with a DAQ board.

  • Problem while reading data  from USB with JSR80

    Hi
    Iam using Fedora 9 with 32 bit.
    Iam using JSR80 api to read the data from USB devices.
    I successfully set-up the code as per given on JSR80 site on my eclipsce ide.
    below is my code which iam using to read data from usb
    import com.ibm.jusb.*;
    import java.util.List;
    import javax.usb.*;
    import java.util.List;
    public class USBReader {
    public static  UsbInterface interf = null;
         public static void main(String[] args) {
              try
            {// Access the system USB services, and access to the root
             // hub. Then traverse through the root hub.
               System.out.println("Application started");
             UsbServices services = UsbHostManager.getUsbServices();
             UsbHub rootHub = services.getRootUsbHub();
             traverse(rootHub);
             testIO(rootHub);
            } catch (Exception e) {
                 System.out.println("The Exception occured"+e.getMessage());
          public static void traverse(UsbDevice device){
               System.out.println("Iam in traverse ");
               if (device.isUsbHub()){  
                    // This is a USB Hub, traverse through the hub.
                    System.out.println("The device is hub");
                    List attachedDevices = ((UsbHub) device).getAttachedUsbDevices();
                    System.out.println("The attached devices size:"+attachedDevices.size());
                    for (int i=0; i<attachedDevices.size(); i++){
                         traverse((UsbDevice) attachedDevices.get(i));
                    if(attachedDevices !=null){
                         for(int j=0;j<attachedDevices.size();j++){
                              System.out.println("The device is"+attachedDevices.get(j));
           else{
              // This is a USB function, not a hub.
              // Do something.
                System.out.println("The device is not hub");
          public static void testIO(UsbDevice device) throws UsbClaimException, UsbNotActiveException, UsbDisconnectedException, UsbException{
               System.out.println("Iam in testIO");
              try{
                 // Access to the active configuration of the USB device, obtain
                 // all the interfaces available in that configuration.
                 UsbConfiguration config = device.getActiveUsbConfiguration();
                 List totalInterfaces = config.getUsbInterfaces();
                 System.out.println("The Total interfaces: "+totalInterfaces.size());
                 // Traverse through all the interfaces, and access the endpoints
                 // available to that interface for I/O.
                 for (int i=0; i<totalInterfaces.size(); i++){
                    interf = (UsbInterface) totalInterfaces.get(i);
                    System.out.println("The interfaces are "+totalInterfaces.get(i));
                    String strinf=interf.getInterfaceString();
                    System.out.println("Claimed Status: "+interf.isClaimed());
                    System.out.println("Active status : "+interf.isActive());
                    System.out.println("Settings :"+interf.getNumSettings());
                    //interf.release();
                    interf.claim();
                    List totalEndpoints = interf.getUsbEndpoints();
                    for (int j=0; j<totalEndpoints.size(); j++){
                       // Access the particular endpoint, determine the direction
                       // of its data flow, and type of data transfer, and open the
                       // data pipe for I/O.
                       UsbEndpoint ep = (UsbEndpoint) totalEndpoints.get(i);
                       int direction = ep.getDirection();
                       int type = ep.getType();
                       UsbPipe pipe = ep.getUsbPipe();
                       pipe.open();
                       // Perform I/O through the USB pipe here.
                       pipe.close();
                    interf.release();
              } catch (Exception e) {
                   System.out.println("Exception in TestIO"+e.getMessage());
                   e.printStackTrace();
    }When i execute the above code i get the following exception
    Exception in TestIOCannot claim an interface on a virtual root hub.
    javax.usb.UsbException: Cannot claim an interface on a virtual root hub.
         at com.ibm.jusb.VirtualRootUsbHubImp$VirtualRootUsbInterfaceOsImp.claim(VirtualRootUsbHubImp.java:143)
         at com.ibm.jusb.os.DefaultUsbInterfaceOsImp.claim(DefaultUsbInterfaceOsImp.java:54)
         at com.ibm.jusb.UsbInterfaceImp.claim(UsbInterfaceImp.java:109)
         at com.ibm.jusb.UsbInterfaceImp.claim(UsbInterfaceImp.java:83)
         at USBReader.testIO(USBReader.java:60)
         at USBReader.main(USBReader.java:15)iam not getting the clue for it .

    Cannot claim an interface on a virtual root hubSo don't do that? I have no idea how to tell, but clearly you need to test a few more attributes before you claim. Or else just log the claim error and continue with the next interface.

  • Using fieldpoint with scientific linux and USB-RS232 interface

    I am using a desktop PC with SLC5 and an USB-RS232 interface. I need to program a fieldpoint FP1000 module within labView. Visaconf is correctly seeing the interfaces (4 ports: /dev/ttyUSB0 .. 3, mapped as ASRLx::INSTR, with x = 1..4), but when I try to use "Advanced Serial Write and Read.vi", I always get timeout. If I try "Optomux Send General Command.vi", it looks broken (the parameter "VISA resource name" is connected to the "port number" input of "FPOptoHandler.vi" and the type is not matched).
    What am I doing wrong ? Am I missing some piece ?
    Thanks a lot in advance,
    Roberto Ferrari

    The people over in the GarageBand forums are amazing at diagnosing and fixing these sorts of things. I recommend that you give it a try posting the question over there:
    http://discussions.apple.com/forum.jspa?forumID=1308
    Good luck!

Maybe you are looking for

  • My new Mac Mini

    I just got my new Mac Mini the other day and my first observation is that the fan is dead quiet and the unit doesn't get even hot. Fantastic!! I've copied my applications and files from my Mac Pro desktop and I'm ready to connect it to my projector a

  • Payment advise by email

    Hi, We have activated sending the payment advise by email through BTE 2040. The system is properly sending the email to the intended recepient after we run F110. This is fine. Now our client want a copy of this mail to be available in the SAP OUTBOX

  • Missing Map Icon

    I want to get directions on my new Blackberry Curve 8900, but for some reason there is no map icon for me to click on (as pictured in the tutorial). Do I have to download this? Shouldn't it have come on it? How do I get it? Many, many thanks for any

  • I have problems with java

    Hi, it's my first post I installed java, I followed the instructions in web page oracle Oracle SQL Developer for Linux and Unix To install and run: - Ensure you have a JDK 1.5 installed, if not, download here (click 'Download JDK 5.0 Update 6') - Dow

  • Help installing Flash Player 9

    I follow the recomendations on the flash player support but I can install it. I only have Safari. Any advice? Thank you in advance.