Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66852

array point

$
0
0

Hello:

         I have a C demo as below,which uses a byte array point as parament and convert it to short.Now I want to use it in LabVIEW,how can i do?

         The LabVIEW picture I have catched.The input and return value's type I need in LabVIEW is I16.

        Thank you.

 

 

BYTE * PixValue;

void CDMDControlDlg::smileysurprised:nSetDMD()
{
      // TODO: Add your control notification handler code here
      //BYTE * PixValue = new BYTE[98304];

      for(UINT i = 0;i<98304;i++)
      {
            PixValue[i] = 0xFF;
      }

      m_ddcobject.MemToFrameBuffer((short *)PixValue);//return is also a I16
      m_ddcobject.LoadToDMD(17,1);
      //delete []PixValue;
}

 


Viewing all articles
Browse latest Browse all 66852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>