Send serial from LabVIEW to 8051 mc

Actually wat i need is. My project is online temperature control. I'm receiving my dac value tat means temperature from rtd is getting in LabVIEW using 8051 board. But now I need feedback error voltage to send mc from LabVIEW. Tat means if my condition is true I have to send port on tat means 5v if my condition false I have to send 0v tat means port off

Your question does not seem directly related to LabVIEW or serial communication. You program the micro to send 0/5 volts. What you write to the micro from LabVIEW is up to you and how you write the micro code. Send ascii text (i.e. ON/OFF) that your micro decodes or a single character (i.e 0/1). What have you tried and where are you stuck?

Similar Messages

  • Is it possible to send keys from LabVIEW.?

    Is it possible to send keys from LabVIEW.?
    (In VisualBasic this is possible through the sendkeys command.)

    Hey I think i can help you
    Inport picture with edit >inport picture from file.
    Paste it into you frontpanel ctrl+v
    Place you Graph control and pant it with transparent.
    You must pant both the scale and the draw area with transparent.
    Try also to use the Reorder funktion in the toolbar to get the picture in
    background.
    Esben
    Click here for Free Video!!
    http://www.gohip.com/freevideo/
    wrote in message news:8b82k8$bjq$[email protected]..
    > Hi!
    > Does anyone know to insert a picture in the background of a graph and to
    > plot over it ?
    > I tried with the Edit Control command to import a picture (*.emf, *.bmp,
    > *.xmf) from the clipboard to a graph indicator but the only thing I got
    > was
    a blank window.
    >
    > The other possibility would be to export the data to an excel worksheet
    > and to plot an excel chart with the background already set-up but I'd
    > rather use only one application.
    > Can anyone help ?
    > Thanks.
    >
    > Fabrice
    >
    >
    > Sent via Deja.com http://www.deja.com/
    > Before you buy.

  • Send sms from Labview without LabVIEW 8.0 PDA module

    Does anyone can send sms from Labview without LabVIEW 8.0 PDA module?

    You can get a wireless (GSM) modem for the pc. There have been some discussions here that you can do search for. One is http://forums.ni.com/ni/board/message?board.id=170&message.id=142443&view=by_date_ascending&page=1.

  • Send Data from Labview-Pr​ogram to Twitterfee​d

    Hi,
    I would like do havbe a nice-to-handle way to look at some experimental data from home. As am a frequent "twitterer" I wondered whether I can send numerical values from Labview to a twitterfeed.  

    Hi Phil.
          This sounds like fun!  While I have no experience with twittefeed, it sounds like you [just] need to satisfy the rules/expectations of their API.
    Since LabVIEW 7.1 implements low-level TCP/IP functions, it should be possible to satisfy any interface requirements.
    On the other hand, is that really necessary?
    [From the API page] Notice the fourth bulleted item...
    The Easiest Way to Play Around with the Twitter API
    If your system has curl (and it should!), you’ve already got a great way to poke around the Twitter API. Here are some examples:
    Get the public timeline, unauthenticated: curl http://twitter.com/statuses/public_timeline.rss
    Get your friends timeline, authenticated: curl -u email:password http://twitter.com/statuses/friends_timeline.xml
    Just the headers, please: curl --head -u email:password http://twitter.com/statuses/friends_timeline.json
    Post a status update, authenticated: curl -u email:password -d status="your message here" http://twitter.com/statuses/update.xml 
    This seems to be using a utility ('curl') to post/update via a command-line interface(?)  This could certainly be automated with LabVIEW - does it look promising?
    Cheers.
    "Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)

  • Instrument I/O Assistant (sending command from labview to arduino)

    Hi,
    I am a beginner in Labview. I would like to control the intensity of AC loads using labview. In this case, i would prefer to use instrument I/O assistant. The instrument I/O assistant in labview will have to send a command to Arduino. The intensity will be controlling by using slider in labview. How to write the vi for this example? Please advice.

    feliciacpw92 wrote:
    Hi,
    I am a beginner in Labview. I would like to control the intensity of AC loads using labview. In this case, i would prefer to use instrument I/O assistant. The instrument I/O assistant in labview will have to send a command to Arduino. The intensity will be controlling by using slider in labview. How to write the vi for this example? Please advice.
    In the thread for your other post, you were told that LabVIEW installs by default example programs on how to use LabVIEW with serial port.
    Have you bothered looking at that?
    You need to do some work on your own.

  • Receiving commands from mirocontroller via serial from LabVIEW

    Hi all,
    I am developing an application where i need to interface serial port of PC with Labview and a microcontroller. I need to receive serial commands from microcontroller in a packet format(The packet of 5 bytes that includes header, data length, id, data and checksum). 
    I have successfully tested the serial read vi and serial write vi for Tx and Rx 1 byte data , but have no idea of handling packet format where i also need to validate the  packet data received. 
    Kindly provide me any suggestions.
    with regards,
    Sri

    Duplicate
    http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/receiving-serial-commands-from-microcontrolle...

  • How to load a curve and the view automatically in diadem from labview ?

    Hello,
    I want to automate a system for processing and analyzing data and for that I am using labview.
    I recently discovered software diadem and already I am able to send data from labview.
     I would now like to obtain a curve directly in the "view" is that possible?

    Hello Beneuss,
    You can create a layout template in VIEW, save it to disk and then load it when DIAdem is started. These two lines will automatically load a VIEW layout called "Example" and display the VIEW window.
    Call View.LoadLayout("Example.tdv")
    Call WndShow("VIEW")
    To automatically have a curve show up in VIEW, make sure that you assign the correct curves in the VIEW layout before you save the layout. This is done with the drag&drop functionality from the DataPortal. Just assign the channel you wish to see, and then save the layout. It will "remember" all the channel assignments and automatically show all the channels you had assigned, as long as you don't change the channel names.
    Please let me know if that helps and if there is anything else we can help you with.
         Otmar
    Otmar D. Foehner
    Business Development Manager
    DIAdem and Test Data Management
    National Instruments
    Austin, TX - USA
    "For an optimist the glass is half full, for a pessimist it's half empty, and for an engineer is twice bigger than necessary."

  • I have a dll file, i want to send messages from this to the device ,how can i do it in labview

    Hi,
    I am a new user of labview.
    I got Vector Card, DUT, DC Power supply and .dll file. Hoe can i connect dll file and hoe to senf the information to the device,
     i want to send/receive a message to that device . and measure temperature , humidity of the device. is any one can help?
    i have a .dll file, i want to send messages from this file to the testing device ,how can i do it in labview?

    Dear Sandy,
    How are your DUT, Vector Card and your PC connected?
    What vector card is this?
    There are a huge amount of Knowledge base articles that you can access from www.ni.com.  Simply go to the website and do a search on dll, etc.
    There are also a lot of example problems shipped with LabVIEW that will be very helpful for you to learn from and to modify to meet your needs.  Go to File»Find Example ....
    There are LabVIEW classes taught locally as well that are very helpful.  If you're interested I can arrange for you to receive an email with info about it.
    Sincerely,
    Sammy Z.  

  • How to Send Multiple Plot XY Graph from LabVIEW to Microsoft Excel

    The link below describes exactly what I would like to do, however the link to the solution/work around does not work.
    Has anyone got an alternative solution?
    http://digital.ni.com/public.nsf/allkb/CFD30D5E9C01AB5386256CFB0082AF3E

    Please check the link again as it seems to be working fine now.
    How to Send Multiple Plot XY Graphs from LabVIEW to Microsoft Excel:
    http://digital.ni.com/public.nsf/allkb/CFD30D5E9C01AB5386256CFB0082AF3E
    The standard Excel Insert Graph.vi cannot insert multiple XY Graphs to Microsoft Excel, so you will need to use the Report Generation Toolkit for Microsoft Office.  You will find a link to an example program at the bottom of the page.  I have also attached it below.
    Attachments:
    example.zip ‏35 KB

  • Send a keyboard event from labview to C#

    Hi,
    We currently have a program in c# that takes keyboard inputs from a user and will fly a quadrotor. We aim to have a LabView .vi generate keyboard commands based on our experiment and send the commands to the c# code creating a feedback loop where the .vi will keep track of sensor and experimental data.
    Our problem is that we have tried many different methods to send the keyboard commands in LabView. 
    1) http://zone.ni.com/devzone/cda/epd/p/id/3711
    2) http://forums.ni.com/t5/LabVIEW/Send-keyboard-commands-to-another-windows-program/td-p/330670/page/2
    as well as other variations and similar .vi's that do the same thing. Here is an example of a .vi used to press the letter "t" once.
    http://i.imgur.com/hwmjZ.png
    All of them can write the string to a text (open notepad put cursor in blank window) file but none can do it in such a way that it is detected by the c# code. On my own I can open and run the c# code and press keyboard buttons myself and the commands are recognized, so I think it could be an issue with how LabView sends the keyboard events and how c# reads them. Here is the c# code segment that we are using to read the input commands:
    public override List<String> GetPressedButtons()
              KeyboardState state = device.GetCurrentKeyboardState();
              List<String> buttonsPressed = new List<String>();
              foreach (Key key in Enum.GetValues(typeof(Key)))
                        if (state[key])
                                  if (!buttonsPressed.Contains(key.ToString()))
                                            buttonsPressed.Add(key.ToString());
              return buttonsPressed;
    Can anyone help trying to figure out why using the keybd_event function in LabView can not interface correctly with the above detection code in c#? I can provide any code and clarification if you think it can be helpful.
    Thanks,
    Andy

    Hi,
    I can't say with certainty where the problem is or even how many there are. I do know that the KeyboardListener.cs class should work according to what I have read online. I also know that if I press the keyboard myself then the state is changed and the correct action is taken. If I try to issue an event from Labview then the event is not captured. Here is the code, it is rather large ~20 MB.
    https://www.dropbox.com/s/vsvcje1ro364otu/ARDrone.zip
    https://www.dropbox.com/s/p3h3tj8bcqc29gk/Forward_backward0924.vi
    The key listener is in ARDroneInput>Utils>KeyboardListener.cs and the polling takes place in ARDroneInput>KeyboardInput.cs
    The reason I wanted to use keyboard inputs is because the quadrotor we are using takes keyboard commands W,A,S,D,T and L. Initially I thought having Labview issue these commands would be the simplest method. That may not be the case.
    I was just thinking that it is not necessary that key events are sent from Labview. Instead, one could send an array representing the frequency of each button press rather than the button press directly. In that case an array that is updated continuously from Labview will just have to be kept track of in the C# code. The C# can then convert that to whatever control input we want. Can it be easier to send a vector of numbers in real time to C#?
    If you think it is better to establish a connection between Labview and C# using .NET to send keyboard commands (rather than the vector idea above) can you explain that a little more? How does one go about doing that? If you think the vector idea is simpler how should the interface be set-up?
    I just talked with my collegue and we think that maintaing a .txt file in Labview and having C# read it is the best option. We will begin working on that and will update you tomorrow.
    Thanks,
    Andy 

  • Sending arrays from Excel into Labview

    I want to send an array from Excel VBA into a LabView VI.
    The Excel example shows how to send individual numbers and return an array into Excel but not send an array.
    Everything tried sends blank arrays into LabView, which can then be modified in LabView and returned to Excel.
    A VBA code snippit that does not work is:
    Sub LoadData()
    ' LoadData Macro
    ' Keyboard Shortcut: Ctrl+l
    ' This is an example to demonstrate LabVIEW's Active-X server capabilities.
    ' Executing this macro loads a LabVIEW supplied example VI "Frequency Response.vi",
    ' runs it and plots the result on an Excel Chart.
    Dim lvapp As LabVIEW.Application
    Dim vi As LabVIEW.VirtualInstrument
    Dim paramNames(0)
    Dim paramVals As Variant
    Set lvapp = CreateObject("LabVIEW.Application")
    viPath = lvapp.ApplicationDirectory + "\examples\apps\freqresp.llb\DAK Frequency Response.vi"
    Set vi = lvapp.GetVIReference(viPath)   'Load the vi into memory
    vi.FPWinOpen = True                     'Open front panel
    paramNames(0) = "Foo"
    paramVals = Sheet1.Range("j1:j1000").Value
    Call vi.Call(paramNames, paramVals)
    This code generates an error - expecting 1D array or variants.
    However, if I supply the correct array, then LabView thinks it is empty
    'foo' is a cluster
    'Array' is a double array
    Neither work to receive the data

    Thanks for the reply but that approach will be difficult.  The problem to solve is relatively simple IF LabView could read arrays (it writes arrays easily).  Here is the problem:
    I want to convolute two large arrays.  I have written VBA programs to do this but they take too long - over 30 sec whereas the LabView version take <1 sec IF I could get the data into LabView.
    The convolute is part of an optimization program that goes though many loops so that it takes hours to run efficiently AND if I manually change cells in the spreadsheet, then it takes 30sec to come back as VBA does not respect clean cells (for some reason).
    I was trying to write a function in VBA to do this calculation via LabView rather than VBA.  One way to  do this is to write a text file in VBA and read in LabView, then pass the results back or maybe the clipboard as a buffer.  That is faster but clumsy.  You could also have LabView look for dirty cells and then do the calculation as the server rather than the client.  Again, time consuming and cumbersome.  I have written pure LabView code to do the curve fitting but prefer to use Excel as that is easier to incorporate and work with the data.   You can do convolute using FFTs but Excel does not do that correctly - they CANNOT make their FFTs into a function (VBA functions cannot modify cells in the spreadsheet but only return variables.  FFT modifies cells so cannot be called from a function, only a macro, which then needs to be updated manually).  Again, I can kluge VBA (real kluge this time) to make FFTs work as a function BUT prefer the LabView solution, if possible, as I am not sure the FFT will actually save time.
    I am not sure if the problem is LabView's fault or Excel's (2013) fault that the variables are not set-up properly.  LabView claims to be able to do this.  Again, you can pass single variables into LabView and read back arrays but try as I might, I cannot get arrays into LabView.
    Any help in sending arrays (maybe Labview expects a variant variable and needs to convert it somehow) would be appreciated.  Variants are suppose to be able to be converted automatically but maybe there is a bug in LabView (2010) that does not handle input variant arrays correctly (I have tried making them clusters, double arrays, ect).  LabView thinks that all the arrays sent by VBA are empty. If LabView modifies the same array, VBA sees that modification so that the addresses appear to be sent correctly i.e. the array "handle" is being sent to LabView or else it could not fill the array to send back to VBA.
    If ever this is solved, I will put on-line the solution for others as again marrying both programs will have advantages.  Others may find this interesting is marry LabView with Excel so that LabView does some of the heavy calculations that Excel has kluged. 

  • Send picture from camera to labview

    i have creative webcam
    how can i make labview accuire the image when i press the button in the camera?????
    thank you

    You will only be able to do this if the Creative Webcam software/driver provides a way for other programs to control it. If you are using Windows, the most likely candidate would be ActiveX (also known as COM), which is a common protocol that allows Windows programs to communicate with each other. There's an off chance that Creative would provide a DLL driver that you could call to control the camera, but that is unlikely. Either way, you will need to talk to Creative first to find out whether they offer any way for other applications to interface with it. Specifically, you can ask them if they support ActiveX or if they supply a DLL that you can call into from LabVIEW, or perhaps someone who has tried this before will post their experience.
    Kind Regards,
    E. Sulzer
    Applications Engineer
    National Instruments

  • Controlling Tera Term from labview

    Hi guys
    In my new project I would like to send commands to Tera Term Pro. Tera Term then responds to the commands from Labview the same way as I would type the commands directly into Tera Term.
    I'm able to use cmd.exe with the SystemExecute Vi, but for my program I would like to do the same with Tera Term.
    I would like to send commands with a stringcontrol and get the respond in a string indicator, all in labview. Tera Term should run invisible in the background.
    So for this I thought using ActiveX would be the best. I have downloaded tera term pro.
    In Labview I create this from the ActiveX Palette and select browse on the ActiveX Class.
    In the Tera Term folder I find many .dll's:
    I have tried to open them all, but I only get this message:
    Does this mean it's impossible to use Tera Term with Labview like I described?
    I'm not so familiar with ActiveX, only with Excel (which is in the ActiveX Class list), so I might have missed something.
    My goal was to create a sub-vi which does the communication with Tera Term, the same way SystemExecute VI is built.
    Regards,
    Even
    Regards,
    Even
    Certified LabVIEW Associate Developer
    Automated Test Developer
    Topro AS
    Norway
    Solved!
    Go to Solution.

    Sorry for this late reply. I have been using Teraterm Macro (not Teraterm Pro serial terminal) to interface with my previous provisioning app written in LabVIEW.
    Teraterm Macro is such a lifesaver in that it can easily interface with your development boards that need: (1) RS-232C, (2) FTP, (3) TFTP or (4) SSH connections. The plain-vanilla 'serial' VI's are just that - serial port only and those need additional code to work reliably. If you need a good serial port VI try Prabhakant Patil's Hyper Terminal for LV 2009 and newer. You will find an ZIP or VIPM package from LAVA (lava.org). I have used his versions countless of times and is 10x more reliable than provided in LV examples.
    You will indeed use the System-Exec.VI to call Teraterm Macro since *sigh* no one has written a wrapper for the DLLs (as you mentioned they are built for .Net framework. I have talked with the current developers and they are willing to give anyone the pass to extend Teraterm for LabVIEW so C++ devs out there with good LabVIEW knowledge should re-build the DLLs as static libraries that can be called from within LabVIEW. For now, this is the only way and it is a kludge - but it works - just not in a way you expect.
    Here you can see that I am building the command line arguments before I call the system-exec node. Refer to the excellent how-to instructions at:
    http://ttssh2.sourceforge.jp/manual/en/macro/commandline.html
    Teraterm Macro will be spawned (opened) like it would when called from the command line. Its std input & output are not tied to your VI. You can merely pass arguments to the system-exec node. This is the reasons why we need someone to recompile the Teraterm Macro DLL as a static library (anyone?) so we can build a wrapper VI around the functions. Then its std inputs and outputs can be tied to LabVIEW's controls and indicators - hence, it becomes LV native.
    -Relativity

  • How to call another program from LabVIEW?

    Hi!
    Is there anyone that can answer my question? I have found a similar thread where the user needed to call labVIEW from some program but I want to do the opposite.
    I made a program in labVIEW that communicates via COM-ports (serial communication) with the processor I use at the job (Ubicom´s IP2022).
    Now I want to add more funcionality to this program. I want to be able to program re-program IP2022 through this LabVIEW application.
    The programming is done via an Ethernet-dongle. I start a program called IP2kProg, I write the ip-address of the dongle and the program-file (.elf) downloads at this address. But how can I do this from
    LabVIEW, do I need to open IP2kProg or can I send some values to it via LabViEW?
    Ant suggestions?
    Thanks, Amir

    Amir,
    There are couple of options:
    1.  If your IP2kProg program has a command-line interface, you can use LabVIEW's System Exec.vi and send the commands and parameters to it. 
    2.  If the IP2kProg has an API / exported functions, you can call them from LabVIEW using the Call Library Function Node. 
    Hope this gives you some ideas. 
    -Khalid

  • How to send sms from gsm modem(AT commands) to j2me application(not inbox)

    hi
    i want to send sms from gsm modem to a j2me application, for this to happen i have to send sms to a specific port in which j2me application is running.when i m trying to send sms from modem it doesnt go to application it goes to inbox.
    is it related to udh settings if yes then how do i set port no in settings?if no what are the other ways.

    Hi Vignesh,
    Might be you can call ActiveX or DLL objects of the software installed for modem from LabVIEW, if it is unblocked.
    Have a  look on the link > http://zone.ni.com/devzone/cda/tut/p/id/2983
    CLA 2014
    CCVID 2014

Maybe you are looking for

  • Portlets Border Color!!!

    Hello I have created a content area and a portlet, then I have edited the content area page and add this portlet to the page, I have selected on the region where I add my portlet Show Portlet Borders but I need to change the color of the border. How

  • Netcool IP Error

    I have the Netcool IP deployed and configured. When I test connection its successful, however when I add the connection to an activity it throws the following error:  java.lang.RuntimeException: ERROR=Denied on line 1 of statement 'SELECT ColumnName,

  • MDG - S Workflow issue

    Hi, I have configured the MDG for Supplier where I am using the standard workflow template for Supplier Create - WS53100044. I have a couple of questions here where I need your expert help. 1.I create a CR, it goes for approval. When I run validation

  • 9iAS: JSP: contentType BUG

    this is a very simple JSP page, it cant run correctly on 9iAS 1.0.2.1 running on Windows NT or 2000. If you try to pass any parameter with caracterset except the default you will get rubbish. I tried to upgrade OracleJSP to the latest version from OT

  • Table - Change details to SO and Line Items

    Hi Buddies I have an interesting question to all of u. Please give a try. Give me a surprise.. With a Sales Order, we do the following actions - create/change/delete. Like, With Header: 1) Create a New Order 2) Change the Header details 3) Delete a S