Equivalent de la fonction plot (Matlab) sur Labview

Bonjour,
Je suis débutante un Labview et j'ai un petit problème :
Dans mon VI il y a une partie Matlab qui trace 4 cercle :
for m=1:4
  xe(m,: ) = R(m)+cos(alpha)*xc(m);
  ye(m,: ) = R(m)+sin(alpha)*yc(m);
end
Si j'écris : plot (xe(m,: ),ye(m,: )) dans la partie Matlab, quand je lance mon VI il me trace bien 4 cercles dans une nouvelle fenêtre.
Maintenant, j'aimerais que mes xe et mes ye (mes cercles) apparaissent sur ma face-avant et non dans une nouvelle fenêtre. Pour ça j'ai essayé d'utiliser Graph XY mais ça ne fonctionne pas (je pense que c'est parce que xe et ye sont tous les 2 en 2D).
J'aimerais donc trouver l'équivalent de la fonction plot de Matlab mais sur Labview. Quelqu'un peut m'aider ?

Voilà ce que j'ai tenté de faire dans un premier temps pour afficher mes cercles dans un graph ( en PJ):
(le but final étant de relier mes cercles à la place de sub_ed2)
en PJ, il y a aussi l'affichage de mes cercles avec la fonction plot de Matlab
Pièces jointes :
pb labview2.png ‏248 KB
pb labview2-bis.png ‏6 KB
pb labview2-biss.png ‏32 KB

