RS232 and Graph

Hello ! 
I am new here and I would like to ask a question about Labview. 
Can you help me ?
Actually, I am working on a project with a PIC.
The PIC sent 3 informations (that evolves in time) to Laview (in my case, it is current, tension and time)
To send these informations, I use RS-232.
Moreover, I have used examples from Labview called 'Basic Serial Write and Read'.
It is great ! It works and Labview can display my values thus : 'current;tension;time\n'
I would like to display these datas on 3 graphs.
I think my first step should be : De-multiplexing or try to convert my data (string made by RS232) into float.
What do you think ? How can I do that ?
Thanks for your help and advices.
Solved!
Go to Solution.

Hello !
Thanks for your replies !
I have followed your advices Lynn and the problem seems to have disappeared. Great !
Actually, I would like to ask just two questions about this topic and it will end my problems (sorry, I asked a lot of questions )
1) What about sampling and chart ? 
Thanks to my PIC, I can measure current,velocity and tension. And I send datas every 200 ms. 
Do the charts display my values every 200 ms ?
2) When I start "Writing", my charts don't start at 0 second. Why ? It looks like there is already something.
I recorded another gif in order to show you what's happened.
About what you did the last time, your method with Index Array is clearer and smarter. I will remember that.
[QUOTE]The constant array connected to the divisor input for velocity has 9 elements which are zero. Does dividing by zero produce the scaling you want?[/QUOTE]
About the scaling, I would like to divide each element (velocity, current and tension) by 10. So, I just used the divisor as you did.
I don't use the part 'Original velocity divisor'.
[QUOTE]The Read (and perhaps the Write) should be inside a loop. Do not use Run Continuously to operate this VI . That results in the port being configured and closed repeatedly. This could also contribute to your loss of data.[/QUOTE]
Alright, I added a While Loop instead of the old structure and I have deleted the last part in order to Run Continously
[QUOTE]Personally, I would use the Scan From String as mentioned by crossrulz. One function instead of two.[/quote]
Thanks for this advice. I am going to keep that in mind
Thanks for your help.
Attachments:
Basic Serial Write and Read2.vi ‏35 KB
test5.gif ‏1396 KB

