Problema arduino y labview

Hola buenas tardes veréis, estoy utilizando el arduino como adquisición de datos y las tensiones que me llegan van de 0 a 10 V,
sin embargo, el arduino no me detecta mas de 5V en ninguna entrada analógica y en mi programa de labview no sube de 5 V las gráficas que me muestran las entradas(lógicamente).
Alguna idea de como puedo hacer que mi arduino detecte la evolución de 0 a 10V en los pines analogicos?(estoy utilizando el lifa_base en labview)

Estimado Sergiofefu,
Los arduinos regularmente trabajan con  senales de 5V en sus canales analogicos de entrada. Cambiando la senal de 'analogreference' puedes alterar el valor maximo pero no se recomienda ir a mas de 5 V. Por lo que la razon de que no puedes leer mas de 5V es que tu Arduino solo puede digitalizar 5V.
Espero que puedas solucionar este detalle. Te recomiendo un divisor de voltaje (son faciles y rapidos de implementar).
saludos
Erwin Franz R.

Similar Messages

  • Problem on WinXP / Labview 6.1 with VISA (serial port)

    There is a problem on WinXP / Labview 6.1 with VISA which i use to poll the state lines of the serial port. The only functions that i use are "VISA Open", "Find Resource", line state properties and "VISA close".
    On my own machine (WinME) it works fine as a standalone application (with runtime engine in the same direction), even if i rename the Labview directory so that Labview is not found.
    From my VXIpnp directory i deleted all but these files:
    directory "Win95",
    subdirectory "Bin" containing "NiViAsrl.dll",
    subdirectory "NIvisa" containing "visaconf.dll".
    When shipping this to WinXP (and copying "VXIpnp" to the root directory), the serial port was not found, so i renamed the direction "Win95" to "
    WinNT", but this did not work also.
    I installed the VISA server, although it seems not to be required -- no result.
    Final question:
    What must i do for distributing the program as a standalone application for all windows platforms?

    Hey Joachim,
    In order to create an installer that includes the VISA Run-time engine for serial IO you will have to purchase LabVIEW 7.x. See screen shot. This packages a small compact version of the run-time that can only be used for serial, but it takes up much less space. The installer that I created has my application, the LV Run-time, and the VISA run-time and it is about 26 MB.
    That is much smaller than if I had to include the 32 MB LV 7.1 run-time and the 14 MB VISA run-time separately. It would have been even smaller if I would have uncheck some of the items that I wasn't using.
    -Josh
    Attachments:
    advanced.JPG ‏31 KB

  • Arduino con LabVIEW

    Hola, deseo saber si alguna persona me puede contestar por que no puedo cargar LVIFA_Base.pde en mi tarjeta Arduino Duemilanove.

    Luisatilio
    Partiendo de la base que ya tienes instalado Labview y el IDE de Arduino en el mismo computador.
    Ya se que es lo que te pasa. Primero que todo lo que me enviaste es solo el codigo de programación del arduino, en ese mismo codigo arriba donde dice #include, estas agregado bibliotecas, eso significa que estas incluyendo en tu codigo una biblioteca de arduino que es más codigo pero que esta dentro de un archivo y eso te permite ahorrarte el escribir funciones y declaracion de variables que alguien más ya las hizo, ahora las bibliotecas wire.h spi.hp y servo.h probablemente las tengas, no lo sé, pero tendras que meterte a la carpeta de C en windows donde tienes instalado el arduino y ver la carpeta libraries ahi es donde se pegan las bibliotecas que muchas de ellas las descargas de internet y luego de pegarlas, reinicias el IDE de Arduino y ahi puedes llamarlas desde el codigo que este escribiendo en el arduino mediante #incluye.
    Ahora con respecto a la biblioteca labviewinterface.h, esta es la biblioteca que trae todas las funciones y variables que labview requiere para comunicarse con el arduino, esta biblioteca no la tienes instalada por eso en el mensaje de error te aparece que la variable no fue declarada y eso sera con todas las variables que estan en la biblioteca labviewinterface.h ya que las estas llamando pero no estan declaradas por que no haz instalado la biblioteca. 
    Ahora, todas la bibliotecas que se utilizan para comunicar el arduino con labview junto al codigo que es el mismo que tu me mandaste vienen en un archivo el cual se instala automaticamente una vez que hayas descargado el "labview interface for arduino" que es un toolkit gratuito para labview. Estes toolkit para Arduino se baja con un software de National Instruments que se llama "VI package manager" y el cual se descarga desde http://www.ni.com/white-paper/11611/en  
    Una vez que hayas instalado el VI package manager, instalas el "labview interface for arduino" con esto ya tienes la mitad del trabajo hecho. 
    Ahora abres el IDE de Arduino y le pones open para abrir un proyecto y vaz a la carpeta de esta ruta en windows C:\Program Files\National Instruments\LabVIEW 2012\vi.lib\LabVIEW Interface for Arduino\Firmware\LIFA_Base 
    Con eso ya tendras listo el codigo para subirselo al arduino que este utilizando, y debes hacer las modificaciones correspondientes en el codigo de arduino de acuerdo al arduino que quieras utilizar. 
    Luego de ello te vaz a Lbview y programas lo que quieras y podros controlar el arduino desde labview.
    Para que te quede más claro sigue este video de youtube http://www.youtube.com/watch?v=RGRhIQneO6w
    Saludos y espero que te ayude mi respuesta
     

  • Max6675 for k-type thermocouple temperature reading using arduino and labview

    Hi; I am trying to measure temperature using arduino mega +labview 2013 +k-type thermocouple+max6675.
    I am using LIFA interface.
    The circuit digram  and labview file is attatched
    I am stuck on spi read/write palet. How to read 12 bit max reading and convert it to temperature in degree celcious?
    Max6675 produce output in 12 bit, and measure 0-1023 centegrade. According to this the
    Temperature (C0)= max6675 output (12bit)* 0.25. how to set this formula in labview?
    Pin connections are
    Max6675 breakout board pins
    Arduino Maega Pins
    GND
    GND
    VCC
    5 VOLTS
    SO
    50
    CSK
    52
    CS
    12
    Attachments:
    max6675.vi ‏38 KB
    max6675 vi diagram.png ‏42 KB

    Hi Saeed780,
    We have a discussion board specifically for questions about using the LabVIEW Interface for Arduino. Can you please post your question to the Arduino board?
    www.ni.com/arduino
    Catherine B.
    Applications Engineer
    National Instruments

  • Acquisition température capteur ds18b20 sous arduino via LabView

    Bonjour,
    cela fait déjà quelques jours que je me casse la tête sans pour autant avoir de solution à mon problème. Je cherche à acquérir la température de plusieurs capteurs ds18b20 via LabView (graphes principalement). J'utilise le toolkit Arduino on LabView mais je n'arrive pas vraiment à bien l'utiliser. Le principe de ce module est bien de permettre de ne pas toucher à une seule ligne de code ? Est-ce que je peux lire toute une chaîne de capteur via LabView ?
    Par ailleurs je suis en train de consulter un exemple de la fonction "thermistor Read" mais je m'aperçoit que l'entrée de cette fonction est analogique, alors que mes capteurs sont digitaux, y a t-il un équivalent de cette fonction qui me correspondrai ?
    Même un petit morceau de code me serait profitable histoire de savoir par où commencer
    Merci d'avance pour vos réponses,
    cordialement,
    Cyril Milon

    Bonjour Lykaa,
    Avez-vous consulté le forum suivant ? : Arduino and Dallas DS1820 (one-wire)
    et posté sur la communauté en question ? : LabVIEW Interface for Arduino
    Voici également un lien qui pourrait vous être utile : How to use the DS18S20 and DS18B20 temperature sensors with Arduino
    Cordialement,
    Jérémy C.
    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;}
    Travaux Pratiques d'initiation à LabVIEW et à la mesure
    Du 2 au 23 octobre, partout en France

  • Programmer une carte arduino sous labview h

    j'ai la carte arduino pour l'acquisition des données je veux lire la valeur du Pin 7 et cette valeur c'est elle qui  va contrôler le event structure ç a d suite a cette valeur je veux soit lancer le GET Time on soit le Get Time off
    la newVal que j'ai doit se référer sur la valeur lue dans le Pin 7
    j'ai ci_joint une image pour bien comprendre 
    merci de vérifer et de m'apporter votre aide
    Pièces jointes :
    fgv_elapsedtime_format.vi ‏17 KB
    essai3.vi ‏33 KB
    sans lifa.vi ‏27 KB

    Bonjour habibahamri,
    Merci de ne pas prendre les gens pour des columbidés. 6 posts pour le même sujet c'est (vraiment) beaucoup. C'est de plus complètement contreproductif dans la mesure ou tout le monde ne lis pas tous les posts et les réponses peuvent se superposer.
    Les sujets incriminés sont:
    http://forums.ni.com/t5/Discussions-au-sujet-des-autres/programme-labview/td-p/2415808
    http://forums.ni.com/t5/Discussions-au-sujet-des-autres/labview/td-p/2414336
    http://forums.ni.com/t5/Discussions-au-sujet-des-autres/labview/td-p/2414328
    http://forums.ni.com/t5/Discussions-au-sujet-des-autres/Re-programmer-une-carte-arduino-sous-labview...
    http://forums.ni.com/t5/Discussions-au-sujet-des-autres/Programmer-une-carte-arduino-sous-labview/td...
    De plus, quand on demande de l'aide, on essaie de se montrer poli: on dit bonjour dans son premier post et on remercie les participants qui prennent de leur temps pour aider (je fais notemment références aux réponses presque rudes formulés à Bastauss qui a essayé de vous aider en vous programment un VI d'exemple).
    Cordialement
    (signé le redresseur de tort)
    Florian Abry
    Application Engineer Group Leader
    NI Germany

  • Acquiring images from an Analog Camera using Arduino and LabVIEW

    Hi All,
    I posted this on the LabVIEW Arduino community but I am not sure it went through.
    Check out this project I have been working on for the last two weeks.
    It allows you to capture lowres/low bit depth images with arduino with LabVIEW (needs NI vision).
    Here is the link
    Feel free to use the code (it is all downloadable).

    Hello cagell
    I just wanted to exprees my thanks for sharing your awesome project with our community.  I am a huge analog video enthusiast myself.  All the best!
    Sincerely,
    Greg S.

  • How to enable 2 or more analog input pin in arduino uno labview simultaneo​usly for voltage analysis?

    Hi everyone,
    i am new to labview and using arduino uno board for measuring microwave analysis in my project. i want to measure the refflection coefficient by dividing two analog input received to arduino (Vref and Vin) to obtain so. problems come where i just can analyze only one analog input pin only. please, kindly helped to figure it out.i've try the others solution where i create two while loops for different analog pin. u can refer to my circuit in the attachment below.i really2 appreciate ur help, thank you.=)
    Attachments:
    reflection coefficient and Vswr.vi ‏665 KB
    front panel.PNG ‏66 KB
    block diagram.PNG ‏40 KB

    Try this if you have a POT around hook it up to the arduino than use the AnalogInSerial.pde and  load it to your arduino exit out of the arduino platform and  than try my VI see if this helps you.
    Harold Timmis
    [email protected]
    Orlando,Fl
    *Kudos always welcome
    Attachments:
    TalkToArduino.vi ‏28 KB

  • Problems with matlab labview interface

    I wrote a code to check the interface of Matlab and LabView. I am reading a matrix from a file and created two 1D subarrays using index array out of it. I am passing the subarray as input in the matlab script to calculate its length. With subarray 2 in the vi I am getting the result I expect. When I choose the subarray 1  as input to the Matab script, LabView crashes.
    Is there any problem with my code?
     

    There is no need to host files somewhere else.  Feel free to upload them to the forums and attach them to your post.
    Minor comments first.  Why are you re-reading your config file every 2 seconds?  Do you expect it to change?  If not then read it once and don't read it again.
    I think it would be best if you stopped when an error occured, you can do this by wiring an error to the Or going into the stop condition, or use the compound arithmatic with Or.
    But I think the major issue you have is that your Arduino reference can be wipped out if you do things wrong.  If your equal comparision is false you go to the false case, where you aren't passing the arduino reference.  So when you go to close you won't close your reference, and your hardware will still be open, and trying to run again will result in an error.  Similarly if your for loop runs for 0 iterations your reference is lost.  Attached is an updated version which has some of these changes.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.
    Attachments:
    Prueba 1 Hooovahh Edit2.vi ‏765 KB

  • A problem about calling Labview vi in VB

    Hi all:
    I meeting a problem about data transfer and parallel operation between VB and Labview.
    Actually, I want develop a VB program, in which, the Labview VI can be called and corresponding parameters can be transferred to Labview. and then, I also can operate my system by VB program at same time. something like parallel operation (VB and Labview program).
     But the question is :
    1.   If I use "Call" method of ActiveX in VB,  and the LabVIEW subvi is not stopped (for example, a loop structure), I can not do  parallel operation on VB program. The error message is "other application is busy" which is attached below. The sample codes is also attached.
    2.   I tried to use other methods like "OpenFrontPanel" and "Run", but I am not sure how to transfer the parameter??
    3.  Then I tried to use "SetControlValue" to set the parameters, but there is a error " := expected", which is very strange, because the statement  I wrote is followed with the help documents [ eg: VI.SetControlValue ("string", value)], why it is still need a "=" ??
    Does anybody know something about it? Thanks a lot
    Message Edited by hanwei on 11-07-2008 03:18 PM
    Attachments:
    vb_labview_error_message_1.JPG ‏14 KB
    VB_to_LV.zip ‏10 KB

    I sure hope OP has solved it by now.
    /Y
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • GPIB: I am having some problem in running Labview code properly.

    Hello,
    I have written a labview code to drvie my stepper motor (using GPIB function). This code is supposed to move
    the stepper motors and keep updating the current position of motors. I am having an unique problem. This code runs fine for trial no.1st, 3rd, 5th and so on. While it fails to update for trial no 2nd , 4th, 6th and so on.
    The main code is "motion_update_Final_Newport.vi". It will work for labview 7 as well as 7.1.
    You may not be able to run this code. However, you may be able to understand my error easily as I have figured out where is the error. The update is based on a function, which returns (string) 0 for motion not done and 1 for motion done. This value is diaplayed in "output 1" and works fine. However, "check 2" which is an indicator does not work for trial no 2nd , 4th, 6th and so on.
    If you go where I have "output 1", there is a while loop and "check 2" is an indicator for check. It remains on for trial no 2nd , 4th, 6th and so on.
    I am attaching the code and this is for ESP 300 motion controller Newport co. I am certain that some of you would be able to figure out the error without running the code.
    Thanx in advance,
    DushyantMessage Edited by Dushyant on 04-18-2005 04:43 PM
    Attachments:
    modified_Motion_Update_Final_7.zip ‏228 KB

    Thanks a lot for trying to help me.
    I am sure that I am not moving any subvi.
    Steps that I am trying to accomplish:
    (i) I am moving the stepper motors for a relative distance.
    (ii) Then I am trying to get the motor position after delay (ms) [defined in front panel].
    Now, how I am trying to accomplish:
    First outer stacked sequence:
    seq 0 of outer: This sets GPIB as controller in command (without this I was having trouble when I was combining this with photodiode code). Please avoid this seq.
    seq 1 of outer: The motor moves to certain relative distance. (I do not think that there is anything wrong here).
    seq 2 of sequence: This part does updates the motor coordinate after delay (ms). Inside this, there is a case structure to choose whether I want the update.
    If I want the update, then following steps take place inside the case structure:
    Inner stacked sequence:
    seq 0 of inner: [This is where I think that error is taking place] Inside this, There is a while loop which terminates when the "Motion Done?"
    function returns "1", else "0". Inside the flat sequence structure, first sequence "updates" the motor coordinate while second check
    whether the motion is done .
    Seq 1 of inner: Controller wait till motor stops.
    seq 2 of inner: The motor coordnate is updated for the last time.
    seq 3 of outer: It clears the GPIB.Message Edited by Dushyant on 04-19-2005 10:22 PM
    Attachments:
    Wait_Till_Motor_Stops.vi ‏13 KB

  • Problem stopping the Labview Starter Kit motors (huge offset?)

    Hi
    I implemented an algorythm for the Labview Starter Kit. It reads a map and navigates from the initial point to the goal. The Starter Kit only performs two movements: "go straight X mm", and "turn 90º left/right (the turning is made when stopped, like a rotation).
    The problem Im encountering is the turning. It uses a digital compass (CMPS09): when the robot needs to turn left/right, I feed the CCW Velocity of the motors (using the read/write FPGA functon) with +3.4 rad/seg and -3.4 rad/seg, into a timed loop.
    The condition to stop is simple: "if heading=desired heading for the actual turn --> finish loop and stop motors".
    Well, it happens that in the time window from calling the "stop motor" function, and the robot motors and wheels actually STOPPING, the robot travels 9-10 extra degrees!
    So, for example, I want the robot to turn from north (0º) to 90º. The CCW velocities are feed with +3.4rad/seg and +3.4rad/seg into a timed loop, and I checked that the timed loop finishes when the heading is 90º. But the final orientation of the robot is exactly 100º, because the motor seems to take a little time to stop.
    The deviation depends on the velocity of the motors, I was able to reduce it to 3/4 degrees using a turning velocity of 1rad/seg, but it has no use since it´s extremely slow and the motors works very badly (they dont even are able to maintain a constant speed in slower velocities).
    I tried to check the Starter Kit FPGA.VI but I fail to understand how the "stop motor" function works.
    I dont know if there is any way to correct or reduce the "stopping time" of the motors. If I correct the turning function to subtract 10º for every turnop before starting the movement, the algorythm works as long as I use the 3.4rad/seg velocity... but that solution is extremely shabby, and I dont think I cant say that on my Final Project! There has to be a way to improve it, isn´t it?
    EDIT: For the record, I tried several variations for the loop, and several timing, form us to ms, and I think that´s not the problem, because I wasnt able to get better resulsts at all.

    I did have similar problems and I figured all that I installed too many real-time components.  It might not be the case with yours but you might try.

  • Parameter passing problem between TS-LabView

    Hi
    I am getting crazy with this problem. Basically I have a vi, in which you can change some parameters of a step type. I put this step type into a seq, open the Edit substep (the problematic vi), and I can change some parameters, respectively: Compare, Command, Command_params and MasterData (see attached image). When I press the OK button in my "Edit" vi, the parameters are saved into the TS variables of my step type, without failure.
    The problem pops up only, when I push the CANCEL button, I expect that all the TS parameters keep the original value. This is the case...except one variable, called "Compare". All the others keep the previous values, so Command, Command_params and MasterData are ok. "Compare" is initialized to empty string :-(
    Originally "Compare" was a Boolean, it was always initialized to FALSE, when I clicked the cancel button.  I thought that is the problem.
    Then I changed it to Ring. It was initialized always to 0.
    Then I tried numeric, enum etc, always was initialized to 0, or in case of string, an empty string.
    Why is it so? I attached my vi, you can look into it.
    Attachments:
    params.jpg ‏42 KB
    Edit_APM_ATAPI.vi ‏222 KB

    Hi,
    In your first frame, you have connected all the other inputs to there respective outputs using local variables except for one, Compare and Compare out.
    Shouldn't you connect this together so the output picks up what you have inputed to the VI.
    What are you inputing into Compare, because if you are passing an empty string then that control seems to except the empty string, Even though you have the setting Allow Undefined strings disabled.
    I'm using LabVIEW 7.1
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Problems in using Labview DLL with TestStand!

    Hi,
    I tried to put the VI's to create a TCP/IP Connection, read/write Data to it and close it inside a LabVIEW DLL and use these functions with TestStand.
    The problem is to get access to the ConnectionID generated as TCP Network Refnum in LabVIEW.
    I don't know how to specify the prototype entry for this Refnum in LabVIEW and how to read it with TestStand.
    Another try to pass an ActiveXReference of SequenceContext and use the SetValIDispatch method to set a local variable (Type: ActiveXReference) to the returned ConnectionID of the TCPOpen.VI wasn't successful too.
    It seems to me that the connectionID isn't a normal ActiveXReference.
    Regards,
    Sunny

    Hi Sunny -
    You should treat this parameter as a pointer to an int when calling the DLL from TestStand (or any language like C or C++). Note that you can't do anything with the value outside of LabVIEW since it only has meaning inside of LabVIEW. You can only pass it around for use in other VIs you call from TestStand.
    Hope this helps....
    Kyle G.
    National Instruments
    Kyle Gupton
    LabVIEW R&D
    National Instruments

  • Problem with different Labview platform

    Maybe this issue must be address to NI.
    I have this library calling a register DLL. The purpose of the library is to convert a type of movie file from hard drive(*.mcf type) to image stream then to show and eventualy to save it.
    The DLL is designed by NAC camera designer, which is a high speed camera. The code is based on properties, methodes and events from DLL.
    Code works well in Labview 8.6.1, in Labview 11.0.1, Labview 12.0f3. Unfortunately code does not work in Labview 11.0.1f2 which happens to be the one I am developing my applications.
    I will post the code developed by NI Japan (camera also is designed in Japan) and the mcf file as well as the DLL which must be registered.
    The code is compiled in 8.6.1.
    Register first the dll then open the NAC MCFF Control_E.vi.
    Brows the mcf file
    Press Open button
    Slide the frames one by one for showing the images content of the mcf.
    If you want to open under other labview then 8.6.1 then copy the folder and run a mass compile under that version then open the same top vi.
    Please, show me what is different for different versions of labview then in my version does not work.
    Than you,
    Virginia
    Solved!
    Go to Solution.

    Just because it doesn't crash does not mean automatically that everything is alright. You just might be unlucky that the memory corruption does not happen in a vital part of the LabVIEW memory.
    Now, when loading your LLB in LabVIEW on my machine, the first indication that something is wrong would be the error message that C:\Windows\System32\gdi32.dll could not be found. And indeed this is a system DLL that should never be referenced by the full path but simply by the DLL name alone. So change the Library Name or Path in the CLN inside the nac_NI_BitmapRead.vi to just "gdi32.dll" (without quotes). And when you are at it, change the first parameter to be a pointer sized integer too, since this IS a pointer.
    Now look in the configuration dialog in the Function tab a bit further down and notice that the Calling convention is set to C. 99% of all Windows userspace APIs are really stdcall under Win32 and fastcall under Win64. A "bug" in LabVIEW versions before 2009 attempted to automatically fix wrong calling conventions from C to stdcall, based on certain naming attributes of the actually exported function in the DLL (and no, LabVIEW does not show those decorated names but the human readable name). The problem with this fix was that it did not allow for calling (admittingly seldom but nevertheless possible configurations) of DLL functions that happen to follow this naming scheme but were explicitedly declared cdecl by the programmer.
    Try it and tell us if that will help.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

Maybe you are looking for

  • Help with exporting an excel spreadsheet to sharepoint

    I've downloaded the 'Synchronising with sharepoint lists' add-in and have linked my spreadsheet to a sharepoint list, where any changes made to the spreadsheet then updates the sharepoint list. This spreadsheet is full of formulas but as soon as I cl

  • Stored procedure by using jdbc sender adapter.

    Hi All I need to call the stored procedure and make it as sender how do design data type to make stored procedure as sender Thanks Jeongbok.

  • Develop presets: "Unavailable Preset"

    When I enable the library filter Develop Presets I see three instances of "Unavailable Preset" with counts of 1, 23, and 323. In detail these are (1) no presets at all, just a Clarity adjust. Click on import, then back on the Clarity --> applies corr

  • My purchased song did not completely download. Now what?

    How do I re-downlaod previously purchased songs from iTunes. The last part of the song did not download on 2 of my 4 last purchases.

  • How to insert more than 12 items using BDC for MB1C

    Hi, When we use LSMW for data transfer of MB1C transaction, more than 12 items can be  inserted in a document. But using BDC only 12 and below is possible, if the flat file system has more that 12 item, then the document is not created. How to insert