Creating VI for MCB2300 to read digital input

Hello,
I am a student working on a project to use embedded Labview (2009) on a MCB2300 (LPC2378) to do multiple tasks. I have some experience in Labview, but I am a fast learner. I was able to get the board to produce an LCD response to the potentiometer, using my PC's computer as the controller.
I eventually want the microcontroller running an embedded VI to read signals in and produce outputs.  I was able to create a new target for the LPC2378 and view all the elemental I/O's that go with the chip.
Right now I am stuck on calling the Microcontroller's I/O's in Labview. For right now, I want to apply a test voltage with an external PS to one of my input pins on the microcontroller and have it respond by producing some message on the LCD (or spitting out a signal on some other output pin). I have the chip grounded properly.
I don't need help on the LCD callout so much as I need help on getting the microchip's I/O's working. There are so many sub VI's provided by Kiel that I don't really know where to begin.
If anybody can steer me in the right direction or even show me an example VI that uses the microcontroller's pins, I am sure I could pick it up and go from there.
Let me know if you need any additional information. Thanks for your time.
Mark

Hi Mark,
Many of these examples can be accessed via the NI Example Finder. To open the Example Finder, go to Help»Find Examples.... When the Example Finder loads, browse to Toolkits and Modules»ARM»Keil. There are a few folders in that directory that have some great examples that can get you on your way.
Aaron P
National Instruments
Applications Engineer
http://www.ni.com/support

