From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

array point

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::OnSetDMD()
{
      // 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;
}

 

0 Kudos
Message 1 of 1
(2,294 Views)