"I want to acquire and display data from 89C51 micro controller using RS 232 port"

I am using 89c52 for data acquisition and control for photo diode array. I would like to do the same using RS-232 and micro-controller 89c52. I would like to generate two different control pulses (clock and trigger) and I am digitizing my analog data using on-board ADC, the data for which I would like to read using Labview and store it in a file also display the waveform of acquired data. Please reply.

Nice project, we do that all day long here. What is your problem exactly?
The 89C52 has a UART you can use to write commands and read data. It is fairly straightforward to write a command processor for the uC and implement a command set. Is it the computer or the uC that generates the control pulses?
LabVIEW, C'est LabVIEW

Similar Messages

  • How to acquire and display data from labview to excel simultaneo​usly

    hello,
    I am using the NI-DAQ to measure the falling edges of a clock and display them into a table. What I need is to display these data in a table in excel while the program is running. In addition, when I receive a pulse from an external clock, for which I have created a digital channell, the data must be logged in a different column. In other words, every time I receive a pulse the data must be stored in the adjacent column in excel.

    Hello Evangelos,
    As far as I know and have experienced, it is not possible to access a spreadsheet file (or any file, for that matter) by two programs at the same time, you will get an error.
    Also, a couple of observations on your code:
    A constant wired to a case selector of a case structure makes no sense as the false case will never be executed.
    Move the DAQmx Read from your Digital Input task into the while loop, as the DAQmx Read will only read once and the wire won’t get information in or out of a while loop as long as the while loop is iterating.
    Regards,
    Daniel REDS
    RF Systems Engineer
    Help us grow.
    If a post solves your question, mark it as The Solution.
    If a post helps, give Kudos to it.

  • Read and display data from PC COM1 & COM2

    Hello, I am looking for help in order to use LabView to do the following:
    I want to read from RS232 dataloguer output information and write
    this in a text file format and then another LabView rutine should read
    de information from the file and present the data in a graph. This
    basically what my Meteorology interface is doing at the moment but I
    want to use LabView for this purpose.
    I've been doing some tests but unfortunatelly I haven't gone very far.
    Many thanks, regards. Jose Carlos
    Hola, buzco ayuda para hacer una peque~na aplicaci'on con LabView:
    Necesito leer la salida del puerto RS232 de un dataloguer usando el
    puerto de comunicaci'on del ordenador COM1 y escribir estos datos en
    un fichero de texto. A continuaci'on otra peque~na rutina en LabView
    deberia leer la informaci'on desde el citado fichero de texto y luego
    presentar estos datos en una grafica.
    He estado trabajando en este tema desde hace tiempo pero sin mucho
    exito; espero me puedan ayudar con alguna sugerencia.
    Muchas Gracias. Jose Carlos

    Hi,
    I send two links where you can see how to communicate with your instrument using RS-232 port and other example where the data are saved into a file after being acquired.
    http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=C3279BDB00F42BEBE034080020E74861&p_node=DZ52363&p_source=External
    http://venus.ni.com/stage/we/niepd_web_display.DISPLAY_EPD4?p_answer=&p_guid=B45EACE3E8BB56A4E034080020E74861&p_node=DZ52058&p_rank=&p_source=Internal&p_submitted=N
    In order to read the data of the file you can see the example on the Labview´s help on Fundamentals>>File Input and Output
    I hope this helps you
    Regards
    Diego M.

  • Acquiring and plotting data from USB raw

    Hi,
    I am new to Labview. I have a 3rd party RFID
    device which i intend to acquire the frequency waveform from the device
    through using Labview. Since as a beginner, i use the spectrum analyser
    in the "example" section to start off with and now has error in getting
    the correct Visa USB raw to connect my device. The program intiallly
    used Visa instrument as the visa resource name but when i changed the
    input to the USB raw input there is a class conflict error that says
    "You have connected a refnum of one type to a refnum of another type and
    both types are members of some class hierarchy, but there is neither a
    simple up cast nor type cast between the two classes." 
    For the
    USB raw setting, i have already configured the device using the
    NI-driver wizard to install the USB raw and tested it through the MAX.
    So now i believe the problem should be wiring of USB raw to the entire
    spectrum analyser example. Attached is the spectrum analyzer example.
    Really hope to get help on this matter. Thank you. 
    Attachments:
    Template - Spectrum Analyzer Acquire Trace.vi ‏25 KB

    The example you posted is based on serial port communication. From your software point view, everything is based on RS232. This is quite common in instrumentation. As RS232 is simple compared to USB. The software driver on your host PC emulate a virtual RS232 port.
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • Querying and displaying data from a database

    Hi,
    The environment I am working in has the EBIZR12 suite installed on the apps server APP1, the EBIZR12 database deployed to server DB1 listening on port 1522 and a MIDTIER database deployed to server DB1 listening on port 1521. I have a custom page that needs to query the data off of MIDTIER and populate a display table. The page I have created emulates that of the Search tutorial. I have an application module that contains a BC4J object and views and these are connecting to the MIDTIER to retrieve data. It has a table that should display queries returned from the MIDTIER database. My question is, are there any limitations with OA framework development and deployment that would NOT make this feasible? if not is there anything else I would need to do either as a pre-requisite or as part of my page construction to make this work, because currently my page table is not being populated and I am not getting any exceptions on the page to indicate the database is either unreachable or the connection configurations are incorrect. Any help is very much appreciated.
    regards,

    Yes, in case of query region, an executequery was getting called on clicking go button. But now as you just have a table mapped to a VO, you also need to call the executequery explicitly in the page controller's processRequest method.
    Your point "I would like to point out that the instructions in those tutorials are not compatible with the newest version of JDEV" is completely wrong. First of all each Jdev has its own set of tutorials reflecting all the changes in that particular version. Secondly, as you are trying to use a particular scenario steps to create something different, you can't expect it to handle all the side off scenarios you can make. Drag and drop UI won't get you more than a few basic screens. Read more and you will understand the working of framework.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Inserting and retrieving data from a al32UTF8 database USING SQL Developer

    hi guys,
    Before i post my questions , i think its better for me to provide you guys with my understandings first so that it easier to understand where/if i have gone wrong..
    I am using Window XP and Oracle 10g
    Non-unicode client - a client program that need to use the OS code page for mapping of the retrieved unicode data from the database as well as the support of displaying/inserting the characters from that code page to the database.
    E.G sqlplusw.exe
    Therefore, when using a non-unicode client
    1) we have to set the OS code page (Control panel - regional and language setting - advance - language for non unicode program ) to the code page that contain the characters we are going to display/insert.
    2) we will also have to set the NLS_LANG characterset to the character set of the code page we are going to insert so that when we do a insert (for e.g in thai ) , oracle will know, and auto conversion to UNICODE can take place. This is also true when we retrieve unicode data from the database so that conversion to the correct character set can take place.
    INSERTING
    THAI ---> conversion ----> UNICODE
    RETRIEVING
    THAI <---- conversion <---- UNICODE
    I hope my basic understanding is correct up till this point.
    Unicode client - a client program that supports the displaying/inserting of unicode characters without the need of setting the OS code page (Control panel - regional and language setting - advance - language for non unicode program )
    E.G isqlplus http or SQL developer
    However,
    1) There is still a need to set the NLS_LANG so that correct conversion can take place between the client and the database.
    For e.g, when retrieving if we set the NLS_LANG character set to ZHS16GBK (chinese) and the data store in unicode in database is E.G (THAI) , then the conversion would be wrong .
    Since it is a unicode supported client, then the NLS_LANG character set should be set to UNICODE as well.
    Here come my questions
    *Important - please help if you are busy and have no other time to answer the rest of the questions
    *Q1) If i were to use a unicode client, what should i set my NLS_LANG character set to ?
    AMERICAN_AMERICA.UTF8 ?
    *Q2) Where do i set the NLS_LANG character set information in SQL Developer, i know there is a metalink for setting NLS_LANG using isqlplus but i cant seems to google any result for SQL developer.
    Q3) Is my basic understanding right until this point ? If not, please explain in a more generalised term as i am really not familiar with character sets, code page, unicode , glyphs and fonts..
    Q4) If a unicode client does not need to refer to the OS code page (set in regional and language) , is there a UNICODE code page for the client to refer to , or is there any Window API available ?
    Q5)
    There is still a need to set the NLS_LANG so that correct conversion can take place between the client and the >>database.
    For e.g, when retrieving if we set the NLS_LANG character set to ZHS16GBK (chinese) and the data store in >>unicode in database is E.G (THAI) , then the conversion would be wrong .am i right on this point for UNICODE supported client ?
    Thanks for spending time to read my questions and i hope to hear advices from you guys soon.
    Million thanks again for sharing.
    Best Regards,
    Noob but willing to learn

    The requirement to always set NLS_LANG is not true for JDBC, which ignores NLS_LANG altogether. Java programs fetch text data into String variables, which use Unicode UTF-16 by design. JDBC sets character set conversion so that data is converted between UTF-16 and the database or national character set.
    The requirement to set NLS_LANG is not generally true for OCI, either. The first call in an OCI problem can be OCIEnvNlsCreate(). This call has two parameters that allow the caller to define the character set to use for VARCHAR2/CHAR/LONG/CLOB/statement text and the character set to use for NVARCHAR2/NCHAR/NCLOB. Only if these character sets are specified as 0, NLS_LANG character set is used. Also, OCI programs can specify different character sets for each bind or define variable (i.e. input/output buffer). Note: OCI programs always use NLS_LANG to initialize the language and territory settings for the client program and the database session. Only the character set can be specified is OCIEnvNlsCreate().
    OCIEnvNlsCreate() can specify the client character set as UTF-16 (in platform endianess). This is not possible with NLS_LANG.
    Various interfaces building on OCI, such as Oracle ODBC and ODP .NET, explicitly initialize OCI with Unicode character set, and thus ignore the NLS_LANG character set as well.
    Thnx,
    Sergiusz

  • Store and retrieve data from a FP-2000 using RT application

    Using labview RT build application can i store and retrive the data from Fp-2000. If so how much memory it will be free?
    Karthikeyan @ sivathasan
    Karaikudi - 630006
    India
    hp: +919442047691

    This question is a little like "If I put some water in a one gallon bucket, how much spae will be left?"
    It all depends on how much you put in.
    A clean efficient app will leave more space left over. Its been years since I wrota an app that did that on a FP-2000 but I seem te rember having enough memory left over to buffer a weeks worth of data provided the sample rate is kept low enough and updates are limited by dead-bands.
    I think that's all I can say to try and help for now.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Acquire and Displaying Video from D-Link DCS-930L

    Hello! I want to know about acquiring video from the camera as I have mentioned in the topic, but I don,t have much experience about IMAQ related apps.The idea behind the whole concept is to display a video and then through some kind of shared variable it is displayed on other PC connected via ethernet cable.

    -First you need to know the need and difference between the software available in Labview like Vision development Module and Vision Acquisition particularly.
    http://digital.ni.com/public.nsf/allkb/45A5682F377996BB862572B50072787F
    -Then know the difference between IMAQ and IMAQ dx devices.
    -Check in Measurement & Automation Explorer for your device and do quick test setup of Grab and snap then go ahead for programming in Labview.
    -Now start using simple Grab and Acquire examples provided in the Labview Examples.
    -If you still found difficulty then post your query.
    Thanks
    uday,
    Please Mark the solution as accepted if your problem is solved and help author by clicking on kudoes
    Certified LabVIEW Associate Developer (CLAD) Using LV13

  • Acquire/manipulate audio data from internet stream

    I want to acquire the audio data from an audio stream (i.e. pandora, youtube, etc.) from the internet.  If I can get this data and be able to play it/graph it/etc in Labview, I will be pleased.  However, I'm not sure if this is even possible not knowing the details behind how packets are built and transmitted over the internet. 
    The closest I've come is using the acquire_sound.vi and taking the data from the sound card; albeit, it's very noisy. 
    For fun though, I'd like to do something directly from the audio stream itself (perhaps building a dll?) to gain a better understanding and experience. 
    Any advice is greatly appreciated!

    Dnor - 
    As far as I am aware there is a specific data time for audio streaming online, and it's something specific you would likely need to know on a low level to communicate/copy to.  Although it wouldn't be real-time, you can run a Windows audio recording program like TotalRecorder which should save and convert the audio output to .wav.  Then run a LabVIEW vi to read the wave file, which you could graph.  There is a KnowledgeBase on setting up the read from .wav file here if you'd like to go that route:  http://digital.ni.com/public.nsf/allkb/1BE60DBBFA22ACC186256DFB000B8464.  
    Regards,
    Ben N.
    Applications Engineering
    ni.com/support

  • When I try to sync photos, I followed all the steps, picked one folder.  When I hit "apply" I get this error message: Are you sure you want to remove 30 apps from iPad.  This will delete these apps and their data from the iPad. What have I done wrong

    When I try to sync photos or music, I followed all the steps, picked onle folder, not the whole library.  When I hit "apply" I got this message:
    Are you sure you want to remove 30 apps from iPad.  This will delete these apps and their data from the iPad" What can I change to just download the photos and not interfere with the apps?
    (By the way, the memory is not even one quarter full)
    Thanks for your help - Pat

    I have the same problem.  I updated my mac to 10.5, which then had me update apps like itunes, etc. then it wanted me to sync my purchased music to my ipad before i updated the ipad...which worked ok. then when i was syncing the photos i got the same message when i hit "apply" asking are you sure you want to delete the 12 apps from the ipad -  clicked "no" and brought me back to the original screen. Got the same message when trying to move them from the hard drive to the ipad.  WHat is going on and how do I correct this? Thanks

  • I have a G5 with Tiger to sell and want to erase all my data from it, but the cd drive won't work so I can't use the OS10 start up disk. Answers?

    I have a G5 to sell and want to erase all my data from it, but the cd drive won't work so I can't use the OS10 start up disk. Any way to do it?

    Do you have another Mac? If so, you can startup this one in "Target Disk Mode" (instructions here) and connect it to another Mac to delete the home folders (or the entire drive, if that's what you want).
    One piece of advise, though: after deleting the data, and of course emptying the Trash, it wouldn't hurt to also securely erase the "free space" of the drive (instructions here) before disconnecting the old Mac from the new one. This can be helpful, since "deleted" data is often retrievable with ease unles it's written over after the deletion.

  • Ok, so I want to buy the new iPod touch 5g this week and I have an iPhone 4. I want to transfer all the data from the phone to the iPod and have the files the exact same. I don't want to redo data, say erase game data (campaigns, achievements)...

    Ok, so I want to buy the new iPod touch 5g this week and I have an iPhone 4. I want to transfer all the data from the iPhone to the iPod and have the files the exact same. I don't want to redo data, say erase game data (campaigns, achievements)... I have apps that have very important data on them and if I sync it to iTunes and then transfer all that data to the iPod Touch 5g, will that erase app data?

    iOS: Transferring information from your current iPhone, iPad, or iPod touch to a new device

  • Display data from BLOB column.

    Hi All,
    I want to display data from blob datatype field, which contains HTML and GIF both files.
    If I set it's property from file format IMAGE then i get data only gif.
    if anybody have answer plz revert back...
    awaiting...
    Juned

    Hi Juned
    What I suggest is that you may have overlapping fields. One to show HTML and other to show GIF. You need to add one more column to your table in order identify if the BLOB is GIF or HTML.
    In the Format Trigger of each of these two fields, inspect the value of flag column and hide one field if the datatype is not its type.
    For instance, if flag field is 0 then hide Image field and show HTML field. If flag field is 1 then show Image field and hide HTML field.
    Regards
    Sripathy

  • Display data from multiple document Libraries in List View Webpart

    Hi All,
    I want to display data from multiple document libraries into one list view webpart(custom i have created)
    I went through the following link http://blogs.msdn.com/b/ramg/archive/2009/04/22/implementing-a-simple-cross-site-collection-list-view-webpart.aspx
    but it tells to display only from one document library.
    My motive behind displaying data in the list view webpart is to achieve the functionality of Check In ,Check Out and other OOB features.
    With Regards,
    Jaskaran Singh

    Hi,
    As there is no such OOTB feature, a workaround is to create a visual web part to gather items from libraries and implement functionalities like Check in, Check out files
    in different libraries.
    The links below will provide more details:
    Create Visual Web Parts in SharePoint
    2010
    A demo about displaying list items in visual web part:
    http://www.dotnetcodesg.com/Article/UploadFile/2/217/Web%20Part%20in%20SharePoint%20To%20Show%20All%20List%20and%20List%20Items.aspx
    About the Check In and Check Out:
    How to Check In a document programmatically
    SPFile.CheckIn method
    and SPFile.CheckOut method
    Best regards
    Patrick Liang
    TechNet Community Support

  • How can I do to acquire and save date in the same time and in the same file when I run continual my VI without interrupti​on.

    I've attached a VI that I am using to acquire amplitude from Spectrum analyzerse. I tried to connect amplitude ouput to the VI Write Characters To File.vi and Write to Spreadsheet File.vi. Unfortunately when I run continual this VI without interruption, labview ask me many time to enter a new file name to save a new value.
    So, How can I do to aquire and save date in the same time and in the same file when I run continual my VI for example during 10 min.
    Thank you in advance.
    Regards,
    Attachments:
    HP8563E_Query_Amplitude.vi ‏37 KB

    Hi,
    Your VI does work perfectly. Unfortunately this not what I want to do. I've made error in my last comment. I am so sorry for this.
    So I explain to you again what I want to do exactly. I want to acquire amplitude along road by my vehicle. I want to use wheel signal coming from vehicle to measure distance along road. Then I acquire 1 amplitude each 60 inches from spectrum analyzer.
    I acquire from PC parallel port a coded wheel signal coming from vehicle (each period of the signal corresponds to 12 Inches). Figure attached shows the numeric signal coming from vehicle, and the corresponding values “120” and “88” that I can read from In Port vi.
    So I want to acquire 1 time amplitude from spectrum analyser each 5
    period of the signal that I am acquiring from parallel port.
    So fist I have to find how can I count the number of period from reading the values “120” and “88” that I am acquiring from In Port (I don’t know the way to count a number of period from reading values “120” and “88”).
    Here is a new algorithm.
    1) i=0 (counter: number of period)
    2) I read value from In Port
    3) If I acquire a period
    i= i+1 (another period)
    4) If i is multiple of 5 (If I read 5 period)
    acquire 1 time amplitude and write to the same
    file this amplitude and the corresponding distance
    Distance = 12*i). Remember each period of signal
    Corresponds to 12 Inches).i has to take these
    values: 5,10,15,20,25,35,40,45,50,55,60............
    5) Back to 2 if not stop.
    Thank you very much for helping me.
    Regards,
    Attachments:
    Acquire_Amplitude_00.vi ‏59 KB
    Figure_Algorithm.doc ‏26 KB

Maybe you are looking for

  • Please help about firewire card

    hi i have to buy one audiocard firewire for my PowerBook I need to buy it soon before i go in holidays ! please council to me : is better the Presonus Firebox , or the Focusrite Saffire ?? I use logic pro 7.1 is much apreciate help !! grazie !!!

  • Hdmi, VGA, RCA adapters - analog hdmi?

    So I'm a bit foggy on this. I have the iPad 1 and have the RCA and VGA adapters that work great. Now I can get the hdmi to work at 720 from what I understand. Isn't hdmi digital? Does iPad 1 output digital and analog? Will my RCA and VGA adapters wor

  • MCRE report

    Hi Experts, I met a problem with report MCRE. When I use the MCRE to generate a report, the Qty withdrawn listed here for a specific material in a specific production order is different from the Qty withdrawn displayed in the production order (CO03).

  • Graphic Designer looking for a quick script

    Hi all, I've been doing a lot of searching and I just can't find it... I'm looking for a script to have Distiller open up .pdf files after it's done distilling. the .eps file. Is there a script that can do this?? Can anyone help me?

  • Is it possible to install on private servers

    I was wandering if its possible to install incontext editing on my own servers and not have to connect to adove servers to use it?