Jump to content
  • 0

FDwfAnalogInStatusNoise - Max and Min using C# wrapper


joseph14

Question

I'm using the dwf.cs/dwfPINVOKE.cs wrapper for C#. 

 

public static int FDwfAnalogInStatusNoise(int hdwf, int idxChannel, double[] rgdMin, ref double rgdMax, int cdData) {
  int ret = dwfPINVOKE.FDwfAnalogInStatusNoise(hdwf, idxChannel, rgdMin, ref rgdMax, cdData);
  return ret;
}


[DllImport("dwf.dll", EntryPoint="FDwfAnalogInStatusNoise", CallingConvention = CallingConvention.Cdecl)]
public static extern int FDwfAnalogInStatusNoise(int jarg1, int jarg2, [MarshalAs(UnmanagedType.LPArray)]double[] jarg3, ref double jarg4, int jarg5);

 

The fact that rgdMin is a double array but rgdMax is just a singular double is confusing me. Shouldn't the max noise also be an array?

Edited by joseph14
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...