Micro controller

Dennis Knutson,
Some time back ( 1/26/05) you were helping someone with a problem communicating with a micro controller. You said if you tried to read too few bytes the vi times out. I'm using the Serial Read Write that ships with LV 7.1. One of our test is to verify that we do not have communications between one serial port to another. The operator keeps the cable off the UUT on the receive but has it on the send port and runs the vi. He verifies no data is received on the Read side of the port of interest. How can I handle this vi error to turn it into a pass/fail criteria for LV7.1? It looks like a Windows error message that pops up. I just want to display PASS or FAIL to the operator. I don't want to display the error message.
Thanks,
Clint

This is the "popup" I get and am trying to avoid see attached. I tried it at my desk w/o any serial card hooked up in case you'd like to try too. Just run the LABVIEW>>Serial vi that is under help>examples>search> type in serial. The vi is the 1st one in the list. If you open it and run it w/o changing anything you get the error I mentioned.
I want the SW to handle the error not the test person. They would have to hit "Continue" to .....continue ! This looks more like a Windows error rather than a LV error. Maybe something with an event vi ???
Attachments:
error.bmp ‏458 KB

Similar Messages

  • "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

  • Control a micro-controller via usb

    Hi,
    I'm looking for a way to control a micro-controller via usb using a java program. The micro-controller is used as an on/off switch. Is there a micro-controller that has a java driver provided?
    thanks

    The environment for Arduino is programmed in Java ( http://www.arduino.cc/en/Main/Software ) and you can use Java serial comms to communicate with it ( http://www.csc.kth.se/utbildning/kth/kurser/DH2400/interak06/6-Comm.html ).
    Mine hasn't arrived yet, but I'm planning to play with one.
    Pete

  • Nexus 5548UP upgrade, note on micro-controller

    Hi, I recently upgraded our 5548UP nexus switches from 5.1(3)N1(1a) to 5.2.1.N1.3. during the end of the upgrade (before rebooting) it says the following -
    ote: Micro-controller upgrade needs a power-cycle to take into effect.
    On success of micro-controller upgrade, SWITCH OFF THE POWER to the system and then, power it up.
    Do we really need to power cycle the SW, power off and on? is this step really needed after the upgrade aas it has already rebooted?
    Thnx

    Hi,
    the note during the upgrade confuses me too.
    As far as I understand, it depends on image uC version change.
    Images will be upgraded according to following table:
    Module       Image         Running-Version             New-Version  Upg-Required
         1      system             5.1(3)N2(1)            5.2(1)N1(2a)           yes
         1   kickstart             5.1(3)N2(1)            5.2(1)N1(2a)           yes
         1        bios      v3.5.0(02/03/2011)      v3.6.0(05/09/2012)           yes
         1      SFP-uC                v1.0.0.0                v1.0.0.0            no
       101       fexth             5.1(3)N2(1)            5.2(1)N1(2a)           yes
       102       fexth             5.1(3)N2(1)            5.2(1)N1(2a)           yes
         1   power-seq                    v5.0                    v5.0            no
         1          uC                v1.0.0.2                v1.0.0.2            no
    In this case no version change -> power off/on is not necessary.
    Best regards

  • Add push button tp Micro-controller

    Hi All,
    I appreciate if you read my problem and answer me:).
    I am using CSMB12 micro controller, which has port S as a SCI. 2 pins of this port is TXT and 2 pins are RXT. Right now i used one pair of these pins for both Bluetooth and LCD. now I need to add push button to my system, whenever I click on the push button, my micro start working and calculating the program, and whenever i click it again, it stops calculating and show the value on the LCD, and use another button for sending data by Bluetooth.
    my problem is:
    1-I used one SCI for both LCD and Bluetooth, how can I separate them?
    2-Do you have a y sample codes for adding push button switch?
    If you need my code, i can upload it.
    really thank you.
    Regards,
    Sb

    Just create the the UINavigationController wherever you need to show its root view controller. With no storyboard segue you would typically use something like this. I initiated from a UIButton action for this example. Instead of a generic UITableViewController, use the custom view controller class of your root view controller (PauseMenuTableViewController?). If you are using old-school nib/xib, replace initWithStyle with initWithNibName.
    - (IBAction)showWhateverViewButtonClick:(id)sender {
        // create whatever view controller type will be the root of the navigation controller
        UIViewController *rootViewController = [[UITableViewController alloc] initWithStyle:UITableViewStylePlain];
        // create a navigation controller using that view controller for the root
        UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:rootViewController];
        // show the navigation controller (modal)
        [self presentViewController:navigationController animated:YES completion:NULL];

  • Connect a PIC/MCU micro controller to serial port of phone

    Hello,
    I am relatively new to j2me programming and i would lke to ask if it's possible to connect a MCU to the serial port of the phone and receive streamng data while the MIDlet is on?
    If so how can this be done> Does it work the same way a serial connection? I connect the MCU to the USB pins then to the mobile phone.
    Does anyone who have worked with this care to share their valuable experience? Thanks in advance.

    Hi, i checked with the helpdesk from motorola and they replied that i require a license to access the proprietary interface (please refer to the reply below). I'm thinking ofusing Sony Ericsson k610i since it's JP-7. However, I wonder if they have similar issues with it.
    It seems that since we are to interfacing with a PC, the allocation of a virtual port might be a problem, that'smy main concern.
    FAQ found in motorola website:
    We'd like to connect a RS232 device to a RAZR V3 phone. From a Java API perspective this is possible via the CommAPI.
    We have succesfully tested to connect the RAZR V3 Mini-USB with a PC via a USB-cable - and we were able to transmit data from the RAZR V3 to the PC (Hyper Terminal) and vice versa.
    Which technology is needed in the RS232 device (no PC - just a stand alone RS232 device) to communicate to the RAZR V3 via the Mini-USB?
    Answer
    We do not normally support the use of non-PC RS232 connections to current Motorola handsets. The only serial connection supported is serial-over-USB, where the handset is connected to a USB port on a PC, and the PC operating system assigns a virtual COM port to the USB connection for this purpose. Microsoft Windows is normally needed to meet this requirement.
    Although RS232 functionality exists within the handsets, it is a Motorola proprietary interface only available to firms who licence the technology from us. Motorola currently licenses the CE Bus technology to selected 3rd party companies interested in building accessories for our PCS devices. Please contact Gene Eggleston ([email protected]) or telephone 847-523-4976 (USA) for information on the license and business arrangement. As a licensee you will receive a specification that details the access and use of Motorola's CE Bus.

  • Labview interface with micro contoller

    i am new to labview. I need to know whether DAQ card is needed to interface with micro controller? if no need then any one can you explain how to inter face microcontroller 89c51 with Labview...... if needed then explain how to interface?
    JAGADESAN ASOKAN
    J@G@De5@N
    Solved!
    Go to Solution.

    In general, no, you don't need a DAQ, because in your case, the uC is the DAQ. Your challenge is to set up an interface between the computer and the uC (whether using LabVIEW or anything else).
    In my opinion, the easiest way to accomplish that is to set up a serial interface with the uC, and use LabVIEW to control / read the uC serially using VISA. This would require the least amount of hardware and least cost. I2C, if available, is also a way to go if you have the interface.
    Richard

  • Understanding compile errors due to copying code from a doc file and not a txt file

    SITUATION:
    My instructor for my micro-controller class refuses to save sample code to a text file and instead saves it to a word document file instead. When I open up the doc file and copy/paste the code into my IDE "CodeWarrior" it causes errors upon compile time.
    I am having to rewrite all the code into a text editor and then copy/paste it into my IDE.
    MY UNDERSTANDING:
    I was told to always save code as a text file because when you save code as a word document file it will bring in unwanted characters when your copy/pasting the code into your IDE for compiling.
    Their are students in my class using the schools computers running "Windows" that copied and pasted the code into CodeWarrior and it compiled fine. This is not only frustrating but confusing. However, I know their are students in class with "PC's" running windows that had the same trouble I did so I know it's not a Mac issue. 
    Also I am running "Parallels" because my IDE for this micro-controller "Code Warrior" is not avaiable for my OS. I realize there are several IDE's out there that require "Windows OS" in general but I know this situation is not a Mac issue or Parallels issue or even a Windows issue. It's purly an issue of formatting that is done between the file being copied and the target program or so I'm understanding.
    Can someone exlain to me in better words or perhaps provide a resource, documentation or article that will enlighten me on this issue. I would like to better state my case next time. I'm tired of being told this is a MAC issue and that Windows is just plain better.

    The problem is (as you suggest) almost certainly a gremlin issue - characters that for one reason or another Code Warrior cannot interpret correctly. Why it happens to you and not others is a different matter. That could mean that the pofessor uses fonts that are not on your machine, or that he is using a different version of word, or it could be in how you access the data. For instance, if the prof posts this word doc on the web you may get different results if you download the file and open it in Word as opposed to opening it directly from a web browser.
    The sure-fire solution is to download TextWrangler and copy the code in there first. TW has a number of tools for finding and removing unpleasant characters. it adds a step, but... you could also try resaving the doc file as a plain text file from within word.

  • Application invoked from portable space (USB) Crashed on windows 8.1 OS

    Hello ,
    I have an application available on portable USB Drive (Memory present on external controller ), I can open this application on PC when USB is connected to PC.
    USB will act like mass storage device ,and  application code is kept inside mass storage device .
    when this application is evoked using binary file , it will send request (req.txt) to another controller through HTTP server and controller will send response back  response (RES.txt) (Textfile format)
    when RES.txt file will come on Portable drive , IT WILL GET CORRUPT . and application will crash.
    i did Recovery and log is as follow :
    C:\Users\Bino>chkdsk F:/r
    The type of the file system is FAT.
    Volume Serial Number is 0123-4567
    Windows is verifying files and folders...
    The size of the \RSP.TXT entry is not valid.
    File and folder verification is complete.KP[;MK
    Convert lost chains to files (Y/N)? y
    512 bytes in 1 recovered files.
    Windows is verifying free space...
    Free space verification is complete.
    Windows has made corrections to the file system.
    No further action is required.
        1,415,680 bytes total disk space.
              512 bytes in 1 hidden files.
            5,632 bytes in 5 folders.
          512,512 bytes in 70 files.
          897,024 bytes available on disk.
              512 bytes in each allocation unit.
            2,765 total allocation units on disk.
            1,752 allocation units available on disk.
    This works fine with windows 7 and 8 OS.
    please guide me about the problem.

    Thank you for the Replay,
    I performed steps provided by you , but it did not help.
    on other hand, i have collected some more data regarding
    this issue.
    1. went to SAFE Mode and tried to run the application from USB
    2. got Exception "The instruction at 0x00407038 referenced memory at 0x00000078. The memory could not be read"
    some more info on setup :
    we have a micro controller on board, some part of memory (present on board) is used to keep application and server. we can open this memory via USB connection to PC. then we can see all files present at this memory on PC (behaves like externally connected
    USB Drive) . 
    When we start this application . it will start the server . server will send 'request file' to controller soft. (this part is working fine), and controller will send back response , as soon as response file(RSP.txt) will appear in USB drive it will get corrupted
    .(here RSP.txt file is present in controller USB decided memory but to open this we are using PC RAM). crashing of RSP.txt file will crash whole application. This RSP File is of FAT Type.
    i have copied application in another external drive and tried to RUN application. it will not crash  . but USB can not receive the "RSP.txt" (as it is not in communication with controller soft). and problem is in response file.
    BR,
    sanjyot

  • Is It a Dead Drive?

    Hi.
    I've made a lot of research about this problem before I post this. I found a lot of posts having a similar issue, but all the posts didn't have a resolving answer. I'm hoping that this one will.
    I have a mac pro (10.8.2) with 3 SATA drives in it. All drives are the same type, all came originally with the mac. Today, I turned on the computer, and the first thing I got is a message saying "The disk you inserted was not readable by this computer" with three options saying "initialize", "ignore" and "eject." I clicked "initialize" and it opened the Disk Utility for me and I noticed different things:
    The first thing I noticed is a drive named "Media" on top of the list. It doesn't have any information. Total Capacity is 0. Its Connection ID is Bay 3 (The dead drive apparently). I don't know why it is named Media. It cannot be erased, verified nor repaired. All options are grayed out.
    The second thing I noticed is that the 3rd drive is missing from the list. It used to have the name Macintosh HD 3, but now it's not there.
    I opened the Finder to check things out. Macintosh HD 3 is not there. Even this drive Media is not visible also.
    I rebooted the Mac using the recovery mode. I went to the Disk Utility. Same thing. Media is on top. Disk 3 is missing.
    What happened before that? Last night. I tried to create an encrypted blank disk image inside Macintosh HD 3, but the process was stopped for some reason. I don't remember what was the error message exactly. The image file was there on the drive although the process stopped. I couldn't delete it. I suspect that this could be related to the disk failure somehow. Is it dead?

    Rotating drives are really quite complex. They contain a micro-controller, a little private RAM, a buffer at least as big as a Track, and a Sea of Magnetic media. All that stuff has to be working correctly for the drive to be useable.
    Data are written to the drive using a semi-redundant code that can accommodate bursts of errors. Each read is passed through error-correction logic in an attempt to launder out any bursts of errors that may have occurred.
    The Sea of magnetic media is so vast that there will inevitably be defects in the magnetic regions. Drives have always had the ability to have a few spare blocks, and the micro-controller can make semi-permanent substitutions for any blocks found to be bad at the factory. There are also spare blocks that can be substituted for blocks that go bad in the field (they may or may not be from the same pool of spares as the factory spares.)
    In some drives, important drive information, such as the spares substitution table, is stored on a private track on the drive. If that information becomes unusable, the drive cannot report a sensible size/capacity.  At that point, the drive is unusable.
    There is also certain analog calibration and track location information encoded on the drive. If that gets messed up, the drive is unusable.
    It can also develop so many Bad Blocks that there are not enough spares to fix it up. At that point it may continue to respond to requests to initialize, but initialization will fail. Then the drive is not reliable enough for you to trust it with your data, and should be retired.
    And lastly, some drives encountering internal errors will simply "disappear". They drop out and no longer show in System Profiler when they encounter a serious internal error. Only a power-off cycle brings them back for a little while, then they drop out again.
    I think what you are fishing for is, ¿Did I do something wrong to make this drive die?
    The answer is, you did not. Stuff happens. Drives die.
    "Any drive can fail at any time." That's why we need backups.

  • Under Windows 8.1, Adobe Drive crashes on File- Check In... when invoked from an Adobe creative application.

    I am testing my drive connector on Windows 8.1 (64-bit) using Adobe Drive (5.0.2) with Photoshop CC (15.1.0.148) and Bridge CC (6.1.0.116), and I find that if I use File->Check In... from the creative apps (I checked InDesign too), the application crashes inside of AdobeDriveUI.dll.  The crash happens as it attempts to display the dialog that solicits a Check In comment.
    I have tried using both the 32-bit and the 64-bit version of Adobe Drive, but both exhibit the same issue.  I am quite certain that my connector is not involved, as the crash happens in native code that collects the version comment *before* my ICheckInHandler instance gets called. 
    I am interested in any insight or work-arounds that might exist.  Thanks for any help!
    Here are details in the Windows Event Viewer's XML format:
    - <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    - <System>
      <Provider Name="Application Error" />
      <EventID Qualifiers="0">1000</EventID>
      <Level>2</Level>
      <Task>100</Task>
      <Keywords>0x80000000000000</Keywords>
      <TimeCreated SystemTime="2014-10-02T15:36:38.000000000Z" />
      <EventRecordID>5226</EventRecordID>
      <Channel>Application</Channel>
      <Computer>Win8VM</Computer>
      <Security />
      </System>
    - <EventData>
      <Data>Photoshop.exe</Data>
      <Data>15.1.0.148</Data>
      <Data>53d97a8f</Data>
      <Data>AdobeDriveUI.dll</Data>
      <Data>5.0.2.16</Data>
      <Data>532b518c</Data>
      <Data>c0000005</Data>
      <Data>0000000000008ca8</Data>
      <Data>dec</Data>
      <Data>01cfde5650e17527</Data>
      <Data>C:\Program Files\Adobe\Adobe Photoshop CC 2014\Photoshop.exe</Data>
      <Data>C:\Program Files\Common Files\Adobe\Adobe Drive 4\Client\AdobeDriveUI.dll</Data>
      <Data>e5865b18-4a49-11e4-8271-000c29022208</Data>
      <Data />
      <Data />
      </EventData>
      </Event>

    Thank you for the Replay,
    I performed steps provided by you , but it did not help.
    on other hand, i have collected some more data regarding
    this issue.
    1. went to SAFE Mode and tried to run the application from USB
    2. got Exception "The instruction at 0x00407038 referenced memory at 0x00000078. The memory could not be read"
    some more info on setup :
    we have a micro controller on board, some part of memory (present on board) is used to keep application and server. we can open this memory via USB connection to PC. then we can see all files present at this memory on PC (behaves like externally connected
    USB Drive) . 
    When we start this application . it will start the server . server will send 'request file' to controller soft. (this part is working fine), and controller will send back response , as soon as response file(RSP.txt) will appear in USB drive it will get corrupted
    .(here RSP.txt file is present in controller USB decided memory but to open this we are using PC RAM). crashing of RSP.txt file will crash whole application. This RSP File is of FAT Type.
    i have copied application in another external drive and tried to RUN application. it will not crash  . but USB can not receive the "RSP.txt" (as it is not in communication with controller soft). and problem is in response file.
    BR,
    sanjyot

  • Java socket - unsure road to take!

    Hi all,
    We have an application requiring data transfer from a JSP Web application (socket client) and a stand-alone java application (socket server).
    This java stand-alone app communicates to an industrial microcontroller connected to the RS-232 serial port.
    When this java apps received a command from the JSP web app, it cannot service any other command from other uses, since there is just one RS-232 serial port on the computer. We would like to rely on the java & network environment to buffer additional commands receive simultaneously, as opposed to write code on the java socket server to handle this. In other works, our java stand-alone operates in an assynchronous, single-task mode.
    We are unsure which approach to take as far as java socket goes:
    1) simple socket server/client;
    2) multithread socket
    3) pooled
    Can anyone advise us.
    Thank you
    Trajano

    Hi Pete,
    1) Yes, we can have more than one user trying to access the micro-controllers, because we have in reality a network of micro-controllers connected to the single RS-232 computer port via a RS-485 to RS-232 converter;
    2) If a second user tries to issue a command to micro-controller, I would prefer for the java socket/environment to take care of the buffering, by just delaying the response, until the first user gets its command serviced
    3) If there is 1 user, him/her might issue several commands at the same time, by opening several JSP pages;
    4) No the controllers can service any instruction coming up at any time. The protocol is master/slave. The java app issues a request and the micro-controlle replies back and ready to accept any other request.
    ISSUE: My preference is for the system to take care of commands arriving at the socket server.
    This java app has two threads:
    1) Thread1 is the java socket server and upon receiving a command it will update three (3) properties:
    micro-controller address, command and product code
    2) Thread32 will be responsible for polling the 3 properties to check if they've changed. Upon detecting a change, it will build the data string and send to the RS-232 serial port.
    Any ideas/suggestions.
    Thanks in advance for any assistance.
    Regards

  • Java and HTML or PHP question

    I am not sure of my best course of action and would appreciate some input. My problem is this. I have written an application in java that communicates with a
    micro controller and passes information back and forth.I read info from sensors and relays and make changes to them. My current GUI is set up with tables to
    display this info. I am in the process of creating a graphics based interface to display the information in a web page but I am having trouble getting my
    java program to update the HTML page. I have considered using java to update a database with values and then reading the database with PHP and updating the
    HTML but I do not know how to get the java to run the PHP. I can use the java.awt.desktop API to display the html but I cant get it to display the .php files
    due to the server issues with PHP. I am not sure what I am looking for here. Javascript? AJAX? What I want is for the user to push a button that loads a
    web page and have java read that html file to determine which specific values to update, then update specific text boxes with those values from the
    micro controller. I already have the communication with my current java program. I know this is all a little confusing and convoluted and I apologize for
    that. I am just having a tough time formulating a plan of attack. Any ideas?
    Thanks in advance,
    Ray
    Any ideas are welcome and greatly appreciated.

    I am not sure of my best course of action and would appreciate some input. My problem is this. I have written an application in java that communicates with a microcontroller and passes information back and forth.I read info from sensors and relays and make changes to them. My current GUI is set up with tables to display this info. I am in the process of creating a graphics based interface to display the information in a web page but I am having trouble getting my java program to update the HTML page. I have considered using java to update a database with values and then reading the database with PHP and updating the HTML but I do not know how to get the java to run the PHP. I can use the java.awt.desktop API to display the html but I cant get it to display the .php files due to the server issues with PHP. I am not sure what I am looking for here. Javascript? AJAX? What I want is for the user to push a button that loads a webpage and have java read that html file to determine which specific values to update, then update specific text boxes with those values from the microcontroller. I already have the communication with my current java program. I know this is all a little confusing and convoluted and I apologize for that. I am just having a tough time formulating a plan of attack. Any ideas?
    Thanks in advance,
    Ray
    Any ideas are welcome and greatly appreciated.

  • Synchronous serial communication

    Hello All,
    Is there anybody with experience in synchronous communication or have
    board vendor adress.
    Any information would be very helpfull.
    Thank you in advance.
    Michael

    Some years ago I have to do something similar. We wanted to do some simple data communication PC to CPU board for test purposes. We ended up taken a small and cheap micro-controller, which we interfaced to the CPU board. Then we used RS232 from the microcontroller to the PC. The whole setup required 2 circuits, and was soldered up on a prototype board. At the end of the day the project worked as we wanted. If you do not like soldering you may pick up a cheap microcontroller test board. The cost very little compeered to your NI IO unit (USB 6509). I am just passing this as an idea. It may not fit your need.By the way are you sure you do not have a free UART port on your CPU board you can use for your testing
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • PIVOT with Oracle Forms

    Hi All,
    I want to transform rows to columns where no. of rows are not fixed. I came across so many methods of doing it like using xmlagg , listagg,SYS_CONNECT_BY_PATH PIVOT and all but those queries won't compile in forms builder.
    Any ideas how to do it in Forms itself without going for DB procedure/function.
    I am using Forms 10.1.2.3 and 11g DB.
    TIA

    If I understood , the intial question is about pivot in forms, but your link is for sql.
    [...] however as point of requriement, is it possible in 10g /11G Froms.And I hereby question that requirement. If someone asks you how to write a Hardware Driver in Oracle Forms because he doesn't like or want or must not do it in C do you show millions of lines of code on how to run an oracle form on a micro controller, or do you point out that the requirement is somewhat flawed?
    Fact is that I don't care how it is done in forms, if this would be my requirement I would go straight foreward using pivot instead of writing tons of unnecessary code.
    cheers

Maybe you are looking for