Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

yes...please tell me more about DLL

Hi aperez and other,
my question before is asking how to pass the data from VC++ to LabView. you have suggested me to use DLL instead of ActiveX if my data is just simple integer. that's right. because i will control my digital oscilloscope using the VC++ program, the particular operation are represented by integer, so i think integer is appropriate. I think the connection between then can be as simple as possible. Can you suggest me what kind of materials and link i should go for more info about DLL for this simple operation? Also i want to ask when the VC++ program pass the data to LabView by using DLL method, will the LabView read the data immediately and perform action afterwards? i have absolutely no idea about them. ActiveX alr
eady make me confused at all.
thanks so much to help me.
have a good day.
CowCow
0 Kudos
Message 1 of 2
(3,309 Views)
Please find the 3 attached files.
"How to create a DLL in VC++" has directions on building dlls in VC++ and calling them from LabVIEW.
Attached Application Node.pdf file is also a great source for creating and distributing dlls.
Resize.zip file has an example on how to resize in LabVIEW an array of strings in the external VC++ code (CIN and DLL). CIN library provides a set of memory management functions that can be used for memory operations in both CINs and DLLs. There is a NumericArrayResize function available to resize a numeric array (to change its number of elements) or a string (to change its length). This example shows how to use this function to resize array of strings. This is something that is not supported directly by this function
and a tricky way needs to be used to actually resize an array of strings (represented by handles).
The attachment includes two VC++ 6.0 projects: a CIN version and a DLL version. A simple VIs that call those libraries are provided. The external code just searches for specified files using FindFirstFile & FindNextFile Win32 function.
Regards,
Zvezdana S.
National Instruments
Download All
0 Kudos
Message 2 of 2
(3,309 Views)