joseph14 Posted March 4, 2023 Share Posted March 4, 2023 (edited) 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 March 4, 2023 by joseph14 Link to comment Share on other sites More sharing options...
0 attila Posted March 6, 2023 Share Posted March 6, 2023 Hi @joseph14 You may be using some old version of the wrapper. In the newer one it looks like this: Link to comment Share on other sites More sharing options...
Question
joseph14
I'm using the dwf.cs/dwfPINVOKE.cs wrapper for C#.
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 joseph14Link 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 accountSign in
Already have an account? Sign in here.
Sign In Now