Connect RS232 with labview to read current and voltage values.

Hi, I am trying to connect my microcontroller kit which will measure the current and voltage. I was provided with rs232 port to connect with labview to read the voltage and current data that is measured by my controller. How to make it display both current and voltage value by acquirng the data from rs232. I tried some programming but it doesn't work or it was wrong. How to make it work ?
Attachments:
pro.vi ‏13 KB

As we said in the other thread, you need to talk to whoever is designing the microcontroller and decide on a specific format for it send you the data.  Once we have that, then we can start talking about how to program this up.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines

Similar Messages

  • Does anyone know how to use ELVIS in Labview to get current and voltage measurements?

    Trying to use ELVIS in Labview to get measurements with a NI myDAQ.

    I have changed from using the ELVISmx driver as I was unable to call on the digital multimeter of the myDAQ twice, I have set up a VI using the DAQ assistant with the myDAQ, I am using the AI0 port for a voltage reading and using the DMM for my current reading, the circuit is working as I am measuring the voltage on a resistor after the ammeter but I am unable to get a current reading in order for it to work. If I have something wired wrong please let me know, thank you. My circuit is a 12VAC power supply, going through a potentiometer to drop the voltage to 8VAC, which passes through a resistor, ammeter is in series after this and attached to another resistor to complete my loop, the AI0 for my volt meter is connected across the second resistor, I have the proper voltage reading when I run the VI, but am unable to get a current input. Thanks for the help.
    Attachments:
    Mikes Project2.vi ‏131 KB

  • NI Elvis Read Current and Voltage Simultaneously

    Greetings,
    I'm trying to read voltage and current on an NI Elvis II to characterize the output of a TENS unit (currently using SignalExpress). 
    What I have worked out:
    Thanks to advice on another question I asked earlier today, I've now got the timing worked out so that I can produce log data at 10kHz when measuring voltage through the CH1 Scope input.
    I'm now moving on to the other have, and am trying to add current in as another task.  It makes sense to me to try and read that through the DMM current input.  However, I'm getting errors that will only allow me to read the value once, instead of at the 10kHz rate I measure the voltage at (and would prefer that they are read in sync).
    This seems like it should be pretty straightforward to do, but I'm just not seeing it.  It's really important (in a non-academic and non-job way) that I get this done tonight, and I really appreciate all the support this board has offered.  If there's anything I need to provide to make the issue clearer, please do not hesitate to post.!
    Would it be easier to run this through LV proper instead of SignalExpress?

    The DMM that is onboard the NI ELVIS II is not specced to run at the rates you're requesting. In fact, the DMM is a software timed device, which means that it will only collect samples when your computer tells it to. I created a quick benchmarking code to see how many measurements that an ELVIS II could take per second and I came up with about 4 or 5. You can recreate the code yourself to see similar results. 
    After one second, the elapsed time Express VI will output a 'true' which will stop the while loop. The DMM will be constantly acquiring and writing data into an array. When the while loop has finished, an array of DMM data will be output. The size of this array will indicate the number of samples that can be read in one second. 
    Nathan M.
    Applications Engineer
    National Instruments

  • How to measure current and voltage and rpm with daq device

    i am measuring current and voltage and am wondering should i use shunt resistors or current sensors hall effect sensors. i have a pci 6221 and a scc-68 breakout box. what specifications or size should the shunt resistor/current sensor be or should i use another device to measure the currrent and voltage. do i need any other safety device between the resistors, current sensors and the scc-68 breakout box when measuring the current and voltage. will the daq card pci 6221 pick up a signal from the resistor. what terminals should the wires from the resistors and current sensors be connected to in the scc-68. i am using a proximity switch to measure rpm of a motor. should the proximity switch be 2 or 3wire connection. should it have an analog or digital connection and is a power supply required to power the proximity switch and should it have an npn or pnp connection

    hello,
     i was going to use a 20amp 50mv, or a 20amp 100mv current shunt and connect wires directly into the AI input terminals of the scc-68 from the current shunt would these be suitable. would current shunts such as these be suitable to use http://uk.farnell.com/elc/sh10020/shunt-sh10020-20a-100mv-1-class/dp/1319576 or http://uk.farnell.com/datel/3020-01098-0/shunt-50mv-20a/dp/1339338
    is it ok to use either a current shunt or should a hall effect sensor be used  such as this http://ie.farnell.com/honeywell-s-c/csla2cd/sensor-hall-effect/dp/1082269 . which of them would be more accurate or are both of them fairly accurate.
    when i am measuring voltage can i connect two resistors between the positive and negative of the wires going to the battery and connect two wires from either side of the resistor directly into the analog inputs of the scc-68 and measure the 12-15 volts directly would the pci6221 and scc-68 be able to measure the voltage drop across the resistor.
    i wanted to measure rpm also does it matter whether the proximity switch has 2 or 3 wires and should it have an analog or digital/frequency output for cponnecting to the scc-68

  • Measure current and voltage in Elvis and labview

    Hi!  We're setting up a control system setup for class where we need to monitor the current and voltage that we are supplying/drawing from the ELVIS hardware within a LABVIEW setup.  So far, we can accurately display voltage input and outputs from the AI and DAO terminals respectively.  However, we can't seem to find a direct way measure current draw.  I believe that we are supposed to be able to get DMM readings from the AI5 channel, but either we're not doing it correctly, or we still need to place a known resistance across it (which we cannot do, due to variable loads).  Any advise please?
    Cheers,
    Gerald

    Are you using Elvis I or II?  From your post, I will assume it is Elvis I but please correct me if this is not the case.  Page 38 of the manual shows that ACH5 is used for capacitor or diode measurements for the DMM.  To measure current, use the connectors on the front of the Elvis unit and then route the current HI/LO on the protoboard to either the oscilloscope or an analog input channel.  You can use the DMM Soft Front Panel to monitor current as well.
    Message Edited by h_baker on 07-09-2009 04:54 PM
    Regards,
    h_baker
    National Instruments
    Applications Engineer
    Digital Multimeter Resources

  • Creating a CIN with Labview 6.0.2 and MSVC++ 6.0

    Hello,
    I am a new Labview user. Does anyone know where I can find examples of
    creating a CIN? Preferably demonstrating use with Labview 6.0.2 and MS
    Visual C++ 6.0
    Thanks,
    J.White

    LabVIEW comes with a pdf file titled "Using external code in LabVIEW", which provide good references on how to do what you are asking. In case you don't have it, you can download it from ni.com:
    http://digital.ni.com/manuals.nsf/web_productcurrent/4F1447F7CD83D6D88625690D00637CED?OpenDocument
    There is a small issue with MS Visual C++ 6.0, which is addressed in the following link:
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/d7bdb30eef410056862569ab00724294?OpenDocument
    Here is also a full tutorial about CIN at ni.com:
    http://www.ni.com/support/labview/program/callcode/cinmain.htm
    Also check the following examples, which were very useful for me:
    Using a CIN to Create an Array of Strings in LabVIEW
    http://zone.ni.com/devzone/devzoneweb.nsf/ope
    ndoc?openagent&AD517F5DCCAF70228625683A000A570F&cat=2F4F574886553A62862567AC004F032D
    CIN that converts a LabVIEW String to a C String, Modifies it, and Returns it as a LabVIEW String
    http://zone.ni.com/devzone/devzoneweb.nsf/opendoc?openagent&D978409908EA760D8625683A000B6B6E&cat=2F4F574886553A62862567AC004F032D
    Replacing a Portion of an Array
    http://zone.ni.com/devzone/devzoneweb.nsf/opendoc?openagent&3B5B43568CF83D948625683A000C397E&cat=71359FBAD517F4CB862567E0007B6F6E
    Best regards;
    Vargas
    www.vartortech.com

  • Using XY Graph to plot current and voltage

    Hi,
       I'm making an I-V curve tracer, and am hoping to plot current and voltage measurements I'm acquiring onto an XY Graph in realtime.  I'm using Labview 2010 on Windows Vista, with the VISA drivers installed; my acquisition hardware is an Arduino Uno communicating over USB to serial via VISA drivers.
    My data is coming in over the serial port formatted like "voltage,current":
    237,521
    320,402
    I've read through the relevant documentation for the graph builder, the 4 samples included with LabView, and quite a few posts on this forum.  I modified Jazlan's sample VI to read the current and voltage, and display the values on the front panel - it works just fine.  However, when I wire those values to an Express XY Graph builder (and set the 'clear data on each call' property to false) and run the software, it just sort of freezes... I try to stop it, but it keeps running for about 10-20 seconds.  The current/voltage values are not updated, nor is anything displayed in the XY graph.
    Am I not sending the correct input to the graph builder?
    Should I just wire up my values directly to the XY graph by concatenating values to an array, and then clustering it?
    Also, on the right border of my case structure, one of the orange squares is not solid - how do I fix that?
    any help much appreciated!
    imran
    Attachments:
    block.jpg ‏140 KB
    project.vi ‏76 KB

    thanks for the tip Tim,
        I wired up the stop button to the VISA close block, and now I'm able to run and stop it multiple times without freezing.
    1)  I know how to add shift registers, but why do I need one?  It doesn't seem like I need to pass values from one iteration of the while loop to another...
    regards,
    imran
    Attachments:
    project.vi ‏43 KB

  • Current and voltage trasformer

    Hello to all,
    I'm developing a system of power analysis based on "Electrical Power Measurement Toolkit".
    I think to use a system based a cRIO-9075 and a NI 9215 (simultaneous sampling).
    I think to use this current and voltage trasformers:
    http://www.magnelab.com/products/Current-Voltage-Sensors/solid-core-ac-current-sensor-uct-0300-
    http://www.magnelab.com/products/Current-Voltage-Sensors/potential-voltage-current-transformers--spt...
    The voltage range in output from these sensors (0 - 333.mV) disagrees with that of the acquisition module (0 - 10 V).
    There might be a problem of signal levels? In this case, can you tell me how to adapt the signal?
    Any other configurations are welcome.
    Thank you very much,
    Federico.

    There is no problem, the NI 9215 has a minimum voltage acurracy of 0.003 V........just set the measuring range of the Daq card in DAQ asistan from 0-10 V ....to 0-1 V.
    Have a nice day! 

  • When simulating a circuit, how do I display current and voltage on the circuit?

    Hello, how do I get Current and Voltage to display on the circuit design without using meters?

    saxyman123,
    You can use probes (yellow instrument towards the end of the instruments toolbar) and then set the properties.  You can choose to display just current and voltage.
    Regards,
    Pat Noonan
    National Instruments

  • What are the safe limits of current and voltages

    What are the safe limits of current and voltage of an ac signal to the NI USB 6008.

    Hi hanan,
    current is voltage/resistance. There surely a resistance is given too...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Sr830 connected with rs232, reading freq and voltage doesnot happen simultaneously

    Hi,
    I am having a problem, trying to set the frequency and voltage in the auxiliary output simultaneously. I wrote two codes, one to set frequency and another to set voltage in the auxiliary output and used them as sub VIs to my main program which at this moment contains only these two elements. When I run the program the first time, both the frequency and voltages are set, but on subsequent runs only one item is set whilw the other retains the older value and I have to run the program again to set this parameter. What is the problem? can u please help me out. I am just one week into labview programming but I have to set up C-V hysterysis in very shor time, of which these controls are a part. Please find the programs attached.
    Solved!
    Go to Solution.
    Attachments:
    select frequency.vi ‏20 KB
    select voltage.vi ‏20 KB
    freq and voltage.vi ‏18 KB

    Thank you guyz for your respective suggestions, I have replaced the two serial port initialization into one and I have placed the write functions sequentially, with a VISA close and simple error handler at the end. I have aso terminated all the voltage, freq., and amplitude commands with EOL (\r\n) Now, when I run this program, in the first run nothing happens, the values for voltage, frequency and amplitude remains the same. On the second run only the first component, i.e., the voltage is set to the defined value the freq and amplitude remains unchanged and on subsequent runs, nothing happens at all. o, I can only set the voltage, but not the next two components. I am sorry, but I don´t if I am making some silly mistake, but why doesnot the write functions work sequentially now?  and BTW i have only one serial port connected to the Stanford research SR830 lock-in amplifier.
    Attachments:
    select voltage freq amp.vi ‏44 KB

  • Is it possible to create a vi-file in an .exe file with labview 6.1i? and how to create it?

    Hello,
    I want to create a vi-file into an exe-file but don't know how to do it with labview 6.1i.
    Maybe somebody here can give me hints to do it!
    thank you very much!

    To build EXEs you need the application builder. To see if you have it, open the tools menu. If you have an option named "Build application or shared library", you're OK. Just open it and you can set up your app there. To run this application, a computer would have to have the LV run-time engine, which can be downloaded from the NI site. For the first time you deploy the app, you should use the app builder to create an installer, which will install the run-time engine as well as your app.
    If you don't have it you can purchase it seperately from NI.Message Edited by tst on 03-17-2005 10:42 AM
    Try to take over the world!

  • Using face Time can I make video connection simultaneously with an apple lap top and a iPhone 4?

    Using an iMac can I make a Face Time connection simultaneously with an apple lap top (has face time app) and an iPod4 (also has face time app)? If so, how?

    I havn't got it, but have you tried the Skype for iPad app ? - http://itunes.apple.com/us/app/skype-for-ipad/id442012681?mt=8#

  • Connection error with Crystal Report XI, VB6 and Sybase ASE15

    Hello !
    I have an error #4002 when I want to launch a report in VB6 with the ActiveX Crystal Report Viewer.
    I use Sybase ASE 15 with an ODBC link and the reports run stored procedures.
    This error seems to be an authentification error, but I don't know what parameters are missing or wrong...
    - My reports works well in the report designer.
    - The reports connected to a text file or an ADO recordset work in VB6.
    - The Verify Database works in design mode in VB6.
    - The problem is the same with tables, stored procedures, SQL and with or without parameters...
    - I tried to connect the report to a DataEnvironnment but I get the same error.
    The problem appears when I use the Crystal Wizard to create a form automatically AND when I create objects directly in code like :
        Dim crapp As CRAXDRT.Application
        Dim oReport As CRAXDRT.Report
        Set crapp = New CRAXDRT.Application
        Set oReport = crapp.OpenReport("C:\myreport.rpt")
        CRViewer.ReportSource = oReport
        CRViewer.viewReport
    Please help !

    Hello,
    I don't see any database logon code in what you posted.  You need to log onto the database at runtime since Crystal Reports will never store passwords.
    You can download and review the [Connection Properties|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00635998-751e-2b10-9cba-f50ee1e4ef81] document for more information on how to log onto your database at runtime.  This document was written for CR9, but it's the same for CR10, CR XI (v11.0), and CR XI R2 (v11.5).
    I hope this helps.
    Sincerely,
    Dan Kelleher

  • Problems with LabView 7.1.1 and Report Generation

    I have just upgraded from LabView 7.1 to 7.1.1. As per the release notes, I did a mass compile of the vi.lib/addons/_office folder (which contains the Report Generation Toolkit for Microsoft Office v1.1) but I get a lot of error messages complaining about "Bad VI". These VIs are no longer available after this operation. If I don't compile them (ie leave them in 7.1 format) then LabView complains that some subVIs are not executable.
    Are LabView 7.1.1 and the Office toolkit 1.1 compatible? How do I get them to work together?
    Simon

    Maybe you have figured this out by now.... But after reinstalling/upgrading LV you must reinstall your Report Generation Toolkit.
    If you care for the why.... There are a few files that both the Report Geneartion Toolkit and LV install, only the the Report Generation Toolkit installs a more beefed up version of the files. When you upgraded LV, LV copied a new version of these files (a version that doesn't have the Report Gen support in it) over the Report Generation version. So you have to run the toolkit installer to get the toolkit version back.
    Deborah
    Message Edited by Deborah on 10-06-2005 12:37 PM

Maybe you are looking for