Convertir un booléen en waveform puis vers un graph

Bonjour
Je suis un étudiant en génie électrique au Collège Gérald Godin, Montreal,QC et comme projet de fin DEC je dois créér un analyseur logique à l'aide un PIC19f4550 et afficher sur une interface labview sous frome d'un graphique.
Toutefois, j'ai un probleme a recueilir mes données de mon PIC via le Visa read vi de Labview 8.0. J'essaie de transfomer un caractere en tableau puis en booléen afin de construire un waveform et de le mettre dans un graphique. Les exemples fournies dans le tutoiral et dans l'aide contextuelle ne me permet de trouver une solution.
J'espere que vous pouvez me renseigner sur mon problème.
Merci Mattsim   

Hello.
To get an answer on this part of forum you should speak in English. I advice you to repost a new thread,.
Another solution is to post on the french community.
For your problem, have you got a code error? Could you post a screen shot of it.
Don't forget to post your VI, it will be helpful to have a faster answer.
Best Regards.
Romain D.
National Instruments France
#adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
NIDays 2010 : Conférence mondiale de l'instrumentation virtuelle
>>Détails et Inscription<<

Similar Messages

  • Display Data on waveform chart or XY graph over a long period of time

    Display Data on waveform chart or XY graph over a long period of time
    Can anyone help?
    I am acquiring data from an Ni DAQ card with the following parameters - sample rate = 12800, number of samples = 4096. I want to extract order information so as to track changes in the amplitudes of certain frequency harmonics. So I use the sound and vibration toolkit to extract this information as shown in the attached Vi.  I will like to plot the resulting amplitudes against real-time starting at the time the Vi was run.  I really want the display to show these changes over long periods (eg. days, months and even years).
    Problem.
    I have tried to plot the Y component of the resulting magnitude for a given order on a waveform chart. My choice of the waveform chart is because I also want to display  alarm limits (using the mask and limit vi) (I can't have these lines displayed on an XY graph plot).  I tried adjusting the scale offset using the property node and setting the offset to current time. However, the display on the X-axis can only show a span of  2 minutes as will be seen when you run the attached vi. I want the time display on the x-axis to be over a period of  days, months  and even years.  Is there a way to set the maximum scale on the x-axis to be say a year or so in future.
    I really want the display to be like the one in in the second attachment.
    Attached is a sample VI created using an Ni USB 9234 DAQ card. Any card will do but I am only getting the signal from one channel for this example
    I will appreciate any help that can be given to me.
    Thanks
    Attachments:
    Real-Time Graph Display.vi ‏170 KB
    Sampe screen1.doc ‏37 KB

    Long term testing can be tricky- and we'l get into that later.  Lets start with the basics that you have wrong.
    The vi as you have constructed it has only one memory element, the chart history length (default is 1024.)
    You can change the number of points the Chart will remember by Right-clicking the chart an select Chart History Length from the menu.
    But for a long term test - and one where you want to REMEMBER the first value you need a memeory element that is independant of the application.  Your PC WILL loose power or need to be rebooted eventually.  Heck it might even need to be replaced! you really need to store your data in a file. Preferablly in a file that is backed-up on a regular basis so you don't lose every point of data if the PC dies.  It realy hurts when you have to restart a 2yr test because you've lost the 18months of data you collected.
    For an application like this I would seperate my "collection" and "Evaluation" operations. 
    Have one vi that takes the reading and writes it to a file at a configurable rate  You may want 1reading  per minute for seveal days then 1 per hour for a few weeks- then maybe only once or twice a week for the next couple of years since you are looking for LONG TERM stability.  having too much data to evaluate can take a lot of digging to find the few things that interest you (but always take more that you think you need)
    Have another utility that COPIES the files, reads them and displays the data you are interested in that day.  The data you want to look at won't change over time HOWEVER, you WILL want to analize it in different ways depending on what the data trends look like.  Having seperate routines for collection and display allows you to update the display style and analisys without even stopping the collection vi (much less editing the vi)
    Jeff

  • Two waveforms in one xy graph

    Hello,
    I need to put two waveforms in one xy graph. Value of one waveform should be in x axis, and second on y axis. I have no idea how can I do that. Everything I have succeeded is xy graph with both values on y axis and time on y.
    Thanks for Your help!

    Check xy graph.vi example that ships with labview
    Beginner? Try LabVIEW Basics
    Sharing bits of code? Try Snippets or LAVA Code Capture Tool
    Have you tried Quick Drop?, Visit QD Community.

  • How to convert from bool to PMString Using InDesign SDK

    Hi,
         Do anyone know how to convert a datatype of boolean to PMString in indesign SDK.
    with thanks,
    Sheela

    I asked for the convertion of datatype. For eg: bool to String
    I rectified my problem in converting an integer to String using SDK.

  • How can I convert an array to a waveform in signal express

    hello friends,
    I have imported a labview VI in signal express. After processing the data in VI , I have stored the result in a form of array. Now I want to see this array in a form of waveform in signal express. How to go about it. 
    Vipin

    Sorry, this is the kind of thing that happens when you have been out for too long.
    Message Edité par chilly charly le 10-22-2006 11:09 AM
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    array%20to%20image[1].png ‏3 KB

  • Converting Date to a calender and vice vera

    Hi
    i've a Date object which i need to add a Day to and than convert it back to a Date object. i need the use the Calendar.add() method but i dont see any method of Date that returns a Calendar.
    i wish to do something like this :
    Calendar c = Date.getTime();
    c.add(day);
    Date plusDay = c.getDate();Thanks
    D

    You use the somewhat misnamed setTime and getTime methods of the Calendar class for that - as:Calandar c = Calendar.getInstance();
    c.setTime(new Date());
    c.add(Calendar.DATE, 5);
    Date newDate = c.getTime();This would make a new Calendar, set its date/time to the current date, add 5 days to it and then get its date/time to the "newDate" Date.
    Hope that helped
    Lee

  • Decimal format time value to convert into time (hr:min:sec)value in a graph

    I need to develop a graph in WAD, in BW7. In the graph the value must be showed as HR:MIN:SEC, which I cannot get it right.
    The keyfigure value  carries the duration(hr:min:sec) in decimal format.  In the query, I use this keyfigure for calculation. To get the time broadcasted for a week range. I get the total duration (say 507835.000). Now I need to convert this value back to hr:min:sec. I use the below formulas to get the hr, min, sec.
    D = 507835
    Val1 = D/3600
    Val2 = Frac(val1)
    Val3 = Val2 * 60
    Val4 = frac(Val3) * 60
    Hr = Val1 – Val2
    Min =  Val3 – frac(Val3)
    Sec =  Val4
    In another formula in the query I add Hr + Min/100 + Sec/10000 to get hr.minsec format.
    When I do an average on count of weeks,  this doesn’t round off correctly.
    I tried to also use the Data function TIME() which when the time is > 24 hrs changes the value.
    Lets say if it is 39:00:00, it shows value as 15:00:00 instead of keeping the value 39:00:00.
    When I used this value in the graph it did not show the HR:MIN:SEC values in the value axis instead  it showed 0.0, 0.1,….1.0. Bcoz of this the graph is blank.
    Can anybody help me to resolve this problem.
    Thanks alot
    Anima

    I checked SU01 and didn't see anything there to customize...
    In my workstation, control panel / regional and languages settings / tab regional Options / customize; my time format is HH:mm:ss; the HH has to be in capital letter to display the time in 24 hour...
    but this is strange anyway... are you reporting with web frontend or excel?

  • Is it normal for a waveform graph to truncate arrays of values that are longer than others when displaying multiple waveforms on the same graph?

    I am reading back values of several waveforms that were saved to disk using the write to spreadsheet vi. Some of the data sets are longer than others eg. 35 seconds vs 45 seconds. All have the same sample rate.
    See the code segment below. If I select the larger files first then all the data will show. If I select a smaller file first the larger ones will be truncated to the size of the small file. I am using LV 7.0.
    Attachments:
    codesnippet.vi ‏41 KB

    I needed to make some grammatical/ nomelclature changes, But, Could not edit the previous post.
    so posting again
    "Thats because you are inserting into an array of a predefined size.
    For ex,
    When you try inseting a 1D array 'A' of 50 elements as row 1 of a  2 D array of 40 elements(in row 0 ), only only the first 40 elements will get insetred into 2 D array. You lose the last 10 elements of array 'A'
    To avoid this, I suggest you use XY graph( of course you have to create an x axis with the index of each element in the inserted array and plot on xy graph).
    Any doubts, do get back"
    regards
    Dev

  • How do I read a waveform file in a graph can pause it and analyze it completely?

    Eu gostaria de ler um arquivo em um gráfico e poder parar e analisar como um historiador

    reposted here: http://forums.ni.com/t5/Discuss%C3%A3o-sobre-Produtos-NI/Ler-arquivo-de-onda-por-completo-j%C3%A1-sa...

  • How can I convert a continuous waveform to a discrete waveform in Labview?

    Please see the attached picture for reference, since I am not sure if I expressed myself correctly in English. My current waveform looks like the gray waveform, and I would like to convert it to the red waveform. Can anyone tell me how to do this in Labview? Thank you for your help!
    Attachments:
    picture.doc ‏254 KB

    GerdW wrote:
    Hi Laura,
    next time you should attach real pictures like PNG...
    You could use a combination of Quotient&Remainder with Multiply to get your desired "discrete" waveform!
    Dividing and multiplying will reduce the data to the nearest multiple of 5, but the red line shows that the data is not discretised in the y domain but instead in the x domain, ie the time domain has been chopped.
    To achieve this it seems you need to be selecting every nth data point, which is similar to downsampling your data. You can achieve this with the Align & Resample Express VI
    http://zone.ni.com/reference/en-XX/help/371361J-01/lvexpress/align_and_resample/
    Thoric (CLA, CLED, CTD and LabVIEW Champion)

  • How do I convert Spreadsheet file to Waveform for off-line analysis?

    Using v6.1
    I have multiple column data in an xls file obtained from third party DDE write. Each column contains data pertaining to one process variable. Does not include timestamp, however, data sampled at specific frequency of 10hz. I wish to convert the column data to waveform and perform Spectrum and cross correlation analysis to determine source of process variations.
    How do I read the spreadsheet file and produce waveforms for analysis using the built-in analysis tools?
    Thanks!

    Save the XLS file as a CSV (Comma Seperated Values) file. Then read the CSV file into LabVIEW using "Read From Spreadsheet File.vi" -- make sure to set the "delimiter" input to a comma (","). Index out columns of data using the "Index Array" function, and then build a Waveform and set the dt. Attached is an example.
    -Jim
    Attachments:
    CSV_2_Waveform.vi ‏36 KB

  • Comment transférer les vidéos iPhone vers PC?

    Bonjour,
    J'ai un probleme avec itunes je n'arrive pas a transférer les film ou vidéo mon iphone vers ordinateur , je convertie les video en mpeg-4 puis j'arrive a les transferer vers mon iphone ,en revanche pas de souci pour les musiques ! faut il faire une manoeuvre speciale pour les video?

    Macojasen wrote:
    Bonjour,
    Vous ne save pas comment transférer les fichier de iPhone ver PC? C'est un bizere question. Très bizare, très facile je pense.  OK, si vous ne savez pas toujours, je pense vous pouvez utiliser les logiciel pour vous aider, et je crois qui est le plus facilement pour vous.
    Vous savez les logiciels? Par example: transferer photo iphone vers pc
                                                              transferer video iphone vers pc
    Bonne chance mon ami
    j'ai vu ce logiciel et ses tutoriel, c'est bien , je pense qu'il est la bienne façons

  • Extract Range of Data / Waveform Zoom

    I have an NRF recording file with several channels. What I need to do is visualize the data and then extract a small part of the waveforms into a TDM or Matlab file. I actually managed to get all this done in DIAdem, but in a most cumbersome way:
    1) Import NRF file into the Data Portal using the DataPlugin
    2) Convert all signal channels to Waveform channels (using the function in the ANALYSIS module)
    3) Display the waveforms in the VIEW module
    4) Zoom downto the sample level in order to figure out where to start and stop the extraction
    5) Write down the start/stop x-coordinates (i.e. XStart, XEnd)
    6) Switch to the ANALYSIS module and generate a numeric channel with "First value" = Xstart, "Last value" = XEnd and "No. of values" = (XEnd - XStart)/SampleTime
    7) Use "Linear Mapping..." to extract the desired data
    8) Convert the extracted data to a waveform channel
    9) Export data to desired file format
    Now for my questions:
    * I'm using DIAdem 10.0 (Base Edition) and would like to know if there is not a much simpler way of getting this job done, i.e. selecting two points on a waveform, click one button and get the data between those points as a new waveform in the Data Portal (ideally for several waveforms in parallel)
    * Isn't there any way of zooming out one step in the waveform viewer? I only found zoom on/off which is a rather crude way for navigating)
    * Are there any news regarding the topic in the thread "Selecting a range of data from a file" (last posts date back to February 2005)
    Any help is greatly appreciated. Thanks

    Hi,
    * How can I run a VBS script with my Base Edition: the whole Script feature is disabled, but I was under the impression that I can run scripts (just not edit/debug)
    ... with an Link on the Desktop from your DIAdem. In Properties of this Link, you can set the Parameter:
    "DIAdem.exe" "/cScriptStart('MyScript')"
    ... with the start Script in every Module in DIAdem. Have a look at the Screenshot.
    * Isn't there any way of zooming out one step in the waveform viewer? I only found zoom on/off which is a rather crude way for navigating
    ... I´m sorry Zoom out isn´t anywhere! But you can make it like the second picture. With the upper Graph, you an control what you see in the second Graph. Zoom In/Out, no Problem
    * Also how can I precisely (down to the sample level) place the two band cursors? Using the different zoom modes I manage to do it for one of the two cursors, but not the other one.
    Sorry, I don´t understand your question! Perhaps you can precisely set you Cursor with the Coordinat Window? Have a look!
    Best regards
    Alex
    Attachments:
    Start Script.gif ‏6 KB
    Zoom.gif ‏55 KB

  • Ver 1.4.1 "Unknown error" + refusal to export to external editor.

    I have encountered the following and have sent a 'BUG' report to Adobe concerning it, as follows.
    ******BUG******
    An "An Unknown error has occurred" report has appeared on many photos. It is then not possible to export these to an external editor (including Photoshop Elements 3).
    I suspect that this error occurs on the files that have been converted to DNG since updating to LR vers. 1.4.1
    I am going to (attempt to)revert to vers. 1.3 until vers. 1.4.1 settles down!
    I am using Windows Home edn. (up to date)

    PLEASE READ THIS !
    Following your question, Don, I did a spot of thinking and checking. I have discovered that I actually re-installed the 'old' version of LR 1.4, that is vers. 1.4 itself and not the new 1.4.1. The error disappers with the latest version !
    I'm very sorry if I have wasted your time with this Don and Lee Jay.
    Gavin

  • Converted pdf has added characters into headers

    Hello , can anyone help.
    I have converted a Windows 2003 file to pdf (ver 9 Pro) via the tool buttons in Windows.  The converted pdf file has now added characters to my header files. There are no formatting marks/characters in word.  Whether tagging is used during converting or not does not matter.
    Should read as follows
       Analog Input Configuration                                 Configuration
    Now Reads as
       27BAnalog Input Configuration                         3BConfiguration
    If anyone has any ideas that would be great -  Thank you.

    As I recall, this is a setting in how you are printing out from WORD (a word option). The extra characters are related to the formating and it is a selection in word as to whether these are visible or not. There was a post about 6-12 months ago on this issue.

Maybe you are looking for

  • Error-BOM is not valid

    Hi all, i am creating a BOM with item & sub item . i am getting the error like BOM is not valid. i am giving my coding below.plz suggest where i am doing mistake. it's urgent. can u plz give some sample coding where sub-item will be there in that BOM

  • Need help with **** Invalid Cursor State ****

    Hi, can someone tell me why am i getting this error.... //******java.sql.SQLException: [Microsoft][ODBC Driver Manager] Invalid cursor state Any help is greatly appreciated..... Thanks in advance. //***********this is the output on servlet side******

  • Adding photoshop .gif animation files into iweb page?

    I recently learned how to do some simple animation in Photoshop. I can save the files as a .gif or a .htlm file. Does anyone know how to load them into a page so the animation plays on a loop like it is suppose to?

  • Material Stock revision no wise

    Hi, I need to maintain a part no. with revision in SAP. Stock for these part nos. with revision to be maintained in SAP. I will take an example and explain, say for a part no: 5213066 Part No.         PartDesc.         Revision   Stock 5213066       

  • TransformAround between images

    Hi,   I am using the TransformAround to retain the previous zoom pinch position. This works well when there is a single image. In my case, After zooming, I need to change the image. For ex., user sees a small map image. He zooms. It becomes a detaile