Similar Messages

  • How to maintain gap between table and graph in a report

    HI,
    I have a report in which a graph is placed below a table  and data in the table gets increased with time , then how to maintain the gap as constant between table and the graph ?? Like i have 50 rows in a table and then next day 10 rows are added but then i want maintain same gap between the table and graph???

    >Right click on chart.
    >Open the property and go to the relative position.
    >Select the distance of the upper left point of the chart in relation to another report element by entering - the number of pixels; the part of the tavfrom which youble want to measure the pixels (in the first drop-down list); the report element from which you want to measure the pixels (in the second drop-down list).
    >Repeat this for the distance of the lower left point of the chart.
    Hope this will help you out.

  • How to group Table and Graph in the same section in OBIEE 11g

    Hi,
    I have a requirement of showing the table and graphs together for various products in different section. For example, for Product A, the table and graph would be displayed together and after product A, the table and graph for product B should be displayed.
    I have tried using section but it creates the seperate section for tables and Graphs. Is there a way that we can put the section on table and graph together.
    Thanks.

    By any chance are you using a pivot table? If so, you can "Graph Pivoted Results". (When you're editing the pivot table, it's the last button at the top/middle of the page.) Then you can use the products column to break the pivot into sections and you'll have a pivot table and graph per section.
    JB

  • Device with both RS232 and TCPIP

    Gurus,
    I'm writing a driver for a new instrument I designed.  It has an RS232 port and an internal RS232<>Wifi module from Roving Networks.  I wrote the RS232 vi's using VISA.  Now I'm trying to figure the best way to handle both types of comms within one vi.  So far I added my TCP address into MAX, it shows up in the list of VISA's.  
    I put in a boolean switch on the panel (select TCPIP or RS232) and a CASE in the code to switch between initializing RS232/TCPIP.  Looks sloppy though...  It keeps crashing on a VISA READ ("lost comms"?) even though the init works fines with no errors, but I'll try to debug that..
    I'm a HW guy creating drivers, don't know all the "fun" stuff you guys do 
    1 - What is the best practive way to implement a dual-comms driver?
    2 - Does any PC I install this driver on have to have MAX on it (to configure the TCPIP socket?
    3 - Can anyone share an init / write & get data vi's please who has done this?  My device only has 4 values to read/write, so very simple.
    Thanks!!!!
    Streve

    You can format the VISA resource name directly allowing you to communicate using VISA using either the RS-232 or TCP connection. The piece of your code that will need to care about this is the initialization. Everything down stream will simply use VISA read or write. If you don't know the exact size of the returned data or you don't have a delimiter for your messages a method to read unknown sizes of data is to read a single byte. This read will use a longer timeout. Once a single character is read read chunks of data (some reasonable size) but use a much shorter timeout. The logic here is that there will be a break between messages. The shorter timeout should be less than the expected interval between messages.
    Since you will be using both serial and TCP communications don't use the Bytes At Port method in VISA. This only applies to the serial connection and therefore your general read/write VIs will have to have logic to differentient behavior based on the connection type. You should avoid doing this and limit that to the initialization only.
    I have implemented several variotions of a generic communication interface library. The most recent is LVOOP. I am not at liberty to post these however. But it is very doable.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • I have a neslab chiller and want to read the temperature by sending ASCII characters and graph the results, any advice?

    I am having difficulty having the chiller recognize (RT[CR]) which is the signal recognized by the chiller to read the temperature. The signal that is returned is (xxx.xx[CR]) which is the temperature. I am attempting to be able to read the temperature and graph this vs time and possibly be able to change the setpoint as well from the UIR.

    I agree with Randy that Hyperterminal is a good starting point to test cabling and communication.
    In your program, be careful to serial port initialization (how to set baud rate, parity, data bits and stop bits depends on the language used) and to termination character ([CR] means Carriage return: if you are usng CVI it DOESN'T add CR to the message unless you esplicitly put it in).
    Another interesting point is the time the instrument takes to respond to the message: it can vary from message to message and is usually described in the instrument's documentation. If you test for a shorter time, you catch a false 'no response'. You could make a while loop and test in it the number of bytes received, then decide whether to end the loop for timeout or answer recei
    ved...
    To continue help you, we need some details of your developing environment (CVI or LabVIEW?) and of problems you are having at present.
    Hope to hear you soon
    Roberto
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Am unable to insert table and graphs into word document in labwindow/CVI? can any one help me ?

    Am unable to insert table and graphs into word document in labwindow/CVI? can any one help me ?

    Are you using the Word Report Generation instrument? You can find it in toolslib\activex\word\wordreport.fp under the CVI directory.
    The instrument comes with a sample project that shows how to include table and graphs in a Word document: see samples\activex\word\wordrpt.cws in the samples foder of your CVI installation.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Charts and Graphs using OAF---New Module

    Hi All,
    I have a doubt in creating Chats and graphs!!!
    I have different organizations in my table, In that i have to select one organization manually using Lov item..... for that particular organization i need to get Graph ( May be Pie or Bar type). How to obtain this model page...
    In tutorial exercise we do-not have option for selecting some organization and getting the graph for that... we have got option only for all the details of the employee table...
    How to obtain this module... Please help me out in this issue!!!!
    Advance Thanks,
    Ganesh

    Please anyone help me out in this issue!!!!!!!! :( :( :(

  • Data Visualization and Graphs for JSF

    Are the Data Visualization and Graphs for JSF included in this release. I saw the demo here http://www.oracle.com/technology/products/jdev/11/index.html and want to try it out. But I could not seem to access it in the tool.
    Regards
    Orlando Kelly
    Cayman Islands Government

    <p>
    Hi,
    </p>
    <p>
    It seems you have no suitable libraries in your ViewController project. See on this image whet libraries you need.
    </p>
    <p>
    Kuba 
    </p>

  • Can i plz get some help, i need to create a vi that gives equation of straight line and graphs

     a vi that inputs two set of coordinates and computes the equation of the straight line joining these two sets of coordinates and graphs this line, and then i must compute the equation of a line perpendicular to this line and passes through (x3,y3) and graph this line.

    You should try to learn Labview basics before trying to tackle a Labview program.  I'll give you a head start because you are probably under some time constraint.  Try to code this and then ask for help when you need it.
    To start you off, use a For Loop.  Your graph will be finite, so wire in a reasonable number into the N terminal of the loop.  Use the i terminal as your X input and calculate Y for each X.  The output of the loop will be an array of Y values.  You can graph those values. 
    Learn how to post your vi here.  There are several ways.  The best is to use Laabview 2009 and create a code snipet (look under the Edit menu).  Then add the snipet to your post by clicking the Upload or Insert Image icon above (the icon looks like a tree).  You can add the vi directley by clicking on Add Attachments below the Tags box.  Be sure to state which version of Labview you are using.
    - tbob
    Inventor of the WORM Global

  • Xbee data extracting and graphing

    Hi,
    I have been trying for a few days to get this to work with no results. I have searched through google and some of the forums for help with nothing that really helped.
    I am using two xbee devices to transfer data to labview to graph.Eventually I would like to use the ADC on the Xbee to take an analog signal and convert it to a digital signal for labview to read and so I can do my analysis on it. I started with getting a basic Visa program to work and send number from my arduino uno over and over again and placing those values into an array This works great with no problems. The problem comes when I try and send a signal through the Xbee. 
    I tried to send an analog signal out to the adc and I was getting some values in labview in Hex but I was unsure what they really meant. My second attemp was just to try and create a pulse wave using my arduino and send that to labview and have labview try and graph the incoming signal. This however did not work and I am not getting any data. I connected both Xbees up on a bread board without labview to see if I can get the a signal out of the recieving xbee and it worked. So the problem should not be with my xbee's but with my code. 
    The code is where I am not sure about. I was able to find examples of how to use the visa and was given a basic example of it. I have then tried to manipulate the program to see if ti would work for me. I am trying to take the signal from the VISA Read funciton and convert it to a 1d array to display on a graph. I have also tried to seperate the dat into an array char by char from the string. However, none of this worked. I am getting a zero value out for my graph and no values into my array. I am also getting no value into my READ String area. 
    The values I have sometimes gotten look like:
    00\00\00\00\00\94\00\00\ and so on with different value. Some time the byte read is very large up to 475 when I am placing the pulse wave in or so and sometimes smaller at 19 when I tried to connect the ADC.
    I have attached some of my VI's to see if anyone can come up with a better way or point me in a better direction.
    The png is a pic of the results I got from the pulse input. So it looks like I am not getting any data at all. 
    Thanks for the help
    Juan
    Attachments:
    Basic VISA_Test_1.vi ‏26 KB
    Result_OfpulseWave.png ‏129 KB

    Hello jrod03,
    I would suggest using the NI LabVIEW Interface for Arduino Toolkit found here (http://sine.ni.com/nips/cds/view/p/lang/en/nid/209​835) and posting your Arduino related questions in our LabVIEW Interface for Arduino community (https://decibel.ni.com/content/groups/labview-inte​rface-for-arduino).
    This document will also probably be helpful to you (http://digital.ni.com/public.nsf/allkb/8C077471896​06D148625789C005C2DD6).
    Jonathan L.
    Applications Engineer
    National Instruments

  • Jdev11g with Charts and graphs facilities

    Hi,
    I saw the from the following link that jdev11g has the new features for chars and graphs.
    http://technology.amis.nl/blog/?p=2007
    I installed jdev11g and trying to drag and drop the VO as I do for ADF components. But I didnt see any chart or graph option as mentioned in the url. Is there any extra step that I need to do to enable that?
    Please let me know.
    Thanks,
    Priya

    Hi,
    right mouse click into the component palette and choose "manage libraries". Alternatively you can choose Tools --> Manage Libraries. Select the Data Visualization Components and move them to the list of selected components. This is it
    Frank

  • Personalized Views - Charts and Graphs?

    Hi All,
    Can PerformancePoint web parts and graphs be combined with SharePoint's "personalized views" in order to create personalized dashboards for each user?
    Any advice or recommendations are greatly appreciated,
    Regards,
    CP

    Depends on what level you want this to be achieved.  The requirements for a normal user might will be different from Power Users or BI professionals.  This'll be the difference between chart parts and allowing people to use Dashboard Designer.
    What level of user are you needing to cater for?
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • 8753xx series read and graph proper calibration

    Greetings for Greece,
    I have a Hp 8753D network analyzer I would like to control via GPIB using labview. Actually  I want to build an interface where the instrument data are displayed on my laptop and export them after.  "8753xx series read and graph" example, does exactly what I want but requires a state file name along with a calibration file name. The calibration I am used to doing so far is only manually, therefore I cannot figure out what sort of file to insert in the specific field. in addition, I have nothing else but the analyzer, not even the calibration kit. Is there a way to create a path where the labview code will automatically extract the saved state and calibration saved in the RAM of the analyzer? 
    Thank you in advance,

    Hello,
    The Save/recall State functions either writes to a State file (save) or read from a state file (recall).
    There are example files included in the instrument driver:
    C:\Program Files (x86)\National Instruments\LabVIEW 2014\instr.lib\Agilent 87XX Series\Examples\Agilent 87XX Series.STA
    Samething for a Calibration data&colon;
    C:\Program Files (x86)\National Instruments\LabVIEW 2014\instr.lib\Agilent 87XX Series\Examples\Agilent 87XX Series.CAL
    Save-Recall State VI and Save-Recall Calibration VI.
    Both of these functions has Save and recall functionality. Does it work to configure the instrument manualy and then call the functions with save.
    Regards,
    Klas
     

  • Importing tables and graphs from Word to pdf form

    Hi. I've got a form set up in which people are supposed to submit a final report on a grant. There are large multi-line text fields in which they can enter text -- and most people are writing the text in Word and then just copying it into the text fields. In the process, however, they lose formatting of any tables, charts and graphs that are in the Word file. Is there any way to avoid that? Or is the only solution to ask them to append a Word-created pdf containing any tables, etc., to the form?
    Thanks --

    OK, thanks.
    Betsy Rubinstein, InForm
    6408 Stratford Road
    Chevy Chase, MD 20815
    Ph: 301.941.1361
    Fax: 301.941.1362
    www.inform-online.com

  • Problem with DAQ in while loop and Graphs

    Hello,
    I'm new here so I apologize if I posted this on the wrong board  
    This is my "situation":
    I need to make a simple PID controller which takes information (process variable) from an outside source (a NI's DAC connected through the USB port ) which is accomplished using NI-DAQ as an input, and the PID's output goes to the second NI-DAQ which is also connected using DAC to an actuator which in my case regulates the air pressure. (VI attached)
    My problem is the following.
    Both of the NI-DAQ I placed using DAQ Assist, require to be in a while loop.
    -If I place them in separate loops, I have the problem of passing information between the Input NI-DAQ and the PID, and also between the PID and the Output NI-DAQ.
    -If I place them both in one big loop, an error occurs saying that the selected buffer size is too small (Error -200609).
    The timing settings for the DAQ's N samples, 100 samples to read at the rate of 1k (I also tried with Continuous samples and many different combinations of Samples to Read an Rate but without success).
    Should I wire them with the same dt(s)?
    The other thing I need to do (I'm also writing it here in order not to open new topics) is show the following 3 signals on a Graph (process variable (dynamic data type)(range 4mA - 20mA), PID output (double)(range 4mA - 20mA), and the Set Point (double)(range 0 to inf))
    Firstly, is it possible to show the first two on a scale from 0 to 100 without changing the PID's output which needs to be 4-20?
    Secondly, which graph should I use if I have different data types? (I tried the Waveform Chart, and succeeded in showing the first two; the third just messes everything up)
    I would also have to make a legend explaining which signal is which (I see that this is possible with the Mixed Signal Graph).
    I know this is probably too much to ask, but I'd be grateful for any help
    Thank you in advance
    Attachments:
    PID while.vi ‏100 KB

    My problem is the following. Both of the NI-DAQ I placed using DAQ Assist, require to be in a while loop.
    -If
    I place them in separate loops, I have the problem of passing
    information between the Input NI-DAQ and the PID, and also between the
    PID and the Output NI-DAQ.
    This is the best option---Use QUEUE or Functional global or something else to tranfer the data to and fro
    How  do I make that QUEUE or Functional global?
    -If I place them both in one big loop, an error occurs saying that the selected buffer size is too small (Error -200609).
    Have
    you tried increasing the buffer? Is the acquisition happening
    parallelly (means to say the first DAQ not wired (error terminal) to
    second DAQ)
    Well the buffer is, at least how I understood it, the option Number of Samples when in Continuous Samples mode. Concerning the parallel acquisition, do you mean I should wire the error ports of both of the DAQs?

Maybe you are looking for

  • New MacBook Pro 13" OK to drive external Monitor?

    My 5 year old Core duo-2 MBP-13" drives a 23" external LG Flat Screen monitor perfectly.  But I am hearing that the latest MBP-13" (including the fastest build-your-own model) has some issues with an external monitor - it may stutter of be slow. Well

  • Burn itunes movie to dvd

    I purchased a few movies and want to burn them to a dvd.  How can I do this?  Apple seems to make this very difficult to do.

  • Multiple Instances of Same Application Icons in iTunes App Folder

    I recently sync'ed my iPhone to iTunes on my MBP. After doing so I noticed that in the iTunes application folder there was 2 icons for each of my application that I have. Only one icon though on my iPhone. Running a sync a third time I got 3 icons in

  • Browse sequences in WebHelp Pro

    I publish my project to WebHelp Pro and the browse sequence buttons appear but they do not work. Do browse sequences work in WebHelp Pro. They work fine for the same project when published to WebHelp. Thanks for any help. I am using RoboHelp 7 and Ro

  • Whenever I start FCP I get - KERN_PROTECTION_FAILURE at 0x00000000bf7ffc0c - and FCP will NOT start.  Suggestions?

    This is my FULL error: Process:         Final Cut Pro [7574] Path:            /Applications/Final Cut Pro.app/Contents/MacOS/Final Cut Pro Identifier:      com.apple.FinalCutPro Version:         7.0.3 (7.0.3) Build Info:      FCPApp-1008261348~8 Code