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.

Using WVDLL.DLL to communicate with LMP91300SWIFEVM Board

Hello,


I am trying to communicate with an LMP91300SWIFEVM board using the WVDLL.DLL possibilities. The environment is as follows:

  • LMP91300SWIFEVM Serial Number: SV600883B-068
  • WV5 DLL Version 2.0.0.2
  • Operating system: Windows7 Enterprise edition, 32-Bit with SP1
  • Eval. board installed (TI, MSP430), driver version shown in device manager is 1.0.8.0
  • Eval. board works fine with WEBENCH Tool (rev. 4.8)
  • SW Development tool: National Instruments LabWindows/CVI (Conventional C compiler)


I have found a sample C code in the document "Programmers' Guide to WV5_DLL API".

int main() {
WvWord board_count;
WvString* board_names;
Wv_Version_Number version_dll;
WvWord code_version;
Wv_Version_Number version_firmware;
Wv_Version_Number version_fpga;
// Enum DUTs
WvWord dut_count;
WvString* dut_names;
WvDUTInfo info;
Wv_Version_Number version_dut;
Wv_Capture_Request req;
WvBool data_valid;
WvWord captured_data[4096];

   WvDebugModuleSetOutputFilename("dlloutput.txt");
   // This is absolutely necessary to start the DLL
   WvDebugModuleModifyAll(TRUE);
   if (!WvBoardEnum(&board_count, &board_names, &version_dll)) {
      return false;
   }
   if (board_count == 0) {
      // No boards thus nothing to do.
      return -1;
   }
   if (!WvBoardOpen(0, "", &code_version, &version_firmware)) {
      // Something went wrong.
      return -1;
   }
   if (!WvBoardDUTEnum(0, &dut_count, &dut_names)) {
      // Something went wrong.
      return -1;
   }
   if (dut_count == 0) {
      // No DUTs. Nothing to do.
      return -1;
   }
   if (!WvBoardLoadFPGA(0, 0, "", &version_fpga)) {
      // Something went wrong.
      return -1;
   }
   if (!WvBoardReadDUTInfo(0, 0, &info, &version_dut)) {
      // Something went wrong.
      return -1;
   }
   if (info.ChannelCount == 0) {
      // No channels to capture. Nothing to do.
      return -1;
   }
   req.DACFreq = 0;
   req.TransferSize = info.pChannelData[0].TransferMinSize;
   req.ChannelDataIndex = 0;
   req.HistogramEnable = 0;
   req.HistogramMaxBin = 0;
   req.DataFormat = info.pChannelData[0].default_data_format;
   if (!WvBoardWriteCaptureStart(0, 0, &req)) {
      // Something went wrong.
      return -1;
   }
   if (!WvBoardReadCaptureData(0, 0, captured_data, 4096, &data_valid)) {
      // Something went wrong.
      return -1;
   }
   if (!WvBoardWriteCaptureEnd(0, 0)) {
      // Something went wrong.
      return -1;
   }
   WvBoardClose(0);
   WvShutdown();
   return 0;
}

I have implemented the code in CVI, but the call to

 lRetPar = WvBoardEnum(&board_count, &board_names, &version_dll)

returns with False and do not detect any board connected to the PC (the eval board is of course connected and installed). Then the further calls have no more sense.

Is there anything, what I am doing wrong? Is there a newer version of the WV5 DLL, which works with this board?

Thank you for any help in advance,

best regards

Peter Samu