Error ! ADC with LabVIEW for ARM

I cannot get the wave Amplitude and frequency? I don't know how to use ADC !
thanks!

Do you mean the LM3s8962 evaluation board?  If so, the pins should be labeled accordingly on the board - ADC0, ADC1, ADC2, etc.
Drop an EIO node with the same name as the pin and it should work fine from there.
Here are the schamtics :  http://www.realview.com.cn/UploadFile/2008111510295067433.pdf

Similar Messages

  • Accessing Onboard ADC with LabVIEW for ARM

    I am working with the LM3S9062 Evaluation board and LabView for ARM system, and want to measure an analog voltage using the ADC, however I cannot determine which of the Digital Inputs is linked to the ADC. I need to know how the gpio mapping corresponds to the pinout of the Device.  Any thoughts?

    Do you mean the LM3s8962 evaluation board?  If so, the pins should be labeled accordingly on the board - ADC0, ADC1, ADC2, etc.
    Drop an EIO node with the same name as the pin and it should work fine from there.
    Here are the schamtics :  http://www.realview.com.cn/UploadFile/2008111510295067433.pdf

  • Can I target the STM32 Primer2 hardware with LabVIEW for ARM

    The STM32 Primer2 hardware looks very cool.  Can LabVIEW for Arm target this hardware?  From looking at the list of ARM devices supported by LabVIEW, this would appears to be a Tier 2 device (ARM Cortex-M3) with no support for TCP/IP or IO.
    Can anyone tell me the feasibility or effort required to get TCP/IP, IO, and maybe even display support for this device? 
    Message Edited by Jim Kring on 09-11-2009 10:46 AM

    Have you ever said something you wish you could take back after having time to reflect upon it?  Another forum I like, http://newsbusters.org lets the author edit his posts for a short time.  Maybe NI could to that and I would not be pulling out my foot so often.
    Well, perhaps I was a bit more "colorful" than I meant to be.  Frustration does that to me sometimes.  Still the idea of a strong rope covered with disgusting risks does get the point across magnificently.  I just wish I had saved it for something more suitable.
    Let me think back to some of the problems I've had in which I've lost hours trying to figure out...
    1.  Can't use the Wait ms function.  It halts the program.  Express wait works fine.  It was sprinkled throughout which made it hard to isolate.
    2.  Some sub VIs don't run unless they are checked as inline code.  I don't yet understand why.
    3.  At the beginning of my main vi there was a small cluster in which I filled the data from an SD card file.  I used a constant of the cluster on the input of the Bundle function, but because my program and variable sizes were near the max I changed a number of variable representations to save memory.  ...But I didn't replace the constant.  The program started exhibiting really strange behaviors.  I couldn't even get a simple state machine to run.  I was reduced to commenting out (disable structure) sections to find the problem before noticing the coercion dot on the input to the bundle (The dot against the red string color doesn't stand out very strongly which is why I missed it).  Apparently it overwrote memory since the older cluster was significantly larger than the new.
    4.  Spent a lot of time trying to get the SD card to work with SPI functions.  Even though I read that 2009 supported SD card file services I didn't intuitively understand how to wire up since the Open/Create/Replace function has a ref num output which actually connects to the file(use dialog) input of the read and write functions.
    5.  Had a problem with breakpoints and probes not working.  That apparently was caused by item #3.
    6.  Typo bug in the Arm_irq.c file  LM3Sxxxx_GPIOCAHandlerP to LM3Sxxxx_GPIOCHandlerP
    Some of these are of the rope variety. A few are actual bugs.  All probably could have been solved in moments had I a local guru.  Anyway, I've spent hours and my hands hurt.  I hope to have this little project working on the LM3s8962 today and after some hardware changes will port it over to the Primer2... Hopefully...
    This forum has been a real help... especially your quick responses.
    regards to all,
    David 

  • LabView for ARM - MCB2300 Audio

    Hi, and thanks for reading!
      My name is Chuck and I'm an undergrad ME student taking a mechatronics course. We were asked to create a proximity alarm with the MCB2300 and an IR proximity sensor. I have the entire program running correctly, but this lab has brought up a couple questions about how to better implement audio with the LabView for ARM processors.
      I understand how interrupts work, and I've seen a couple examples online of using an interrupt with a timed loop, but I believe the current version of LabView (2010) doesn't support that feature any more. I had a couple questions about how to get a feature similar to this to work with LV 2010.
      I was thinking I could have the proximity trigger enable an interrupt that I could use to generate higher quality audio than I am already making with a While - Timer loop. However, I'm not sure how to make an increment in the interrupt VI without using some form of a loop. The solution I'm thinking of at the moment is to make a For loop run once and to have an incrementing integer separate from the loop iteration (which would only go from 0 to 1) that stores its most recent value in the shift register.
      My other question is about playing a sound file through the MCB2300. I wrote a VI that reads a .wav file and writes each sample as the output needed to drive a speaker, but that decompression turns a 10KB .wav file into a 300KB text file. I also don't have a way to really load the text file onto the board. Is there any reasonable way to go about this? I found an example online that processes audio data using the MicroVision software, but I don't want to learn a new language to implement this.
      Sorry for such a long post, I just had a couple questions and was looking for some feedback. Any help would be greatly appreciated.
    Thanks so much!

    charlestrep91 wrote:
    Hi everyone,
    I just got my Labview for ARM cortex M3 evaluation kit and I can't download a simple program to the target. I'm using the Keil ULink 2 programmer and I get this error when compiling/downloading:
    [4:23:16 PM] Status: Error
    SWD Communication Failure
    Error: Flash Download failed  -  Target DLL has been cancelled
    Detail: [UVSC_PRJ_FLASH_DOWNLOAD, MSG: 0X100A, STATUS: Ex.] (1) 
    Status: FLASH download error.
    I have read about this error and NI simply refers to Ulink2 user's guide which has this description for this error:
    Serial Wire Debug communication is corrupted. The target SWD interface is not working properly. Mainly caused by the target: debug block not powered or clocked properly. Avoid Deep-Sleep modes while debugging. Lower the Max Clock frequency in the ULINK USB-JTAG/SWD Adapter section.
    I have tried to "Lower the Max Clock frequency in the ULINK USB-JTAG/SWD Adapter section" but it didn't resolve the problem.
    I have also tried to download the program using the usb port on the dev board but instead I get this error:
    [4:51:22 PM] Status: ErrorUnexpected error occurred.
    [Source: Target is in debug mode
    Detail: [UVSC_PRJ_ADD_GROUP, MSG: 0x1002, 
    STATUS: 0xA] Code: 10]
    What am I supposed to do with that?? I'm wondering if the dev board is defective. And this was supposed to be plug and play...
    Any help is greatly appreciated!
    I'll ask the obvious question, are you intending to use SWD or just download through the JTAG.  Check your settings.  I have not used the ARM with LV, but can you download anything using the Keil software?  Give that a try.  That may tell us where the problem lies.  Try to duplicate your settings in LV from the Keil sw.
    Reese, (former CLAD, future CLD)
    Some people call me the Space Cowboy!
    Some call me the gangster of love.
    Some people call me MoReese!
    ...I'm right here baby, right here, right here, right here at home

  • LabVIEW for ARM 2009 Read from text file bug

    Hello,
    If you use the read from text file vi for reading text files from a sdcard there is a bug when you select the option "read lines"
    you cannot select how many lines you want to read, it always reads the whole file, which cause a memory fault if you read big files!
    I fixed this in the code (but the software doesn't recognize a EOF anymore..) in CCGByteStreamFileSupport.c
    at row 709 the memory is allocated but it tries to allocate to much (since u only want to read lines).
    looking at the codes it looks like it supposed to allocated 256 for a string:
    Boolean bReadEntireLine = (linemode && (cnt == 0)); 
    if(bReadEntireLine && !cnt) {
      cnt = BUFINCR;    //BUFINCR=256
    but cnt is never false since if you select read lines this is the size of the file!
    the variable linemode is also the size of the file.. STRANGE!
    my solution:
    Boolean bReadEntireLine = (linemode && (cnt > 0));  // ==
     if(bReadEntireLine) {    //if(bReadEntireLine && !cnt) {
      cnt = BUFINCR;
    and now the read line option does work, and reads one line until he sees CR or LF or if the count of 256 is done.
    maybe the code is good but the data link of the vi's to the variables may be not, (cnt and linemode are the size of the file!)
    count should be the number of lines, like chars in char mode.
    linemode should be 0 or 1.
    Hope someone can fix this in the new version!
    greets,
    Wouter
    Wouter.
    "LabVIEW for ARM guru and bug destroyer"

    I have another solution, the EOF works with this one.
    the cnt is the bytes that are not read yet, so the first time it tries to read (and allocate 4 MB).
    you only want to say that if it's in line mode and cnt > 256 (BUFINCR) cnt = BUFINCR
    the next time cnt is the value of the bytes that are not read yet, so the old value minus the line (until CR LF) or if cnt (256) is reached.
    with this solution the program does not try to allocate the whole file but for the max of 256.
    in CCGByteStreamFileSupprt.c row 705
     if(linemode && (cnt>BUFINCR)){
       cnt = BUFINCR;
    don't use the count input when using the vi in line mode. count does not make sense, cnt will be the total file size. also the output will be an array.
    linemode seems to be the value of the file size but I checked this and it is just 0 or 1, so this is good
    update: damn it doesn't work!
    Wouter.
    "LabVIEW for ARM guru and bug destroyer"

  • Programmin​g STM32 with LV for arm module?

    just asking if someone have experience with this.
    maybe you can give some tips?
    regards,
    Wouter.
    Wouter.
    "LabVIEW for ARM guru and bug destroyer"

    Almost 1,5 year later but,
    I'm working now with the EK-LM3S8962.
    you can programm the STM32 (primer) but you must be able to programm it with a keil debugger (JTAG)
    de primer has a build in debugger (RLINK) and there's no RLINK plugin in KEIL uVision, yes i did try with DLL's
    If I had time I would try it. But I am sure that it is possible
    Wouter.
    "LabVIEW for ARM guru and bug destroyer"

  • Help with Labview for Linux applicatio​n - datalog to XML format

    Hi,
    I am working on an application that makes use of a PDA for instrument control and data acquisition, and all our code has been written with the use Labview PDA 8.2. The instrument data is returned wirelessly to a remote server, and one of the specifications we set early in the project was the data would be returned in XML format in line with Labview's inbuilt XML schema.
    Unfortunately, this XML funtion is not available on Labview PDA! We have made a change to return the data in Labview's 'Datalog' format, and then we now intend to run an additional application on the server to convert this information to XML before passing the data to our customer's software.
    We have successfully done this with Labview for windows, but our customer's server is Linux based.
    Is anyone aware of someone (or a company) who would be able to take our existing 'datalog-to-XML' vi and compile it for Linux? The program is really simple, and I would hope that all the functionality we use is supported in Labview for Linux.
    Thanks,
    Mark

    Hi Mark
    LabVIEW VIs that are developed in a Windows environment can be used in a Linux version of LabVIEW. As long as the VIs have not got Windows specific features such as ActiveX or Windows dll call you can run the VI in Linux. Also there maybe some specific drivers that are not supported under the Linux environment (see link). The VI will simply be recompiled in Linux. The Linux user must have a copy of the Linux LabVIEW Development System installed though.
    http://digital.ni.com/public.nsf/websearch/35D2B5E​483A001A18625716B005BE464?OpenDocument
    Kindest Regards
    YatinM
    NIUK & Ireland

  • Error -18004 with LabVIEW Adapter using LabVIEW Run Time Engine 7.1.1

    Hi to all,
    I am trying to use the LabVIEW Run Time Engine 7.1.1 instead of the Development System for executing VIs in TestStand with the LabVIEW adapter.
    The Problem is that I get the following error, saying that my VIs cannot be executed:
    -18004; An error occurred accessing the LabVIEW Run-Time Engine DLL.
    All my VIs were masscompiled with LabVIEW 7.1.1
    How do I manage this problem, in other words how do I get my VIs in TestStand to run with the LV Run Time Engine?
    Thanks for you help,
    - Caribe -
    PS: I configured the adapter to use the  LabVIEW Run Time Engine 7.1.1. When I check back in the dialog "LabVIEW Adapter Configuration" the selector went back to LV Runtime 7.1??? Thats weird dude!

    Hi Caribe,
    Did you find any solution to this weird behaviour? Even I am facing the same problem! If we set the adapter as LV 7.1.1 runtime engine, it changes back to LV 7.1 runtime engine.
    I am also facing -18002 error after mass compiling LV 7.1 folder and my source code folder.
    If you can share your solution, that would be of great help to me. If i couldnt find any solution, I have planned to revert back to LV 7.1 version.
     Thank you,
    Sasi

  • Building a dll with labview for CVI

    Hi,
    I am making some abstract hardware layers for some instruments and i use to work with Labwindows CVI. But i have found ONE instrument, the Instek pst3201 alimentation which is ONLY created with Labview.
    So i downloaded the 8.6 LV demo and builded the llb projet in order to obtain some .dll, .h and .lib files and included it to a CVI project in order to construct an intermediate Dll level.
    Everything builds fine, like usually when i use an IVI driver but my problem is that when i try to call this intermediate Dll level with my abstact hardware layer using LoadLibrary, nothing is returned like if the DLL doesn't exist.
    So my question is : Do you think that this is a problem from CVI (and i repeat that i have made a lot of others abstract hardware layers using IVi drivers except that this time i haven't got any .fp or .c but  a .h and i include the .lib to the project), or a problem from Labview and i should use the LV Application builder if it's different ?

    Hi,
    It's seems that you have no exported function. What function do you have in your header file? did you tryed to create a really simple dll (doing an addition for example ) in LabVIEW only to verify that you are correctly creating the dll?
    Manuel R
    AE dans une autre vie

  • An error occured with Labview 5.1.1 and Netscape 7.1

    After upgrading Netscape from version 7.02 to 7.1 i receive miscellaneous errors after some time while executing an program which sends and receives data via tcp/ip. If an error has occured, it is necessary to restart Labview and Netscape. Then it works some hours before crashing again. With Netscape 7.02 everything worked fine.
    Any solutions?

    Normaly, Netscape (only the Messenger) is running all the time. And some time the Labview-program which uses tcp/ip is running at the same time. This does not make any trouble. But if I am using the Netscape Browser too at the same time, then miscellaneous errors occur and I must restart the whole Netscape suite. If I don't do this, the Labview program always reports an error.
    Little time before Labview reports an error, the Browser view in Netscape is corrupted (some times arabien characters).
    I am using Windows 98SE. With Netscape 7.02 everything worked fine, the error occured after upgrading to version 7.1.
    I haven't looked at the resources yet, but I will do.
    EPH

  • Developp with LabVIEW for PC but need to compile for MAC

    Hello,
    My customer has a LabVIEW Professionnal development suite for Windows.  All the applications should be running under Windows but one (a file viewer) needs to run under both Mac OS and Windows.  How can I acheive this?  Do my customer needs to buy another licence?  Would an application compiled under windows runs on a Mac if the LabVIEW run-tine engine for Mac is deployed?
    By the way, the application doesn't use any OS related VIs...
    Regards,
    Patrick

    Patrick
    You will need to compile the application on a Mac (there is no cross platform compiler). Then you should be able to deploy tothe customers Mac with a run-time engine.
    Visualize the Solution
    CLA
    LabVIEW, LabVIEW FPGA

  • Error trapping with OPEN FOR

    I am trying to add some error handling to this packaged procedure written by someone else.
    How can I check for an Oracle error in the query in m_sql_string? I have tried checking
    SQLCODE after the 'OPEN FOR', but it is always 0 even when errors are being encountered.
    I need to trap errors and write them to an error table.
    CREATE OR REPLACE PACKAGE P1
    AS
    TYPE CHCUR IS REF CURSOR;
    PROCEDURE QRY_WR_STATUS_CHANGES (tsAfter IN VARCHAR2, rsResult OUT CHCUR);
    END P1;
    CREATE OR REPLACE PACKAGE BODY P1
    AS
    PROCEDURE QRY_WR_STATUS_CHANGES(tsAfter IN VARCHAR2, rsResult OUT CHCUR)
    IS
    m_sql_string VARCHAR2(30000);
    BEGIN
    m_sql_string := 'SELECT TS_STATUS, CD_STATUS, CD_WR, RowId
    FROM TABLE_A
    WHERE
    NOT EXISTS (SELECT ''X'' FROM TABLE_B where TABLE_B.USER_NAME =TABLE_A.ID_OPER)
    ) AND
    NOT EXISTS (SELECT ''X'' FROM TABLE_C where TABLE_C.wr = TABLE_A.CD_WR and
    TABLE_C.dist = TABLE_A.CD_DIST)
    AND
    TABLE_A.TS_STATUS >
    TO_DATE('''||tsAfter||''', '||'''MM/DD/YYYY HH24:MI:SS'')
    AND CD_STATUS Like ''%X''';
    OPEN rsResult FOR m_sql_string;
    END QRY_WR_STATUS_CHANGES;
    END P1;
    Thanks in advance.

    Thank you. I just tried adding such an exception block. It compiles and runs fine, but isn't trapping the error. I see the error returned in the results when I call the proc from SQL*PLUS, but can't seem to trap it in the code...it's like I need to check the contents of the OUT data for the error or something. Below is the modified code and then showing executing it and the results. Any further ideas are greatly appreciated.
    CREATE OR REPLACE PACKAGE P1
    AS
    TYPE CHCUR IS REF CURSOR;
    PROCEDURE QRY_WR_STATUS_CHANGES (tsAfter IN VARCHAR2, rsResult OUT CHCUR);
    END P1;
    CREATE OR REPLACE PACKAGE BODY P1
    AS
    PROCEDURE QRY_WR_STATUS_CHANGES(tsAfter IN VARCHAR2, rsResult OUT CHCUR)
    IS
    m_sql_string VARCHAR2(30000);
    BEGIN
    m_sql_string := 'SELECT TS_STATUS, CD_STATUS, CD_WR, RowId
    FROM TABLE_A
    WHERE
    NOT EXISTS (SELECT ''X'' FROM TABLE_B where TABLE_B.USER_NAME =TABLE_A.ID_OPER)
    ) AND
    NOT EXISTS (SELECT ''X'' FROM TABLE_C where TABLE_C.wr = TABLE_A.CD_WR and
    TABLE_C.dist = TABLE_A.CD_DIST)
    AND
    TABLE_A.TS_STATUS >
    TO_DATE('''||tsAfter||''', '||'''MM/DD/YYYY HH24:MI:SS'')
    AND CD_STATUS Like ''%X''';
    OPEN rsResult FOR m_sql_string;
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('Error code is: Long postings are being truncated to ~1 kB at this time.

  • How to interface greek fonts (iso-8859-7) with labview for linux 8.5.1

    I am trying to interface an Labview Linux application with greek fonts ,how i can achieve this out ? I want to use iso-8859-7 icharset. I am using a gentoo distro. Can anyone help me  ?
    thanks....
    Ελευθερία σημαίνει ότι μαθαίνεις να έχεις απαιτήσεις μόνο από τον εαυτό σου, όχι από τη ζωή ή τους άλλους

    Hi Sak1s,
    Are you looking to create labels and captions with Greek fonts?  You may be interested in the LabVIEW Help topic on Localizing VIs. 
    Jennifer R.
    National Instruments
    Applications Engineer

  • Integrating C code into labview for ARM

    Hello,
          I wish to use the library functions written by Luminary engineers for their cortex-m3 controllers. If i wish to use these libraries written in C language in Labview, what i should do? There are large number of labraries are available in their websites. If any one has implemented these libraries in labview please write to me. 
    Nabhiraj

    I would also check the Using External Code in LabVIEW manual, found here
    Bilal Durrani
    NI
    Bilal Durrani
    NI

  • Have anyone used R&S FSEA30 with Labview for Phase Noise Measurement?

    Hi,
    I just accquired a Rohde & Schwarz FSEA30 spectrum analyser. I wonder if anyone here can share their experience in using Labview 8.21 Professional to perform Phase Noise Measurement. I believe Labview 8.21 is far more flexible and powerful than R&S' discontinued FS-K4 Phase Noise Measurement software, which is still being offered at US$3,000 (refurbished). 
    Any links to necessary info and software would be most welcomed.
    Thanks
    Patrick
    Message Edited by PatrickKan on 01-17-2007 03:21 AM

    Hi Patrick,
    I've used LV to carry out Phase Noise measurements on both R&S and Agilent Spectrum Analyzers ( using LV6.0 to LV7.1).  I have used LV8.2 for other purposes..   I tend to prefer R&S over Agilent, especially when programming LV code.  In both cases I've used LV drivers or simply sending instrument commands via GPIB.  The FSEA30 is a very nice SA. 
    The advantage of the FS-K4 software is that it does the calculations for you, thus greatly reducing implementation time.  And for a company, it may very well be worth the investment, especially at US$3K. 
    Sharing software (vi's in this case) is / will be difficult, since the developped sw is owned by the company for whom it was developped.  For instance, I no longer work for the co where this was done for the R&S.  Recently, I implemented a routine for an Agilent SA.  It had a built-in option to carry out the measurements, so the implementation was merely setting up the SA, go into Phase Noise mode (MOV PH commands, PH_F, PH_MEAS, etc) and that was it.  I seem to recall something similar for the R&S, which was a few years ago..  but I think it also had an option to do the PN measurements..   (I will now have to visit R&S website to refresh my memory).
    All & all, using LV8.2 & R&S SA is a perfect combination.  Their LV drivers are quite useful and simple to use.  I like how they are listed on the block diagram of the tree.vi.
    RayR

Maybe you are looking for

  • Error message-mail won't send....

    I keep getting this error message This message could not be delivered and will remain in your Outbox until it can be delivered. The server "smtp.mac.com" did not recognize the following recipients: I have sent out emails to this list of recipients be

  • Driver for hp laserjet 1018

    i want to use an laserjet 1018. but i cannot find an driver for mac os. on the hp home driver support page ther is only drivers for windows and linux. wht can i do?

  • BUG REPORT: Layers with 100% height in timeline knock bottommost layer(s) out of scrollable area

    I have tried to post this twice to the official bug report page, but (somewhat hilariously) the bug report page bounces it back with an internal error about an unknown email address, so I'm posting here too just in case. As I have no idea how to repo

  • Lightroom 1.4.1 crashes every 2 minutes and thumbnails messed up

    My Lightroom crashes every 2 minutes and some thumbnails at the thumbnail slider at the very botttom appearing messed up. Anybody has a solution for this?

  • Print from iPad - Upper Cartridge wants paper?

    Trying to print a simple pdf doc using AirPrint. It should print in 8.5x11 standard size, but the printer keeps giving an error and wants me to load the upper cassette with paper. Not sure why, it can't fit the paper size I want to print with? Odd. H