This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ADS1120EVM: LabVIEW source code

Part Number: ADS1120EVM
Other Parts Discussed in Thread: ADCPRO, ADS1120

Hello,

I'm working with the ADS1120EVM dev kit.

I'd like to create my custom PC app, starting from the LabVIEW files of your PC application.

I've noticed some LabVIEW files in the kit folder, but none of them can be opened, to view the source code.

I kindly ask you to send me the LabVIEW files,

Thank you in advance!

Best regards,

Alan Harris

  • Hi Alan,

    Welcome to the E2E forum!  The plugin files for the ADS1120EVM can be found in the ADCPro plugins directory:

    Unfortunately we do not provide the LabView code for ADCPro.  The LabView code really won't be much help anyway due to how the plugin is just a small portion of the total communication.  The actual communication is through a COM port.

    The ADS1120EVM can be run from a COM port terminal (Hyperterminal, TeraTerm, etc.) and is easiest to run the EVM in this way.  Just connect to the correct COM port and follow the controls in the following document:

    2045.CONSOLE COMMANDS FOR ADS1220EVM basic.docx

    If you wanted to use LabView, you could open a COM port in LabView and issue the same commands.

    Best regards,

    Bob B

  • Thanks for quick response and I wonder since this is using LVCLASS but i'll take look at this alternative method with COMport commands

  • I there any commands through console to utilize the "one shot" and request data demand or will have to have use my own SPI interface directly to the ADS1120?

  • Hi Alan,

    The data is returned as a string of ASCII characters representing the code value in hex in the COM port console window.  So if you press 'd' and 'enter' you will see 4 characters representing the 16-bit conversion result.  For example, you might see '7FFF' which is positive full-scale, and 'FFFF' which is -1 decimal in binary 2's complement.

    If you press 's' and 'enter' you will stream data from the ADS1120.  The data will continue to stream until another key is pressed which halts the sending of the conversion results.  You can save the console data to a file and view the results in some other program like Excel or even ADCPro using the file reader plugin.

    All the command information is in the document I posted earlier.

    As far as one-shot mode, the EVM is really not set up to run in one-shot mode (or single-conversion mode) for plotting reasons of the data using the GUI.

    Best regards,

    Bob B

  • Thanks Bob,

    Either I don't have something setup right or there is another issue.

    with it set to continuous mode "s" streams just find but "d" only returns a null characters

    with it set to Single Shot mode "d" only returns a null characters

  • Hi Alan,

    The 'd' command was primarily intended for debugging and is not a command used in the GUI.  I should have also mentioned that the 'd' command returns the last completed conversion result.  So if you go to single-shot mode it will provide the last completed conversion result and not a new one as there is no mechanism to START the conversion.  As I stated earlier, the EVM GUI is expecting a stream of data and not a single point.

    You may also find that no data is displayed when in single-shot mode and the 's' command is issued.  The design of the EVM was to always use continuous conversion mode.  Single-shot mode was used only to show differences in power consumption when in the low-power state.  We could have designed the EVM differently, but in the end this was the method chosen for operation.

    As to your question regarding the returned value, you may not have noticed but the result is shown at the beginning of the command line and it doesn't display a new line first and then data as with some other commands.

    The normal prompt is:

    ADS1120EVM> and in most cases you will see the command result following a CRLF.  But notice that the 'd' command is actually just issuing a CR followed by the data, then the CRLF.  So you will notice that in the line where 'd' is issued the prompt appears:

    0BC1120EVM> where the first 4 characters are the conversion data.  I apologize for this odd behavior, but as I said this was a debugging function not intended for the GUI. 

    Best regards,

    Bob B