Similar Messages

  • Is LabView able to read digital inputs from maxon motors controller, EPOS2?

    Hello,
    I would like to ask that if LabView is able to read any digital inputs directly from a maxon motor controller, EPOS2. As i have tried making a new VI from the maxon example VI, but the difference is that i've added a input control. But the program doesn't seems to work.
    That's why i would like to ask if LabView can read a direct digital input from the maxon motor controller.
    Thank You & Regards,
    ParkyPak
    Attachments:
    sensor.vi ‏34 KB

    Hello Parky,
    I understand now. I check on the motion controller and it is connected through USB to your computer. In term of controlling the motion controller, you are using some LabVIEW library from maxon. The photosensor is connected to the motion controller may be as a switch or as a limit switch.
    In order to read the value of the Digital input port, you may need to take a look of the libraries to check on what function call and the supported command to check the digital input port. If this is not successful, then question or referring to examples from Maxon motors would be the best.
    I hope that this helps.
    James
    - Meadow -
    LabVIEW 7.0 - 2011, Vision, RT, FPGA
    TestStand 3.0 - 4.5

  • PCI 7330 Read Digital Input

    I have a 4 Motion Axis PCI 7330 card, and I am operating 2 motion axes with it. This system is operating a drill system that will send back a signal once the drill has reached it's full drill length (completed the hole). I have tried to use the "Read Digital I/O Data" VI for this but I can't seem to read in a signal. IS THERE AN EASY WAY TO DO THIS?
    For this VI the voltage to the port will be zero until the drill sends back the voltage signal that it has completed the drill. So all that it needs to do is read that there is a voltage (so anything other than 0) across this line.
    Thanks

    Hello,
    The Read Digital I/O data VI should be an easy way to do this, but something may be going wrong in the code. Can you post/explain what you have done so far? You also may want to try posting in the Motion Control forum. There may be more people there that have done what you are trying to do, so you might get more responses.
    -Erik S
    Applications Engineer
    National Instruments

  • Read digital input

    To read the data sent via a 'printf' use VISA Read, Did I want to know that I could use in LabView function to see if a digital input is active on a microcontroller?
            Thank you

    Hello, since this question is LabVIEW-related it should better be posted in the appropriate board.
    In any case, LabVIEW has a complete set of functions to operate on the RS232 channel and is equippend with all fucntions that are normally used to decode messages coming from external device. Nevertheless, keep in mind that when speaking about two independent device, the interaction between them depends on how both behave. That is, if the microcontrolles sends informations about its I/O then yes, LabVIEW is capable of reading these informations. In order to have some more concrete help you will need to supply some more informations about the messages your device sends on the serial cable.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Trying to create a latching push button using digital inputs

    Hi everyone,
    I'm writing a program to control a motor with 3 push buttons, Up, Down and Stop. I want the Up button to latch when pushed and delatch when Stop or Down are pushed. I've tried the Resettable Latch.vi example program from this website but no luck. It seems like the output  from the AND gate is indeterminate. I've attached my program, Any help would be great! Thanks
    Solved!
    Go to Solution.
    Attachments:
    LatchAttempt.vi ‏140 KB

    Use Index Array to get the single boolean you want from the array.  If you don't wire an index it will give you element 0.  Using this you could have all the switches wired to different pins of the same register on your DAQ device.  Then you could read one byte and sort out which bit does what.  You also need to build the individuale booleans into an array before writing to the DAQ.  Here's a quick example:
    You need to decide which button sets which bit.  I haven't checked the logic of your latch algorithm yet.
    Kelly Bersch
    Certified LabVIEW Developer
    Kudos are always welcome

  • I was given an assingment, but have no idea where to begin. The assingment is to create a text file using notepad with all of my digital inputs and some how make those imputs show up on my digital indicators on my control pannel

    I was given an assingment, but have no idea where to begin. The assingment is to create a text file using notepad with all of my digital inputs and some how make those imputs show up on my digital indicators on my control pannel.
    When it was explained to me it didn't sound to hard of a task, I have no LabVIEW experience and the tutortial sucks.

    StevenD: FYI, I did NOT give you the one star rating. I would never do that!
    StevenD wrote:
    Ow. Someone is grumpy today.
    Well, this is an assignment, so it is probably homework.
    Why else would anyone give HIM such an assigment, after all he has no LabVIEW experience and the tutorials are too hard for him?
    This would make no sense unless all of it was just covered in class!
    This is not a free homework service with instant gratification.
    OK! Let's do it step by step. I assume you already have a VI with the digital indicators.
    "...but have no idea where to begin".
    open notepad.
    decide on a format, possibly one line per indicator.
    type the document.
    close notepad.
    open LabVIEW.
    Open the existing VI with all the indicators.
    (are you still following?)
    look at the diagram.
    Who made the program?
    Does the code make sense so far?
    Is it a statemachine or just a bunch of crisscrossed wires?
    Where do you want to add the file read?
    How should the file be read (after pressing a read button, at the start of the program ,etc.)
    See how far you get!
    Message Edited by altenbach on 06-24-2008 11:23 AM
    LabVIEW Champion . Do more with less code and in less time .

  • Can't change sample rate for digital input on Mac Pro

    Hello all,
    on my Mac Pro with 10.4.10 I can't change the sample rate for the digital input. Whenever I choose 48000 or 96000 Hz it returns to 44100 Hz after a few seconds. Feeding a 24 bit/96000 Hz signal from an external ADC into the optical input doesn't help. No input signal is available for digital recording software such as Sound Studio or Cubase. After changing the sample rate in audio midi configuration to 96000 Hz the sound can be heard for a few seconds but when the setup returns to 44100 automatically the signal is, of course, lost.
    I've deleted all relevant preferences and restarted with resetting paramter RAM. Still the same. With external hardware such as M-Audio Firewire equipment setting the sample rates works properly.
    Thanks to all for helpful clues.

    Hi,
    when E&M signaling is configured on digital interface like the VWIC is, 2 or 4 wires operation is not applicable because there are no wires at all, and reported only for compatibility with the analog E&M card.
    Consequently, you cannot configure that and it will not make any difference to effect of the connection.
    Please rate post if it helps!

  • "External sample clock" and "Rate" for digital input acquisition

    Dear all,
    I want to acquire digital input (21 bits with external clock = 50 kHz) with a PCIe-6343 NI board. Using the  DAQ assistant under Labview, I selected the advanced timing with the sample clock time parametrized as External. However, it is also possible to select the Rate of the acquisition. In my case, i want to get the data at the rising edge of the external clock signal, so at a frequency of 50 kHz.  How can I do that ? I just need to put a Rate of 50 kHz ?
    thanks for your help.
    Cedric 

    Cedric,
    dddsdsds wrote: 
    [...]In my case, i want to get the data at the rising edge of the external clock signal, so at a frequency of 50 kHz.  How can I do that ?[...]
    You answered your question already. If you want to use an external clock, you have to configure the timing source of your task to be external. In order of proper buffer configuration, you should enter 50kHz as rate in addition to the external configuration, but this will not influence the speed of the acquisition (since it is "clocked" externally!)
    hope this helps,
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • How to wait for a digital input to go high?

    I bet the following question is explained somewhere but I don't know how to find it.
    Is there an optimal way to wait for a digital input to transition from 0 to 1? I mean, other than creating a loop that continously polls the input line is there a better way to wait for the transition? With all the "event driven" capability of CVI I suspect there's a slick way to do this but I don't know how to find it. I'm willing to RTFM if I know where to look.
    thanks

    Hi,
    I have never done this, but it looks like it is possible to use the DAQmxRegisterSignalEvent function to assign a function that will be called when a "change detection event" occurs.
    It works on a task basis, so if I'm not mistaken, you need to put the digital to be tracked into a separate task. 
    It is not stated if all NI hardware is compatible with this functionality, so try and see if it works for you.
    Hope this helps,
    Edit: It looks like you have already found the solution by yourself
    S. Eren BALCI
    www.aselsan.com.tr

  • How to create a collection using the Reader for PC or Reader for Mac software.

    Solved!
    Go to Solution.

    A collection is a custom set of books and other items that you create from items on the Reader or the library of the Reader™ for PC or Mac® software. It is a unique and convenient way to organize your items. You can organize and personalize your content by creating collections by subject matter, date, genre or anything that best suits your purpose.
    Create a collection:
    Click the My Library tab.
    On the category bar, click Collections.
    Click the Create New Collectionbutton.
    Enter a collection name and then press Enter on your keyboard. A new collection will be added to the Collections list.
    Add books to the collection:
    Once you have created the collection, click the My Librarytab.
    On the category bar, click to select the book you want to add to the collection. Multiple books can be selected by holding down the Ctrlkey while clicking on the books.
    With the book(s) selected, at the bottom of the screen, click the Add to Collectionbutton.
    From the menu that pops up, click to select the collection you want to add the book(s) to.
    NOTE: The next time you sync your Reader Digital Book, the collection and its contents will be added to your Reader device.

  • Reading a PWM and determining pulse width using a digital input pin on a NI 9425 DAQ

    Hello!
    I have been experimenting with LabVIEW for about a week now and have run into a brick wall.  I have found a fairly effective way of reading a PWM signal through an analog input and determining the pulse width.  However, it is becoming necessary for this project to do this same thing using a digital input.  I've been playing with this for about a day now and am not making much headway.
    For reference, I will be using a 9524 device
    Any ideas?

    Also, if it is helpful at all, I've attached two vi's.  One, functions just as I need it to - but it doesn't involve data aquisition.  The second should be similar to the first, but is non functional - I keep getting an error that my amplitude is zero.
    Any thoughts?
    Attachments:
    DigitalEdgeDetectionKnown.vi ‏47 KB
    DigitalEdgeDetectionRead.vi ‏148 KB

  • Error while reading PO  message when creating confirmation for PO

    Hi all,
    We are on SRM 5.0 SP 13. Extended Classic.
    While creating confirmation for PO in the system,whenI click on the CREATE CONFIRMATION icon,I get the following error:
    Error while reading PO in backend system.Inform System admin.
    when I goto change the PO,I get the foll errors:
    System of purchasing organization O 00000152 and purchasing group O 00000126 differ
    Organization O 00000126 is not a purchasing group; Inform system administration
    Organizational unit O 00000181 is not permitted as purchasing organization
    Purchasing group O 00000126 is not assigned to purchasing organization O 00000152
    On further analysis,I found that the issue is mainly because f the Porg /Grp assigned in the PO doesnt exist now in the org structure in PPOMA_BBP.
    Can I change the Porg/grp now in the PO ?If so,how do i do that ?when i go to the dropdown for the Porg/grp it doesnt show me all of the current Porg/Grps maintained in the Org structure?How does the system determine which P org /grp to show in the value help for these fields under BASIC DATA tab in POu?
    Please advise how I can get rid of this error.
    Thanks!
    Edited by: Rads1234 on Nov 29, 2010 7:40 PM

    Hi Gurus,
    We are on SRM 7 and we are currently facing the same issue.
    In our case, when a PGroups is deleted and unassigned, an interfase from HR is raised and i the SRM PPOMA the Pgroup is not valid anymore and unassigned from the Purchasing Organization.
    Once this happens, we face a blocking issue for all the documents created with Purchasing Groups that has been deleted.
    These documents cannot be processed anymore and and error saying that Purchasing group is not assigned to purchasing organization... is raised.
    Currently we are manually mantaining the validity of the Purchasing Group via PPOMA and transaction PP01. We put the validity to unlimited and the documents can be processed again.
    Anyway we would like to avoid this manual update and to have a false information in te system where the PGroup will be shown as valid while it has been deleted in the past.
    Could you please advise on the best solution on it?
    Many Thanks in advance.
    Best Regards,
    Valentino

  • Can't reliably create a PDF enabled for commenting in Reader

    I've hit a brick wall trying to find out why my Acrobat Pro 7.0.8 is broken. As of yesterday, I cannot reliably create a PDF that is enabled for commenting in Reader. I get an error message: "You do not have permission to write to this file." However, this message is halfway false Acrobat does indeed create a PDF where I tell it to. It's just not a reviewable file, which you can tell when you re-open it and see the special dialog box that first pops in front of you, and there's a key/starburst icon in the lower left corner of the Acrobat window. So the resulting output file isn't really enabled, and I've made no progress.
    All I know is that before May 1st, this Acrobat Pro feature worked flawlessly every time I used it.
    I tested my own file on two other co-workers' PCs and they also cannot save my file as enabled for commenting. One of them has Acro. Pro 7.0.5 and the other one has Pro 7.0.9. Nor can they save other PDF files as enabled for commenting. But creating a short (one-line) PDF from Word or WordPad DOES work, and I can save that file as enabled for commenting.
    I tested a few of my existing PDFs: some of them can be output to the reviewable format without any problem, but some of the more recent ones I can't especially if they're larger. Even a Word file as small as 9 pages will not convert. I tried both printing it to the Adobe PDF printer as well as using PDFMaker. Neither one works on this file. But I was able to create reviewable PDFs from simple Word files and some older (April 2008 or earlier) Word files that were longer.
    I think some incompatibility happened because of the Windows updates that get silently shoved to our PCs every Tuesday (I work for a large company). But I could be wrong to blame Microsoft.
    Would the new Acrobat Pro 7.1.0 update fix this problem?
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=3948
    My system: Windows XP, Svc. Pack 2, Word 2003.

    After I removed the comma in the filenames of my problematic test files, this solution worked for me, too. I was able to again save the PDFs as enabled for commenting in Adobe Reader (to make them reviewable).
    Thank you, thank you!
    This definitely looks like a bug to me, because a comma IS allowed in filenames in both the PC Windows and Mac OS X operating systems.
    Andrea

  • How to create fillable forms for users of reader IX or X in acrobat pro XI?

    I created fillable forms in Acrobat Pro XI. How can i make them fillable also for users with Reader IX or X? As Adobe Reader für Vista or Linux is only available in version IX or X, it is not possible for these users to fill in the forms?

    Open PDF Form in Acrobat XI then choose File > Save As Other > Reader Extended PDF > Enable More Tools (inclues form fill-in & save)...
    Then, save the form with new name and it's gonna work.
    Message was edited by: Anoop9178
    Edited the option.

  • Does adobe reader for android/ios support digital signature?

    does adobe reader for android/ios support digital signature?

    when to support digital signature in adobe reader for android/ios?

Maybe you are looking for