Scale precision - LabVIEW 8.5

I seem to be having a problem related to keeping a scale precision to 0 digits of precision.  I have even specified advanced formatting using format string of %d and it does not work.  This problem seems to be related to the issue raised here:
http://forums.ni.com/ni/board/message?board.id=170​&message.id=206365&query.id=45575#M206365
Specifically, the digits of precision changes from 0 to 1 on an intensity graph when I rewrite to a local variable of the intensity graph.
Anybody have a workaround?
Thanks,
Don

Hello Don,
As the R&D department stated, a good option is to use the %d in the advanced editing mode. In the VI, you can also write the format string to a property node, and programmatically set digits to 0. The R&D department are revising this behavior at the moment.
Regards,
Juan Galindo
Juan Galindo
Applications Engineer
National Instruments

Similar Messages

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

  • 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

  • Creating bridge scale in labview -No calibration certificate with pressure sensor

    Hello everyone,
    I watched a Laview video online on how to measure pressure transducer  and applied the steps to my laboratory work ( https://www.youtube.com/watch?v=spTHTfjVlo8 ) but I couldn't go further when  I got to the section of creating a bridge scale for the pressure sensor model I bought from Measurement Specialties   (EPX-N02-1B-/Z2/L1M/25M) because the calibration certificate did not come with the device.
    I proceeded to run the test but the pressure value I got was way beyond the capacity of the device (1 bar).
    My question is; is there a way to sensibly adjust the values of the physical and electrical units without having the calibration certificate of the device?
    Thanks in advance for your response.

    Hi Wapz,
    My name is Mitchell Goon, from National Instruments Technical Support.
    You will be able to download a detailed calibration certificate for your device from the NI website. You can refer to the link below for more information on how to obtain the Calibration Certificate:
    http://digital.ni.com/public.nsf/allkb/7695C93D283BC1A086256B1800631DCF?OpenDocument
    With regards to your query, you will need to have external signal conditioning before acquiring any data from the pressure transducer. These may include:
    Bridge completion
    Excitation
    Remote sensing
    Amplification
    Filtering
    Offset
    Shunt Calibration
    Connecting the pressure transducer directly to the DAQ device may yield unexpected results. You may wish to refer to the following links if you need more information of acquiring pressure with a DAQ device:
    http://www.ni.com/white-paper/3816/en/
    http://www.ni.com/white-paper/3639/en/#toc4
    Additionally you may wish to refer to this tutorial on how to setup your DAQ device for pressure measurements:
    http://www.ni.com/tutorial/7138/en/
    I hope that this information will be useful for you. If you require any further assistance, please do not hesitate to contact us and we would be more than happy to assist you.
    Kind Regards,
    Mitchell Goon
    National Instruments
    Applications Engineering
    www.ni.com/support

  • Numeric scale and precision

    Does anyone know if Oracle has any plans to make the scale and precision mandantory on numeric fields?
    My group has built an ODS of Oracle Financials data. The source has fields defined as numeric, but in our ODS we choose to have them defined as numeric(30,8). One of the table loads abended last night and I am thinking of changing those fields to numeric to avoid future abends, but I want to make sure that down the line I won't be changing them back....
    Thanks,
    Ann

    I can't imagine Oracle would break the piles of existing code that declares plain NUMBER columns. I doubt you're going to find anything official from Oracle that it plans to continue allowing you to omit scale and precision for the same reason that you won't find anything saying that it plans to continue supporting BEFORE INSERT triggers.
    If, for some reason, Oracle started requiring scale & precision, they'd give you a number of years to make the change. Heck, they started saying "LONGs are going away" when 8.1.5 came out but still supports them for legacy apps in 10.1.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • How can I customize the scale of my waveform graph to suit my waveform?

    I am trying to display a sinusoidal waveform on a waverform graph. I want to make sure that the graph displays only 5 cycles of the sine wave and thus changes the x-axis scale accordingly. Hence this would mean that me plot remains the same no matter what the frequency of sine wave I input, only the scale changes. How can I do this? Also once this is done, is there any way in which I can manually change the scale while labview is running to change to plot?

    Here is an example that changes the scale of a graph. I think it is what you are looking for. Post back if it is not.
    Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
    DISTek Integration, Inc. - NI Alliance Member
    mailto:[email protected]
    Attachments:
    Update_graph_scale.vi ‏40 KB

  • MATLAB pcolor and LABVIEW Intensity Graph

    Hello all
    I have a data matrix which i want to plot using intensity graph of LABVIEW. My problem is that when i plot this matrix using MATLAB pcolor along with "shading interp" command, i got a very fine and smooth coloring graph of this matrix, however, using LABVIEW Intensity graph along with getcolor vi, i was not able to get a smooth coloring graph comparable to MATLAB pcolor. I have tried many setting but results were not satisfactory
    Is this due to a limitation of LABVIEW intensity graph or i am missing something? Kindly help me
    Best Regards
    Asim

    Thanks for providing that Asim, unfortunately the VI you provided is unusable as-is.  There is a subVI missing, and while not critical, it's difficult to tell how you're setting up the intensity graph without that VI.  Additionally, it doesn't appear that there is any graph data included in the VI you provided and a third-party software license would be required to use this VI.  Could you upload the data you're handling in a format that works without any external tools?
    As for thoughts on the differences in the plots; they are largely similar in appearance, although it does appear that you're using a different color scale in LabVIEW- the majority of your scale is in the blue-green range, rather than continuing linearly through yellow, orange, and red. You're going to lose a lot of visual resolution in the ranges you're highlighting due to this. The plot you're trying to achieve also appears to be interpolated or blurred around the edges of bins, are you actually plotting data between integers on the x-axis, or is this an artefact introduced by the software?
    Regards,
    Tom L.

  • Uniform scale problem

    Hi,
    I have some problem with scaling in Adobe Illustrator CS4.
    I will explain it with an example.
    Imagine that You have shape which looks like a key - bigger circle and smaller long rectangle. Horizontal composition. How to scale it - uniformly of course - to achieve certain height of the rectangle part?
    In previous CS3 it was able by:
    creating 2 guides (with offset of certain distance),
    then moving rectangle anchor (eg. top one) to one of them,
    next Scale Tool with reference point on that guide
    and finally draging opposite anchor/path - with little "uniform" text near anchor - to second guide.
    Now (CS4) uniform works only with 45 degrees dragging (and Shift-key pressed), so I can't do scale precisely.
    The same thing is a problem with logo containing graphic and text. How to scale it to achieve certain height of text?
    Last example - text "Max" with outlined paths. How to scale it to achieve certain height of "x" letter?
    I would be glad for help.
    Thanks.

    Thanks for another guides.
    First - I don't want Illy to be CAD. I use AutoCAD for architecture and Illustrator for graphic design and for making CAD drawings look better. I'm talking about nice, productive and precise features.
    Back to topic:
    I was talking about real accuracy. Value of 23.711 isn't store in Illustrator like this. It can be 23.71137287328... Even when You see 72.5 it can be 72.5002234223... Or 60 can be 59.999626327...
    Try scaling 500.020 to 1% - it will be 5 (5.000?). Then try scaling x100 - will it be 500.000 or 500.020.
    I've also noticed that sometimes Illy makes .999 (or .001) fraction in "well-formed" shapes.
    In AutoCAD if I want to scale sth, I simply select it and via SCALE command I specify reference length and then the new length. Everything is done by specyfying values on real drawing - not by typing their displayed values (they depend on chosen display precision).
    In CS3 and in my described procedure calculations made by Illy are based on original dimensions - not displayed (.000). It was satisfying and analogous to CAD process or rather vector process.
    I'm not going to compare AutoCAD and Illustrator - I have to use them both .
    I don't think that option to make it accurate is the feature of CAD applications.
    I'm still looking for answer how to make described transformation easy and accurate.
    Described methods are not easy (as it can be) and accurate (as I want to be). But I'm very grateful for help.

  • Hid interface to Pelouse scale

    I've got a client who would like to read weigts from a Pelouze USB scale into LabVIEW.  The scale comes with a driver that is based on the HID interface.  There are several threads on the forums about talking to USB devices using USB RAW through VISA and on talking to HID devices, but I couldn't find any thread that claimed that the HID idea had been done successfully from LabVIEW.
    Although it appears that one can disassociate the device from the HID driver and access it through USB RAW, we have decided not to go that route.  (There are too many steps required to set up the scale in this manner.  It wouldn't be appropriate for the eventual customer.)  So calling HID.dll seems to be the only option.  However, my reading of the threads seems to indicate that this is pretty complicated.  Even if we understood the hid.dll interface, we still don't have any specs on how the scale uses the hid interface.
    Has anyone succeeded in talking to a Pelouze scale from LabVIEW?  Or any of the other numerous USB scales that use an HID interface?
    Thanks,
       DaveT
    David Thomson Original Code Consulting
    www.originalcode.com
    National Instruments Alliance Program Member
    Certified LabVIEW Architect
    There are 10 kinds of people: those who understand binary, and those who don't.

    Dave Thomson wrote:
    I've got a client who would like to read weigts from a Pelouze USB scale into LabVIEW.  The scale comes with a driver that is based on the HID interface.  There are several threads on the forums about talking to USB devices using USB RAW through VISA and on talking to HID devices, but I couldn't find any thread that claimed that the HID idea had been done successfully from LabVIEW.
    Although it appears that one can disassociate the device from the HID driver and access it through USB RAW, we have decided not to go that route.  (There are too many steps required to set up the scale in this manner.  It wouldn't be appropriate for the eventual customer.)  So calling HID.dll seems to be the only option.  However, my reading of the threads seems to indicate that this is pretty complicated.  Even if we understood the hid.dll interface, we still don't have any specs on how the scale uses the hid interface.
    Has anyone succeeded in talking to a Pelouze scale from LabVIEW?  Or any of the other numerous USB scales that use an HID interface?
    Thanks,
       DaveT
    What do you mean when you say the scale comes with a driver that is based on the HID interface. Is that a DLL? Why would you then want to access HID.DLL instead of this specific driver DLL?
    HID.DLL is the generic HID Windows API to all HID devices (that are not captured by the Windows kernel for user events, such as the mice and keyboards). So your scale implements a HID USB class and Windows recognizes that and makes it available as such through HID.DLL. However accessing a HID device through HID.DLL is still pretty low level as you simply get a data stream and need to decode and encode the device specific information from and to that stream. Not to speak of the various hoops you have to jump through to localize and open the device through setupAPI.dll and HID.dll, before you can talk to it. Another problem is that the data stream protocol of proprietary HID devices is seldom documented.
    So if your scale comes with a DLL driver to access it, go with that driver. Of course you will need some documentation of the API of that driver and then using the Call Library Node to call into it. Going the direct HID path is really not a good solution unless you know the HID data stream protocol of the device AND you have no other way to do it (for instance if you need to interface to your own HID device design).
    Rolf Kalbermatter
    Message Edited by rolfk on 08-25-2009 08:48 AM
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

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

  • Medir Flujo

    Hola amigos, estoy haciendo un proyecto el cual consta medir el flujo de agua con Labview y una Ni DAQ, alguien tiene algun programa para poder hacer esto? 
    El sensor que uso lo anexo en una foto, el cable rojo es voltaje, el negro es tierra y el amarillo es señal.
    Necesito poder visualizar los valores en un indicador numerico y en una grafica.

    Saludos danieltuzc,
    Gracias por utilizar los Foros de Discusión de National Instruments, como comenta Dennis_Knutson es necesario nos compartas un poco más de información sobre tu proyecto.
    ¿Cuál es el modelo de tu sensor?
    ¿Su salida es de voltaje, corriente, frecuencia, etc.?
    ¿Qué rangos de flujo deseas medir?
    ¿Qué precisión requieres para tu medición?
    ¿Qué dispositivo NI DAQ planeas utilizar?
    Así bien, me tomé la libertad de realizar una búsqueda rápida basado en la imagen encontré que posiblemente se trate de un YF-S201, ¿podrías confirmarnos si este es el modelo de tu sensor? De ser así, lo más parecido que logré encontrar a un datasheet fue este documento. Te pido por favor verifiques que el modelo de tu sensor corresponda con el datasheet.
    Así bien, según dicho documento la salida del sensor es una salida PWM, por lo que tendrás que medir la frecuencia del mismo para poder determinar el flujo que cruza a través del sensor, sin embargo según el documento no se trata de una relación totalmente lineal, por lo que te recomiendo utilizar una escala personalizada del tipo tabla, el documento especifica algunos valores conocidos para el sensor que podrás utilizar en tu escala personalizada.
    Te comparto algunos links que pudiesen serte útil:
    Frequency Measurements: How-To Guide:
    http://www.ni.com/tutorial/7111/en/
    How to Take a Frequency Measurement with an Analog Input Channel:
    http://digital.ni.com/public.nsf/allkb/0A335655A8FF2C69862570BD0052DFDA
    What Are NI-DAQmx Custom Scales, and How Do I Use Them?:
    http://digital.ni.com/public.nsf/allkb/0464919A11C092E386256D800079C3BB
    How Do I Programmatically Create NI-DAQmx Custom Scales in LabVIEW?:
    http://digital.ni.com/public.nsf/allkb/F7DAE47B4408A86F8625765700767FCD
    Custom Scales:
    http://zone.ni.com/reference/en-XX/help/370466V-01/mxcncpts/customscales/
    Nuevamente, te pido nos confirmes si efectivamente este es el modelo de tu sensor, quedo al pendiente, saludos cordiales.
    David P.
    National Instruments
    Applications Engineer
    www.ni.com/soporte

  • Subtle Event Problem

    I have a plot as shown below, I would like the user to be able to click the scale button and the x scale precision should increase and come back to zero.
    For example:
    when the user first click the scale button, the xy graph X values should show [1.2  2.5  3.2 4.6  5.1]
    the next time the user clicks, the X scale should read [1.23 2.51  3.25  4.62  5.18]
    the next time the user clicks, the X scale should read [1.234   2.514   3.254   4.628   5.184]
    the next time the user clicks, the X scale should read [1    2    3   4  6   5]
    hence, the number of precision should go round - increase and come back to zero.
    I tried to use a shift register with for loop, but I do not see a way around it.
    The other problem is that the property node I used is not even updating the precision, even without event case.
    Any help will be appreciated.
    Solved!
    Go to Solution.
    Attachments:
    subtle event.vi ‏11 KB

    I got the same weird buggy error!
    But the following code works:
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Pass entire list of XY graph properties from Main vi to Subvi XY Graph

    Hello Everyone,
    I have an XY graph in my main vi that allows users to review data.  They have control over how they want to display the data on this graph(scale,color,line style, etc).  I have a subvi that excepts and array of XY graph plots (multi-plot) and prints the graph as the user has set it up.  As of right now I am passing only certain properties from the main XY graph to the subvi XY graph using property nodes.  Using this method only the important items are being passed (scale, flipped, xy scale name label) mainly because I have been to lazy to sit down and make a cluster containing all the property values.  I have to beleive that there is a way for me to pass a reference from the main XY graph to the subvi XY graph that will set all the properties in the Subvi graph to the same settings that the Main XY graph has.
    Thank you in advance,
    Steve

    Passing a reference to the subvi seems to be half of the solution that I am looking for.  This allows me full access to all propertys of the main graph.  The problem is that once I am inside the subvi I still have to select what properties I want to pass to the subvi graph. (see attached image).  My goal is to pass the reference to the subvi and then have every property of the main graph be assinged to every property of the subvi graph.  This way no matter what the user changes on the main graph (line style, width, color, scales, precision, etc) the subvi graph will reflect this.  With the method displayed in the image I have to manually select the properties that I think will most likely be edited.  And if I miss one the user will not get an exact match of the main graph.  I am hoping there is a way to do this, if not then I will just have to sit down and pass all the property values from the reference to the subvi graph but this seems like the hard way of doing it. 
    Attachments:
    Refnum.JPG ‏19 KB

  • Form Problem  - Cannot enter decimals into a number column through portal?

    Has anyone come accross this problem? Is it a bug? Can anyone offer any advice? It works using toad to enter data

    Hi
    I tried the same with the default form created from the wizard based on the table SCOTT.EMP .
    It contains the field SAL with datatype NUMBER(7,2).
    I was able to enter the decimal values and it worked perfectly fine.
    Did you specify the precision and scale of the number datatype properly ?
    NUMBER(precision,scale)
    precision - the total number of digits
    scale - number of digits to the right of the decimal point.
    Thanks
    Shivank

  • How can I add axis to an XY-graph programmatically (in LV 6i)?

    I am currently using LabVIEW 6i to make a flexible graph window, which can be called and controlled from another VI. It's easy to send commands to the graph window over a queue interface (enabling things like adding and removing plots, changing the names, etc.)
    However, I would also like to add/remove/assign axis like this (i.e. when the program is running). It seems to me that there isn't an attribute or method available on the XY-graph that will allow this.
    My best solution so far is to have a maximum number of axis present, and then hide/show them when axis are removed/created. However, this triggers a bug in LV (AFAIK) when the axis are shown/hidden out of order (they will be shown
    on top of each other). Now this can be solved by setting the positions/sizes of all axis every time, but that seems like a lot of work...
    Is there a way to add/remove axis to an XY-graph programmatically (in LabVIEW 6i)?

    I have not found a way to programmatically create/remove scales in LabVIEW.
    In regards to the error, I would suggest updating to LabVIEW 6.0.2. I wrote a simple VI that tested this funcitonality and did not have any problems. The link to the 6.0.2 update is:
    http://digital.ni.com/softlib.nsf/websearch/F983BDA17B8F401B862569EC005A11C2
    Chris_Mitchell
    Product Development Engineer
    Certified LabVIEW Architect

Maybe you are looking for

  • Smartform sending pdf file as a mail

    i have done a mailing a pdf as mail i am able to down load a file in to the systam which is perfect but i am not able to send the mail can any one tell me whats the problem in this and guide me if there is any problem. CALL FUNCTION 'GUI_FILE_SAVE_DI

  • Photosmart 7520: Scan to Email

    Hi,  I have created my email adr on the printer, and veryfied my mail adr. with the PIN code, that was send to me from HP But when I start the process by cliking (on the printer), "Scan" --> "Scan to Email" --> Select my Email Account --> Select type

  • DVD Burn Error #2130932483

    I've tried burning 2 different videos created with Premiere Elements 4 and everytime I try burning, it gets towards the end of the encoding process and returns an "unknown error" message with the code #2130932483. Anyone know what this code means?

  • Use BridgeTalk,but my script doesn't work

    Hi, I want to use BridgeTalk to open a image in photoshop,but my script doesn't work. Anyone can tell me why?Thanks! Best Regards goldbridge #target indesign #targetengine "MyEngine" var doc=app.activeDocument; if(doc.selection.length>0)             

  • [IDCS3 WIN Insert Text Variables into a document

    Hi all. Please, I need insert a Text Variable into a document. This document is not open in a window (I am importing it). Using ITextVariableSuite is not possible. Any idea, suggestion, way of work,...? Thanks in advance. Best regards, Juanma.