Write/read to eeprom via RS232

Hallo the community,
I want to write an application with Labview which can read or write an EEPROM. i'm using an ATMEGA 128L von ATMEL. Do some one knows wether dies works in labview. If then where can I find programmsample approching the solution that i m searching.
Thank you for any help.
Alain K.

I have written LV programs to talk to PROM programmers. You need to know two basic things: The communications protocol to the programming device and the data format that the programming device can accept. Once you have this information, it should be possible to write the program in LV. I did a quick search on the ATMEGA 128L. It appears to have an RS-232 interface so the communications from LV should not be a problem. The data interface may require some bit manipulation, but LV can be quite versatile in that regard.
There may be some tedious work involved, but I think it is feasible to do what you want.
Lynn

Similar Messages

  • How to read out data via usb

    Hello,
    i am trying to get the measurements of a dial indicator, "MarCator 1075", product of Mahr Co. via USB-Cable.
    I installed all the drivers and MAX shows that its a COM-Device and its working properly. So i configured the settings: baud rate 4800, data bits 7, parity even, stop bits 2, apllied and saved the changes.
    I tried those 2 attached VI's, but it doesnt work.
    1. basic_serial_write_and_read.vi is the standard VI for USB-communication of NI.
    2. Sylvac Read.vi is a VI the vendor send after i talked to him to inform me about the dial indicator. He said its a VI to get Data via RS232, but the problem is that i dont have a RS232-slot in my computer. In order to that i have to realize it via USB.
    I think it doesnt work because there are no databits to be read out. When the dataflow arrives the "VISA-Read" theres is an error. This occures in both VI's.
    Error -1073807339 occurred at VISA basic_serial_write_and_read.vi
    Possible reason(s): VISA:  (Hex 0xBFFF0015) Timeout expired before operation completed.
    Anyone who can help me with my issue??
    thx in advance
    best regards
    Attachments:
    basic_serial_write_and_read.vi ‏34 KB
    Sylvac Read.vi ‏22 KB

    Hello FCHansa,
    have you installed the proper drivers?
    Which version of LabVIEW are you using?
    Which OS are you working on?
    In the LabVIEW Example Finder you have a simple example how you can communicate to a USB HW via NI-VISA.
    It's called "Basic TCPIP or USB VISA Write and Read - PDA.lvproj". Or another would be "Basic TCPIP or USB VISA Write and Read - Touch Panel.lvproj"
    Have you configured your USB Device to a virtual COM interface?
    Also please have a look to these links:
    What is the Difference Between USB Raw Control and USB Raw Bulk?
    http://digital.ni.com/public.nsf/allkb/400D6EAB5CFE1C6B86257395005F5D48?OpenDocument
    USB RAW Controller
    https://decibel.ni.com/content/docs/DOC-2022
    Also, please follow the advises of smercurio_fc! As he said you need to know to which commands your Hardware is responding to.
    Best regards,
    Abduelkerim
    Sales
    NI Germany

  • The sampling rate of Multimeter Protek 508 via RS232

    Hi everyone. I have the multimeter Protek 508. I want to take the data from it via RS232. The default detail of RS232 is:
                    Baud rate: 1200
                    Data bit: 7
                    Stop bit: 2
                    Flow control: None
    I write the code and get the data from it. But i only have the sampling rate is 2 data per second, that mean 500 ms per data. I want the sampling rate more than that. Can anyone help me to solve this problem. 
    Thank you.
    Attachments:
    186148720-Multimeter-Protek-506-pdf.pdf ‏553 KB
    Protek 508 RS232.vi ‏35 KB

    You are probably getting everything out of this device that you can. First, it is old, make that, very old. Back in the day, it might have been quick, but that was then. This is now.
    Second it's a multimeter. Very often meters like that would do running averages to make the reading appear more stable. That averaging slows down the rate at which you get new data.
    How fast are you needing to acquire data?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Comment envoyé une donnée via rs232 avec labview

    Salut, comment envoyé une donnée via rs232 avec labview ?
    Hello, how given sent via rs232 with labview?
    Solved!
    Go to Solution.

    You can use the LabVIEW example for "Basic Serial Write and Read." In the English LabVIEW it is found here:
    Vous pouvez utiliser l'exemple LabVIEW pour "SerialBasic écrire et lire." Dans le LabVIEW anglais, il se trouve ici:
    Zach P.
    Product Support Engineer | LabVIEW R&D | National Instruments

  • DMM MAS345 via RS232 serial comunication

    i have a problem almost like u,and i want to know if there is someone who can help me.I want to send data from a DMM MAS-345 via Rs232(my data settings in labview are baud rate=600,data bits=7,parity=none,stop bits=2,flow control=none,delay before read=10000ms) ,and i don't know why does it showes an error when i try to run the application(error -1073807202).I use like example VISA configure serial port,and i don't know if is wrong!!!I will appreciate if someone can help me.
    Attachments:
    Basic Serial Write and Read.vi ‏34 KB

    Here is some help for you 
    MAS345
    data format: 7n2 at 600 baud (7 bits, no parity, 2 stop bits).
    Control lines:
       DTR and RTS lines are used to power the TX line: RTS is clear
       for -12 supply; DTR is set for +12 supply. Data transmission is
       solicited sending whatever character to the RX line.
    Data string format:
       MAS-345 sends a 14 bytes string with:
             <mode>< ><sign><value>< ><units><return>
       <mode>:  two bytes with the oerating mode: DC, AC, OH, CA, TE ...
       <sign>:  one byte with - or space
       <value>: five bytes with four digits and one decimal dot.
       <units>: four bytes with the units: mV, A, kOhm, nF ...
       <return>: '\r'
       One space is inserted between <mode> and <sign>, one between
       <value> and <units>.
       The data string (without the '\r') is sent to the output device.
    The next question is of course How Can I Control the DTR and RTS Serial Lines in LabVIEW? It is easy take a look here
    http://digital.ni.com/public.nsf/allkb/1ECEFAA7AD52994986256966005356EA
    Good luck
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • Fluke PM6304 controlled with LabView via RS232

    Hi,
    we're going to control our Fluke RCL Meter with Lab View via RS232.
    Does anyone has experience and show sample code?
    I failed already to make a terminal connection between my PC and the PM6304
    Thanks for comments, maximint.

    Okay, here goes. Once upon a time there was just serial and gpib. Each used completely different hardware,protocols, etc. and there were separate drivers for each. Years ago, a new instrument type was introduced. Based on a VME backplane, these were instruments on a card called VXI (VME with instrument extensions). So, a whole new low level driver was required. The makers of VXI, realizing that the first VXI instruments were the same as their GPIB instruments without a display or power supply, thought that it would be nice if the software that had been developed for the GPIB instruments could also be used for the VXI version. Several vendors, including NI, came up with something called VISA (Virtual Instrument Software Architecture). This was an API that united GPIB and VXI. If you wrote an instrument driver with VISA Writes and VISA Reads, it would work with either type of instrument. The VISA driver itself would determine the actual type of bus and handle all of the low level details. One of the goals of all these vendors was to also make it easy for users to change from GPIB to VXI instruments. While this didn't really happen, the idea of VISA caught on and became very popular and sort of a standard in many places. Eventually, other common forms of instrument busses were added to VISA. Among those are serial, ethernet, usb, pxi. All of the instrument drivers written by NI now use VISA.
    I downloaded the driver for the instrument you need and had a look at it. It really doesn't have much, it's very old, and uses the GPIB functions (not VISA). Since there were so few functions, I went ahead and replaced the GPIB Reads and Writes with VISA Reads and Writes. That will give you a start. You will also need to add some code to initialize the serial port. A great place to look to see how this is done is with an example that has shipped with LabVEIW for years. The HP34401 DMM driver that is on the instrument driver palette is a VISA driver with special support for serial. All of the serial setup is done in the initialize subVI. The type of interface is determined and if serial, baud rate, parity, etc. are setup. Another important setting is a termination character. Serial instruments usually require a CR or LF at the end of each command. You will need to determine what your instrument requires.
    Attachments:
    flpm6304.llb ‏141 KB

  • Sending binary file via RS232 connection

    Hi,
    I want to send a binary file via RS232 connection but I have troubles reading the .bin file and then converting the data to string in order to send it via RS232. Any ideas how i can deal with this?
    Thanks in advance,
    IG. 

    It is hard to help then you do not post any code. I suggest you go to the toolbar then help. Then you select Find Examples. Search for files. Also since you are new to Labview always have context help enabled. Both tools are important if you want to learn Labview. Feel free to post again if you are stuck.
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • Agilent 34401A multimeter to PC with Labview driver via RS232

    Hello!
    I am trying to measure a voltage with Agilent 34401A multimeter connected to PC via RS232 cable. I installed the driver. When I am starting Read Single Measurement.vi. It gives me an error:
    Error-1073807346 occured at Visa Open in Agilent 34401.lvlib: Initialize.vi->Agilent 34401 Read Single Measurement.vi
    Possible reason(s):
    Visa: (Hex 0xbFFF000E) The given session or object reference is invalid. 
    I would like to ask, how can I adjust my system to use RS23 with Agilent 34401A, if it is possible? If not, should I get GPIB card and cable?
    Thank you!
    Yulia.

    LabVIEW already comes with a driver for the 34401 pre-installed, so I'm not sure I understand what you installed. The pre-installed driver is in the Instrument I/O >> Instrument Drivers >> Agilent 34401 functions palette.
    As for the control that Dennis is referring to, it's the VISA control.
    As for the VISA version, you should have received a set of driver CDs along with LabVIEW. That will have the minimum VISA version required. Don't remember off the top of my head which version it is. Probably something like 4.1.
    Attachments:
    visa.png ‏42 KB

  • How to communicate via RS232?

    I am trying to program an sbRIO-9606 to communicate with a Matrix Orbital LCD display via RS232.  I have NI-VISA 5.4.1 and NI-VISA Server 5.4.1 software installed on the sbRIO.  But I am not seeing any COM ports to use to communicate.  Is there other software I need?  Or is there a resource where I can find some instructions about this?
    Solved!
    Go to Solution.

    Found it!  
    I also needed the NI-Serial RT 4.0.0 installed on the sbRIO.  

  • I want to write data into eeprom(93LC86) in parallel port using labview?

    I want to write data into eeprom(93LC86) in parallel port using labview? Also I want to read data from EEprom.

    Hi Mr. Mz,
    after having a look to 93LC86-Datasheet I do not see a problem. The self-timing programming cycle of this Chip avoids timing problems; the rest is only logical stuff.
    If you need more general info, how to use the parallel port, I recommend: http://[email protected]/ or
    in case you need an example of SPI-Interface in LabVIEW with paraport - then write to: [email protected]
    You are welcome
    regards
    wha

  • Forcing Relays via rs232

    Hello everyone,
    I’m new to Labview and i would appreciate it if someone could show me how to make, or use an existing Labview VI to operate via RS232 (ASCII or Modbus) an external Power Relay Output (Advantech ADAM 4069), in order to switch on and off a vacuum pump.
    The problem is that no Labview VI or driver exists yet from Advantech. However, according to the manual I have to send simple hex command like 0x01 for Set and 0x00 for Reset, through a serial port.  
    Product Page of Power Relay Output:
    http://www.advantech.com/products/8-ch-Power-Relay-Output-Module-with-Modbus/mod_1-2MLDJ5.aspx
    The event which will set or reset the relay is a dc voltage reading acquired by an internal PCI Multifunction Card, for which several VI’s exists.
    Thanks in advance for any help!
    Regards,
    John

    Hi Sebastian,
    Have you tired contacting the manufacturer to see if they have drivers for LabVIEW and the particular model you are using? We do not have drivers available on our Instrument Driver Network but we do offer resources that can help you develop the drivers. Please refer to the following links for more information.
    Developing LabVIEW Plug and Play Instrument Drivers
    Development Tools and Resources
    You can also submit a request for a particular driver.
    Thank you,
    Simran K
    National Instruments
    Applications Engineer

  • Communicat​ion via RS232 with a Kollmorgen Servostar 300 using LabView.

    Hello,

    Sorry I am new posting a message here and I post it before I was able to describe my problem.
    I have a Kollmorgen Servostar 300 to control an AKM24F motor and I would like to send the instructions to the controller via RS232 using LabView. I think I had achieved communication from a PC to a Servostar 300 using LabView via the serial port.
    So far I have setup in LabView the configuration of the RS232 (8 bit, no parity, baud rate 38 400), the address of the servostar (ADDR 0), the way the servostar should respond to the host (PROMPT 1) and the error flag (MSG 1), and no error had been detected when I run the program. I should mentioned that after I sent an instruction such as ADDR 0 terminated with a carriage return, I set a delay time of 150 ms, then I read the amount of bytes that are in the buffer, and then I read the buffer, as I mentioned no error message has appear and the ADDR 0 instruction is read from the buffer. Following the same procedure I sent an instruction to move the motor but nothing happens.
    So far I am not sure if the way I am trying to communicate with the servostar is the correct or if I am missing something, any guidance that anyone my give would be greatly appreciated.

  • HP34970A configuration via RS232

    How do you get LabVIEW to talk to and configure and HP 34970A datalogger via RS232 connection?
    We are new to LabVIEW and need basic help with getting it to work with our equipment.

    First of all, do you have the LabVIEW driver? If not, go to http://zone.ni.com/idnet97.nsf/9b2b33e1993d877786256436006ec498/e4c553c139f78062862568ab005fba3c?OpenDocument and get the driver that matches your version of LabVIEW. Next, make sure you have the right serial cable. Next, configure either the instrument or HP34970A Initialize.vi so that the communication parameters are the same (i.e. parity, baud rate, etc.). Next, pick a VI under the Getting Started pallette of the instrument driver. Pick one that similar to what you need to do and what kind of hardware is inside the box. Next, change the instrument descriptor to be ASRL1::INSTR (if connected to comm 1). Next, run the VI and see what happens. I use a lot of these things but they're all GPIB because
    I'm not masochistic enough to enjoy serial communications. I do seem to recall seeing a post that the instrument driver has the wrong termination character for serial. If you can't get the LabVIEW driver to work, try talking to the instrument using hperterminal. Good Luck.

  • Write/read image to avi file, VI works incorrectl​y from the second run

    Hi everybody, in my labview I write image from IMAQ USB to avi file and read image from avi file, the VI runs correctly at the first run then after that it goes wrong, I can write/read only one frame and it terminates automatically. Does anybody know why and how to solve this?
    Thanks a lot,
    Hannah

    Without seeing your code I can't comment specifically, but if it runs correctly the first time and then stops be looking for something that is not getting reinitialized correctly. Also what exactly do you have to do to get it to work again? Close and reopen the VI? Restart LV? Restart the computer?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Launch Adobe Reader for Android via Intent in Read-Only mode

    One issue I've bumped into recently with respect to launching Adobe Reader for Android via an ACTION_VIEW intent is that fillable forms can apparently always be filled and saved, thus modifying the original file.  That may be wonderful in many applications, but I have a situation where I would really not like users to be able to make any changes to the document (i.e. filling in fields and saving) at the current time.
    I am assuming that there is currently no Intent option to open a PDF in Adobe Reader in true read-only mode (preferably such that fillable fields wouldn't even be fillable).
    For now, I'll probably just have to point to a copy of the file, but it would be more convenient to have a handful of properly-documented options for launching read-only via an Intent.

    GoodReader ($4.99), ezPDF Reader ($2.99) and PDF Expert ($9.99) are well rated and support many more features.
    Here a link for your reference: http://indesignsecrets.com/for-interactive-pdf-not-all-readers-are-equal.php

Maybe you are looking for

  • Request variable in Answers prompt

    I am on OBIEE 11.1.1.5 and have created a session variable which is set to 'Enable any user to set the value'. Then default for this varaible is set to CURRENT_DATE. I have created a logical column to calculate Length of Service based on this variabl

  • How do I clear cookies?

    How do I clear cookies?

  • Please help on PL/SQL

    Please help me to this PL/SQL command. I want to count(*) from table i got on DEVCHG.REFRESH_TBL_LIST. declare cnt NUMBER; begin for tbl in (      select table_name from DEVCHG.REFRESH_TBL_LIST loop      select count(*) into cnt from tbl;      DBMS_O

  • Can't Sync Contacts & Address Book on iPhone

    Very frustrated, software update today didn't help. I have MobileMe with iPhone. My iMac, MacBook Pro, and MobileMe "cloud" sync perfectly, but will not sync contacts or calendar with my iPhone, no matter what I do. Tried MobileMeSupport, but no help

  • Internet wap problems

    Hi I have just bought a blackberry 8810 and i am with vodafone PAYT. The mobile came unlocked..I cannot get onto the vodafone live browser because a message appears.This is what is said in the massage. "Unable to open a PDP context to the following A