Similar Messages

  • Affichage d'une image traité par matlab sur labview

    Bonjour!!
    je veux faire un traitement d'image avec matlab et afficher les resultats sous  Labview . j'ai essayer la formula node de matlab dans la palette mathematics  mais l'affichage se fait toujours sur matlab comment je peux l'afficher sur labview ??  
    vous trouver ci-joint le programme utiliser .
    % Load jpeg files
    orgImage = imread('Pixel.jpg', 'jpg');
    figure(1); imshow(orgImage);
    % 2D FFT
    fftImage = fftshift(fft2(orgImage)); % 2d fft
    ampImage= abs(fftImage);
    figure(2); imshow(ampImage, [0 10000 ]);
    % Convolution (low-pass filtering)
    filter = fspecial('gaussian',[10 10], 4); % gaussian kernel
    filterImage = conv2(orgImage, filter); % convolution
    figure(3); imshow(filterImage, [0 250]);
    % 2D FFT of filtered image
    fftFilterImage = fftshift(fft2(filterImage));
    ampFilterImage= abs(fftFilterImage);
    figure(4); imshow(ampFilterImage, [0 10000 ]);
    Attachments:
    1335097296331.jpg ‏59 KB

    Hello aziz-be,
    You may find quicker responses in the french forum. 
    http://forums.ni.com/t5/Discussions-de-produit-de-NI/bd-p/4170
    Regarding your question.  The Matlab Scipt Node uses activeX to access an api that calls into the Matlab engine.  Thus any figure generation would occur on the Matlab side of things.  What you could try doing is converting the figure to an image, converting the image to an array, and bringing that array into labview and converting it into a LabVIEW image type which you could then display inside of LabVIEW.  This is a rather convoluted way of displaying a figure on the front panel inside of LabVIEW though.  You may find it much easier to do what you are trying to accomplish with the MathScript Node rather than the Matlab Script Node.
    figure (MathScript RT Module Function)
    http://zone.ni.com/reference/en-XX/help/373123B-01/lvtextmath/msfunc_figure/
    NI LabVIEW MathScript RT Module
    http://www.ni.com/labview/mathscript/
    David A
    National Instruments
    FlexRIO Product Support Engineer

  • Utilisatio​n des fonctions trigo sur labview

    Bonjour,
    je fais de l'acquisition de données sur labveiw et je suis encore débutant!! j'ai un problème avec l'utilisation des fonction trigonométrique sur labview car ca me renvoie tout et n'importe quoi. j'ai fait un simple VI pour vérifier le fonctionement de la fonction sinus et arcsinus et quand j'entre par exemple j'entre la valeur 30 ca me donne en sortie du sinus -0.98 alors qu'on sait tous que le sin 30°=1/2  et pire encore quand je reprend ces -0.98 que j'entre dans la fonction arcsin ( la réciproque) je n'obtiens plus les 30 de depart mais -1.42 :/ j'aimerais savoir savoir le truc que je ne capte pas. Car pour moi tous ces résultats sont illogique!!!
    Merci 
    Résolu !
    Accéder à la solution.

    Bonjour,
    Il faut utiliser des angles en radians.
    Cordialement,
    Micaël DA SILVA

  • Traité une image par matlab script sur Labview

    salut!! j'ai un programme Matlab qui fait le traitement d'image , je veux l’exécuter sous Labview et recevoir le resultas sous Labview auss . je sais pas comment faire la conversion Array to image si quelqu'un Peut m'aider Merci !!
     ci joint le programme utilise 
    Attachments:
    Matlab script.jpg ‏59 KB

    Hello !!
    sorry for being late in my answer , I had to finnish other work!! and thank you for answering 
    here are the uses of  the functions that you asked me,   from the help of Matlab !!
    IMFILTER N-D filtering of multidimensional images.
    B = IMFILTER(A,H,OPTION1,OPTION2,...) performs multidimensional
    filtering according to the specified options.
    Options are:
    'circular'        Input array values outside the bounds of the array are computed by implicitly assuming the input array is periodic.
    'conv'            IMFILTER performs multidimensional filtering using convolution.
    DECONVWNR      Deblur image using Wiener filter.
    J = DECONVWNR(I,PSF)   deconvolves image I using Wiener filter algorithm,
                                             returning deblurred image J. The assumption is that the image I was
                                             created by convolving a true image with a point-spread function PSF and
                                             possibly by adding noise. The algorithm is optimal in a sense of least
                                             mean square error between the estimated and the true images, and
                                             utilizes the correlation matrixes of image and noise. In the absence of
                                             noise, the Weiner filter reduces to the ideal inverse filter.
    Finally as you can see in the archives joined to this message , the results of Matlab and Labview are different , so i think that the problem is with the conversions of the type inLabview  from image to array and array to image where i lose information of the image.
    have a nice day !! 
    thank you !!
    Attachments:
    matlab vs Labview results.zip ‏2487 KB

  • MATLAB and LabVIEW Communication Optimal Performance

    I have tried my own code,  searched through forums and examples to try and figure out best method to communicate between LabVIEW and MATLAB.  Most of the information I found was over a year old and I was wondering if there was a better current solution.  My goal is to work in LabVIEW to collect the data, process in MATLAB and return the results to LabVIEW.  I have encountered some difficulty in my search and before I delve even further in to one in particular, I was wondering if anybody had an optimal solution with this communication protocol or solutions to my errors encountered thus far.
    I have looked at the following methods.
    1)TCP/IP and a very good example found here: http://www.mathworks.com/matlabcentral/fileexchange/11802-matlab-tcp-ip-code-example
    When I try to adjust even the example and communicate for my own purposes I get the following errors
    Error 63 if MATLAB server not running
    Error 66 occurs if the TCP/IP connection is closed by the peer. In this case, Windows notices that no data is returned within a reasonable time, and it closes the TCP/IP connection. When LabVIEW attempts to communicate after Windows closes the connection, error 66 is the result. 
    However, the example itself works perfectly and does not get these errors
    2)Math Script Node, works but the post below states that MATLAB Node is faster.
    "computing fft of a 1024x1024 matrix ten times (attached code). Result is that Matlab node version takes 0.5s versus 1.6s for Mathscript node version."
     http://forums.ni.com/t5/LabVIEW/Why-are-mathscript-performances-much-below-matlab-s/m-p/2369760/high...
    3) MATLAB Node, which states it uses ActiveX Technology seemingly works well, but loses time for data transfer.
    4) Trying to use the ActiveX functions or if there is other Automation potential.
    5)Other solutions that I have not found that might be better suited.
    Thank you for any help or suggestions in advance. 

    Barp and Mikeporter,
    Thank you for your assistance:
    The reason I need to do the processing in matlab is as you mentioned the processing script is coming from another person who has already developed it in matlab.  I almost have to treat it as a black box.
    The TCP/IP method was interesting is that none of the errors show up when I run the example but if I try to modify it in a new VI I get the errors.
    I have attached a simple program that just has a basic butterworth low pass filter I am trying to confirm if it works in the Matlab node.  I have done other simple codes which work, and this one does not seem the implement  the appropriate filter.  The LabVIEW signal and LabVIEW filter seem to work at the default values (but not if I change sampling rate) for the Simulation of signal, Matlab signal and Matlab filter work, but the Labview signal processed in Matlab is not working...
    Ideally it would be bandpass filtered (0.1-30) at sampling rate of 256 Hz and further processed from there, but I can't even seem to get low pass to work in the matlab to labview communication.
    Any help would be greatly appreciated.  Once I have that working I will have more of an idea of the constraints of the actual processing Matlab Code I will be using.
    Thank you again.
    -cj18
    Attachments:
    labview_matlab_filter.vi ‏70 KB

  • Script Matlab In Labview

    Buongiorno a tutti,
    sono nuovo di questo forum. Sono un tirocinante presso l'università di Napoli Federico II e sto familiarizzando con l'ambiente LabView. Mi è stato assegnato il compito di eseguire uno script Matlab mediante LabView (le macchine su cui lavoro possiedono la versione 7.0 e 8.5). Se mi sapete dare qualche informazione ve ne sarei grato o anche qualche link visto che sto agli inizi.
    Saluti.
    Sorry for my english...

    Sorry, can you move this question to italian community?
    Thanks
    Sorry for my english...

  • Récupération des données à partir d'une carte mémoire SD sur LABVIEW

    Salut tout le monde, 
    je suis très heureuse de devenir un membre dans ce groupe. bein, je suis entrain de faire un projet qui consiste à enregistrer des données sur carte mémoire sd à partir d'un microcontroleur puis récupérer ces données sur PC. Mon problème c'est que je veux visualiser ces données sur une interface graphique sur LABVIEW mais dommage je suis débutante sur LABVIEW et j'arrive pas à trouver une solution. Quelqu'un peut m'aider??

    If Google translate is correct, you are trying to log data to a SD card and figuring how to see it in on graph. Since you are getting started with LabVIEW I would suggest using the Write To Measurement File and Read From Measurement File. As shown in this tutorial, you only need to specify the format and file path. I would encourage you to search for code and tutorials about this VIs for more reference, like this one. I hope this helps.
    Alejandro | Academic Program Engineer | National Instruments

  • Bonjour, je n'arrive pas à désactiver la fonction Recto Verso sur Acrobat Pro XI, Merci

    Bonjour,
    Je suis abonnée a Adobe Acrobat Pro XI, et j'aimerais imprimé un pdf en recto uniquement.
    Or je n'arrive pas à désactiver la fonction Recto Verso sur Acrobat Pro XI, Merci

    Hi lazizabelle
    Si vous avez acheté souscription d'acrobate, alors vous devez vous connecter avec votre ID Adobe et il sera activé.
    Sinon, se il vous plaît contacter Service clientèle d'Adobe.

  • Waveform graph plot legend in labview 8.5 won't respond to arrow keys?

    I heard labview 8.5 fixes most of the problems that plague 8.2, so I recently installed it to try it out and see if it is worth the effort of another upgrade.  Messing around today, I found an issue that wasn't related to the installer itself.
    The plot legend on a waveform graph doesn't appear to respond to arrow keys for precise placement.  It doesn't matter whether auto-size plot legend is turned on or off.  When I want to place a plot legend very precisely, just like with any other labview control I like to use the arrow keys to get things perfectly aligned.  I want to make the plot legend perfectly in the corner of the graph but its very hard to get it placed right with just the mouse.  In labview 8.5 it seems like plot legends no longer respond to arrow keys.
    Can anyone confirm this or know of a way to precisely place the plot legend in labview 8.5?
    -Devin
    I got 99 problems but 8.6 ain't one.

    Ben,
    I checked the snap to grid hypothesis. Even when activated the arrow keys still allow an accurate positionning of the objects at pixel level.
    That's so nice that I changed my setup. I now have a reasonnably large spaced grid (50 pixels) with an invisible grid (contrast adjusted to zero). That should make object positionning and dimensionning much faster than before.
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • Réception sur Labview de données par Liaison série depuis un PIC18F458

    Bonsoir à tous,
    Dans le cadre d'un projet ingénieur, j'ai dû développer une application sous un PIC18F458. A présent, j'ai des mesures que je souhaite pouvoir afficher sous Labview par la liaison série du PIC.
    J'ai donc utilisé les exemples données sous Labview (8.4), et cela me renvoi quelques résultats... Le problème est que dans l'exemple, l'afficheur renvoi une chaîne de caractère. Pour ma part, ce sont des mesures que je vais afficher, donc j'ai modifier cet partie en ajoutant une convertion en "tableau d'octet" pour pouvoir commencer a visualiser quelque chose de cohérent.
    N'y a t-il pas un autre moyen que d'afficher un tableau d'octets?
    De plus, je souhaite envoyé plusieur mesures différentes sous labview, je souhaiterais savoir comment les réceptionner correctement, comment savoir laquelle est ma mesure de tension ou de courant par exemple?
    Merci d'avance de votre temp,
    Bien cordialement,

    Merci,
    J'ai travailler durant toutes la journée sur la mise en protocole pour l'envoi de différente valeur sur labview, mais j'éprouve des difficultés à le faire.
    Tout d'abord, sur la partie PIC, comment définir ce protocole? (Envoi de plusieur trames consécutives, avec un identifiant de départ par exemple?)
    Et sur labview, comment réussir à découper ces trames et savoir quel est la bonne?
    Si quelqu'un aurais des idées, cela m'aiderais beaucoup.
    Ci-joint ma fenêtre labview.
    PS : mon code PIC simplifié est le suivant :
    OpenUSART (USART_TX_INT_OFF & USART_RX_INT_OFF & USART_BRGH_HIGH & USART_EIGHT_BIT & USART_ASYNCH_MODE, 64);
    while(1)
    while(BusyUSART());
    WriteUSART(totalSums); //variable totalSums
    delay(); //(0,5 seconde)
    while(BusyUSART());
    WriteUSART(accumulator); // variable accumulator
    Merci d'avance,
    Pièces jointes :
    Labview.PNG ‏78 KB

  • Ejecutar m files de matlab desde labview

    Hola!
    Me gustaría saber cmo es posible ejecutar m-files de matlab desde Labview, es decir llamar desde Labview que se ejecute un m-file ya creado y poder recuperar la información resultante como puede ser un conjunto de matrices. No se si puede hacer directamente con el labview o hace falta alguna toolkit concreta.
    Muchas gracias

    Larson09
    Si tiene el paquete completo o profesional de Labview entonces tiene el script de Matlab ( lo puede encontrar en paleta de funciones>>Análisis>>Matemáticas>>Formula>>Script de Matlab.
    Para que le funcione este script debe tener instalado matlab, y dentro del script puede ejecutar directamente código de Matlab.
    Espero que esto le ayude
    Atentamente
    Belens

  • Camera kinect myRIO sur labview

    j'ai un problème au niveau de l'utilisation d'une camera kinect avec la carte myRIO 1900 sur LABVIEW . lorsque j'envoie le code a la carte myRIO des erreurs s'apparaissent.j'aimerais bien avoir un support qui me guidera pour bien utiliser la camera kinect avec la carte myRIO. merci

    Bonjour,
    Aviez-vous essayé ces liens :
    https://decibel.ni.com/content/docs/DOC-31239
    https://decibel.ni.com/content/docs/DOC-34889
    Cordialement
    Samuel G. | Application Engineer Team Leader
    Certified LabVIEW Developer
    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;}
    Été de LabVIEW 2014
    12 présentations en ligne, du 30 juin au 18 juillet

  • Compteur décompteur sur labview pr signal triangulaire sur carte PCI-6024E

    Nous savons qu'il faut utiliser un compteur décompteur pr former un signal triangulaire sur la carte PCI-6024E, existe-t-il un vi sur labview préréaliser qui nous permettrai de générer un tel signal. Ou alors pourriez vous nous expliquer comment réaliser ce vi.
    meci

    Il exitse bien un VI qui permet de générer des signaux triangulaires.
    Il se situe dans la palette Analyse >> génération de waveforms >> waveform Triangulaire.
    Bonne continuation

  • Driver d'une table traçante sur Labview

    Bonjour,
    je suis à la recherche de n'importe quelle table traçante ayant driver sur labview, en fait je travaille sur un projet pour commander des instruments de mesure dont les reponses seront simulées sur une table traçante, alors j'ai besoin du driver de cette dernière.
    j'ai cherché sur net, labview, mais en vain.
    si quelqu'un s'il vous plait, pourrait m'aider...

    Merci beaucoup cher Z'Atari,
    Une table traçante est un outil de
    dessin industriel. Elle se compose d'une table horizontale et d'un porte-stylo
    motorisé, commandé par ordinateur, tu trouveras ci-joint une photo d'une table traçante, bein ce que je désire faire est de commander une table par ordinateur sous labview, mais j'ai pas trouvé de table commandable sous labview.c'est pour cela que j'ai besoin d'un driver comme si je comandais un oscilloscope,...je sais pas si je m'explique bien
    Attachments:
    table-tracante-xy-din-a3-100cms-49377n0.jpg ‏8 KB

  • Toolkit matlab avec labview

    bonjour à tous et merci d'avance ,
    je cherche un lien(ou bien une idée) pour télecharger le toolkitmatlab compatible avec labview 2011 (sinon 2009).
    l'objectif c'est que je veux transformer un code matlab vers labview.
    merci les ingénieurs du ni et tout les membres de forum.
    amicalement

    Hi khadija,
    You should be able to find the 2011 version of the mathscript-RT toolkit on ni.com/downloads. The download site has recently undergone a lot of changes and the search may not be up to speed yet. A direct link to the 2011 mathscript-RT toolkit is here: http://joule.ni.com/nidu/cds/view/p/id/2558/lang/en. 
    However, it sounds like you are using Matlab toolkits. The mathscript-RT toolkit re-compiles .m code into labview source code. However, the mathscript-RT toolkit will not work with any of the Matlab® toolkits, such as a vision processing toolkit. A list of commands the mathscript node can use is given here. 
    You also might try using the Matlab Script node, which is separate from the Mathscript-RT node, the Matlab Script node uses activex to call into the Matlab runtime engine. It should be able to utilize any toolkits that the mathscript-RT toolkit can't. However, the Matlab Script node will be slower and will require an installation of Matlab on each computer that your application runs on. 
    MATLAB® is a registered trademark of The MathWorks, Inc. Other product and company names listed are trademarks and trade names of their respective companies.
    Jesse Dennis
    Design Engineer
    Erdos Miller

Maybe you are looking for