LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to rewrite the dll file



Travs H. 写:
Hi Maincool!

It sounds to me like you're not necessarily having any troubles calling the function (in the DLL) from LabVIEW. It sounds like you are having troubles getting the functions in the DLL to do what you want them to do. It is hard for us to tell you how to get it to work because none of us know what functions reside in your DLL and how they all work together. However, I'll take a stab at it.

It sounds like you may be loading the progress bar into memory and configuring it just fine. It also sounds like there should be a function to *display* the progress bar. Could this be the case?

Hope this helps!

Travis H.
National Instruments



Thanks a lot! Mr.Travis H.
Yes,I want to be see the progress bar during writing the EEPROM, the struct like the following,
The method SDownloadInfo to check the status of write Eeprom:
struct SDownloadInfo {

BYTE status; status of the process (Eeprom Dawnload Status)
BYTE perc; percentage of the process (0 - 100)
BYTE err; error code (see ERR_CODE in Sbit100.h.)
BYTE nRetry; n. attempt (1 - 3)
}
That means that I want to get the value of the status(I can get it),Byte PerC,like the progress Bar,
nRetry, the times attempt.
err.
Thanks your help!
maincool
0 Kudos
Message 11 of 16
(929 Views)
Hi Maincool,

Being able to debug your DLL or the use of your DLL is near impossible from this end. Who created the DLL? Maybe they can give you an example on how to use some of the functions. Have you been able to successfully use these functions (that you're having trouble with) before? I would suggest finding some documentation on these functions in the DLL. It sounds like there is something that you are missing when trying to call these functions.

Travis H.
National Instruments
Travis H.
LabVIEW R&D
National Instruments
0 Kudos
Message 12 of 16
(912 Views)
Hi Travs H.

Thank you very much.
This is the dll I want to debug,only like this ,They give me the header file of the dll, they give the examples using VC++ and LabWindows CVI, but I can't debug the "*.h" using LabView, this is the difficult thing that I want to solve.I can use this to realize the writing file, but can't see the progress bar and others function.
maincool
0 Kudos
Message 13 of 16
(904 Views)
Hi maincool,

There is nothing special (generally speaking) about calling a dll from LabVIEW versus any other language. Are you able to get the examples that came with the dll (written in VC++ and LabWindows CVI) to work? If you can get those to work then all I have to recommend to you is seeing exactly how they are called from the example programs and call them in the equivalent way in LabVIEW.

I apologize for the limited response, but this does not seem to be an issue with LabVIEW. This is an issue with getting the dll functions to work (and it just happens to be in LabVIEW). As mentioned above, I would start by getting the functions to work in the given example programs. If you don't have access to those environments, study how the dll is called/used from these example programs and implement that same call in LabVIEW.

Travis H.
National Instruments
Travis H.
LabVIEW R&D
National Instruments
Message 14 of 16
(890 Views)
Hi:Travs H.
void CCbit100Dlg::OnOutofmemoryProgress(NMHDR* pNMHDR, LRESULT* pResult)
{
// TODO: Add your control notification handler code here

*pResult = 0;
}
The debug dll using like above using VC++,but how to call like this by LABView.Thanks your help!
maincool
0 Kudos
Message 15 of 16
(881 Views)
Have you been able to get the VC++ examples to work with the progress bar?

Also, read this PDF document (specifically Chapter 2) for help in calling the dll from LabVIEW:
Using External Code in LabVIEW
http://digital.ni.com/manuals.nsf/websearch/8D930295FFBF9F7686256D2C00624728?OpenDocument&node=132100_US

Travis H.
National Instruments
Travis H.
LabVIEW R&D
National Instruments
0 Kudos
Message 16 of 16
(869 Views)