Ohaus

Hi 
I'm trying to run an Ohaus Discovery balance (DV215CD) with LabVIEW.
I have managed to get the balance to talk to Hyperterminal operating on windows XP via a serial to USB converter attached to the Ohaus provided RS232 cable.
I am running the program 'ohepvp Continuous Measurement.vi' from the downloaded 'ohepvp.llb'.  As the balance is a different model to the one the vi is designed for I have changed the ID query to 'No' on 'ohepvp Initialize.vi'.
The problem is that when I press 'run', the correct mass is shown, but if the mass is changed while the program is running, the vi does not register the change.  If the vi is then stopped and restarted, the new mass is shown, but if the mass is changed again the vi does not register the change again.
Does anybody have a solution or even something I should check so I can provide you with more information to solve this?  As it is working with Hyperterminal I am pretty sure this is a problem with the vi or a setting I need to change.
Thanks for any help you can provide.  I've provided settings below.
Ohaus Balance 
Baud = 9600; Parity = 8, N, 1;  Handshake = Xon/Xoff
Hyperterminal
Configure : Baud = 9600; Data Bits = 8; Parity = None; Stop Bits = 1; Flow Control = Xon/Xoff
ASCII setup : Send line ends with line feeds;  Echo typed characters locally.
COM3
LabVIEW 8.6.1
Baud Rate = 9600; Flow Control = Xon/Xoff   1; Parity = None     0; Data Bits = 8
COM3 

There's a couple of things you can try:
Have the "ohepvp special read" subVI open while you are running the "Continuous Measurement" VI running. The front panel of this subVI shows what it reads from the serial port. Does it show something or nothing?
Open and run each of the subVIs used the "Continuous Measurement" VI on their own:
For the "Initialize" VI set the front panel values and then run it.
For the "Select Mode" VI set the front panel values (select the appropriate VISA resource name and Mode) and run it. 
Do the same for the "Configure Units" VI.
Open the "Read Measurement" VI and run it. Change the weight and run the "Read Measurement" VI again. As long as the VISA session isn't closed you can keep doing this.
Run the "Continous Measurement" VI in highlight mode. This will help to determine if there's a timing issue.

Similar Messages

  • Problem reading weight from my Ohaus Pro scout balance. Model SP2001

    Good evening.
    I am trying to read a single measurement from a Ohaus Balance (model SP2001). The connection seems to be good, but when I send a print command : P\r, it always reads 0 grams, no matter what I put on the balance. Now the display on the balance shows the correct weight, its what is read on labview that is always Zero.
    Also, when I send the command for Mode: 0M\r ,  to get it in gram mode, the command needs to be sent in normal codes display in order for the VISA write not to bug, but when I send the print command: P\r, it only gives no error when it is in \ codes display, I dont get it.
    I have attached the code I'm using here, wich is pretty much inspired by the SP2001 driver that I found on NI hopefully someone knows how to work with this.
    Attachments:
    Ohaus_measure_test_2014_07_18.vi ‏36 KB

    Ok so I wrote \r on here but as you can see in the code, I actually send a string carriage return with the command when setting up the mode
    When I say to bug: it gives me and error stating that timeout expired.
    Nothing is wrong specifically wrong with the driver, it gives me the exact same problem, the code I'm using now is basically all there is in the driver put in one stacked sequence

  • Using Ohaus Ranger scale with NI 9870 (cRIO)

    Hello,
    I am using a NI cRIO-9074 data aquisition system with a NI 9870 4-Port, RS232 Serial Interface Module, and am programming with LabView 2012. I'm currently looking for a scale with an RS-232 output that I can plug into the NI 9870 to receive and store measurement data. I'd like to go with an Ohaus Ranger 7000 scale, model number R71MD3. However, looking at NI's list of instrumentation drivers, they do not have anything listed for this model, though they do have quite a few for other (seemingly older) Ohaus scales.
    Are drivers not needed for this scale? Or is there a standard RS-232 that can be used? I'd like to ensure that this setup will work before purchasing the scale.
    Thanks!

    Using the 9870 in a cRIO essentially just adds 4 more COM ports to the cRIO, which you can interface with using NI-VISA.  Check this KB for more details.  Most "instrument drivers" are just an abstraction layer or wrapper for the low-level VISA reads and writes being performed.  If an instrument driver does not already exist, you can implement a simple one yourself using VISA.
    In this situation, you'll simply need to look up the command/instruction set the device uses, and implement those using VISA reads and writes.  As long as the command set isn't too extensive, this is pretty simple and quick.
    So, this setup will definitely work, you'll just need to take the time to implement the VISA commands yourself.

  • Labview communicat​ion balance ohaus

    Bonjour,
    Je travaille sur labview 7.1 et je n'arrive pas à communiquer correctement avec ma balance (ohaus arc120).
    Pour comuniquer j'utilise un cable rs232 croisé que j'ai fabriqué à partir d'un cable droit et un adaptateur usb/rs232.
    Lorsque je récupère les données de la balance via le bouton print de la balance, tout marche, j'ai la bonne valeur.
    Mais lorsque je la commande avec le pc, je n'ai pas toujours de signal. Lorsque j'en ai un, la valeur que je recois est éronnée. le nombre d'octets lu n'est pas constant et il y à des erreurs de cadrage: il manque une partie de la valeur (ex: 2,3g au lieu de 2,83g) ou m'indique totalement autre chose ( caractères spéciaux, lettres...)
    De plus je ne recois aucun signal si dans mon VI je ne répète pas 7 fois l'instruction écrire dans une boucle. Pour la tare c'est pareil, je dois répété l'instruction 5 fois.
    Pour réussir à écrire puis à lire il faut que j'ouvre un session visas pour écrire, que je la ferme, puis que j'en ouvre une nouvelle pour lire. Sinon il n'écrit pas.
    J'ai aussi essayé de communiqué directement en rs232. je recois la bonne valeur en appyuant sur le bouton print, mais je n'arrive pas commander la balance.
    J'ai vérifié les paramètres de transmissions, ils sont correctes.
    Pouvez-vous m'aider ?
    Merci beaucoup
    Cordialement
    Solved!
    Go to Solution.
    Attachments:
    arc120.pdf ‏129 KB
    balance avec deux sessions visas.vi ‏129 KB
    capture d'écran.doc ‏79 KB

    Try this PIN out for RS232 cable :
    Below are the two cable configurations that will work with 9 pin and 25 pin serial ports. You will notice that pins 2 and 3 are not crossed in the 9 pin but are in the 25 pin. In any case pins 5 and 6 have to be shorted at the balance end of the cable. One cable type will work with both balances.
    Ohaus Part number - AS017-09 Used with AP, AS, C, CT, E, G, GT, I5, TP, TS, MB200, Adventurer, Explorer, Voyager, Navigator and Scout.
    Cable - balance to PC
    9 pin(F) to 9 pin(F)
    Balance pin -----to----- PC pin
    PIN 2 (TXD) -----to----- PIN 2 (RXD
    ) PIN 3 (RXD) -----to----- PIN 3 (TXD)
    PIN 7 (GND) -----to----- PIN 5 (GND)
    For balances other than Adventurer pins 5 & 6 must be shorted together at the balance and NOT connected to the computer. This is not required in the Adventurer balances.
    CLA 2014
    CCVID 2014

  • Connect my Ohaus Scout Pro Scale to Labview without using the Print continuous setting

    Hi there,
    I am connecting my Ohaus Scout Pro Scale (Model 6001) to Labview.
    My program can only read the data from the scale if I am in the print continuous mode or if I manually press the print button on the scale. But I only want to read measurements every 10 minutes and I don't want to press the button manually.
    Therefore I implemented the VISA Write function and I am sending the command P\n (in \-comand). According to the Ohaus manuel this should be the same as pressing pring. But it doesn't work!!!
    What am I doing wrong?
    Is there someone else out there who is using Ohaus Scales and is able to directly read data from the scale?
    Any help would be much appreciated!
    Solved!
    Go to Solution.
    Attachments:
    OHAUStoLABVIEW(1)_mod2.vi ‏54 KB
    ProgrammierManuelScales.pdf ‏187 KB

    yes - you are my hero!
    I am glad to say that this was the solution to my problem! The comunication works now just fine!
     Maybe next time I can contribute something more substantual to the forum .
    Thanks!

  • Weighing Scale integration with SAP ( Packing Station)

    Hi All,
        We need to have our Weighing Scales integrated with SAP to capture the READINGS for parcels / cartons / shipments automatically.
        I observe there is a provision for maintaining RFC connection , Scale Checkbox etc in SPRO--->Logistics Exec ---> Packing --->Set profile for packing  w.r.t  HUPAST  tcode ...
        Would you plz help me with some work-arounds ...???
    Regards
    Jamna

    Hi Folks,
        There is  XMI technology available that can be potentially leveraged for this type of requirements in integrating any electronic gadgets talking to SAP ....
    I think SAP XMI will be vry useful for this.
    XMI is having ability to capture real time data from other system and update accordingly.
    It has have connectors which will capture values from other system and pull in SAP.
    How to Integrage Weigh Scale with OPC server via xMII 12.0
    Hello Experts,
    I am new to xMII. We want to integrate shop floor weigh scale into SAP PI Sheet to read the value from weight scale into PI Sheet. We have the infrastructure Ohaus weigh scale, xMII 12.0, SAP ERP 4.70, Kepware OPC Server, installed xMII framework for UDS and UDS 4.0. We are able to integrate the OPC Data tags into SAP PI Sheet successfully. But we need help to integrate weight scale with OPC server to read the scale value into OPC data tag.
    Can any one give the steps to integrate weight scale with OPC server?
    with best regards
    K. Mohan Reddy
    I know someone who have developed few applications on integrating weighing machines with R/3.
    By: | 04 Dec 2008
    i am working as a ABAPer in my company and developed DLL in VB6 on integrating weighing machines with R/3.
    implemented and working in more than 10 sites.
    By: | 12 Dec 2008
    ERP-Scale from Pocket Programs provides a standardized u201Cplug & playu201D interface for weighing equipment. It is SAP Certified and can be used for integration of weigh-scales with the SAP Packing Station transaction (HUPAST) or with custom ABAP developments. Major international companies are already gaining benefit by implementing ERP-Scale in their plants worldwide.
    By: | 04 Feb 2009
    Re: Custom development for UDS
    What have to say folks about the possibilities with the above ? But shouldnt SAP have some standard FM / RFC / BAPI owefully facilitating the same???
    But the available FM  HU_GET_RFC_DATA  doesnt have any documentations attached to it ?
    Regards
    Jamna

  • Scale driver through USB

    We are going to use a Mettler Toledo MS303S USB scale.  Ohaus was recently bought by Mettler Toledo and I think that the product that we are using is a re-branded Ohaus scale.  I am looking for an available driver. Any help?

    There was a recent discussion on using a USB scale with LabVIEW. You should read that over to see if any of it applies to your device.
    Otherwise, you're going to need to find out what type of USB driver is being used. Do they have a custom USB driver? Are they using HID?

Maybe you are looking for

  • Error while dropping a table

    Hi All, i got an error while dropping a table which is ORA-00600: internal error code, arguments: [kghstack_free1], [kntgmvm: collst], [], [], [], [], [], [], [], [], [], [] i know learnt that -600 error is related to dba. now how to proceed. thanks

  • Photo will not load

    I received a photo that will not load. It keeps spinning and I can't stop it. How can I delete it/stop it? I have a Samsung Galaxy 4

  • Steps to  add  new fields  PYORD  in  selection fields O7F1

    Hi I  am in  O7F1  screen. But  I  do not see any  create  or  add  options.  How  can  I  add the  field   PYORD to it. Thanks kamala

  • Messages are getitng processed

    Hi I can see that messages are getitng processed in Adapter Monitoring and I getitng following message: Sender Adapter v2126 for Party '', Service 'LegacySender_BS': Configured at 2005-10-31 09:12:50 GMT History: - 2005-11-01 02:49:50 GMT: Polling in

  • Selective deletion of request from ODS which is activated and updated

    Hi all, I would like to delete the request from ODS which is activated and updated into data targets, i.e if i have three resquests 1,2,3 which are activated  and loaded into cube..now i would like to delete the between (2) request from ods, it says