From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Compile Real Time dll in MSVS 2008

I'm trying to compile a dll which is supposed to run as the startup dll on a LabVIEW RT target. For starts, I took code that works fine in LabWindows/CVI (i.e. it compiles, and the resulting dll runs on the RT target). I created a new project in MSVS using the LabWindows/CVI Project template, as dll. I copied the code from the LabWindows project, and all compiles well. However, when I copy the resulting dll onto the RT target and set it as startup dll, I get an error message ('cvirte.dll not found').

I assume this is because I don't iclude the RT runtime dlls correctly; how would I achieve this?

Thanks,

Jonas

Jonas Zimmermann, PhD
Neuroscience Department
Brown University
0 Kudos
Message 1 of 4
(3,067 Views)

jonasz,

 

Did you already see this: http://digital.ni.com/public.nsf/allkb/C6E2279078DEABDC86256896005D8F02 ?

cvirte.dll should be in the C:\Windows\System32 folder

Humphrey H.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(3,056 Views)

As a matter of fact, I have. However, that is not my problem. My problem is that I'd like to compile a library for use on a LV/LW Real-Time target. If I link against cvirte.dll (and copy it on the target), I run into other dependency issues, as this uses functions not supported by the RT system.

 

I got (what I think is) a step further, making sure my code is not linked against default libs (/NODEFAULTLIB flag in MSVC++). However, I still get unresolved external symbols (__fltused, __ftol, __RTC_CheckEsp, __RTC_Shutdown, _RTC_InitBase, ___security_cookie, @__security_check_cookie@4, and @_RTC_CheckStackVars@8).

 

Is there a sample MSVC++ project for a 'Hello World' dll that compiles for and runs on a real-time target?

 

Jonas

Jonas Zimmermann, PhD
Neuroscience Department
Brown University
0 Kudos
Message 3 of 4
(3,051 Views)

Try verifying the Visual C++ built dll with this checker: http://digital.ni.com/public.nsf/allkb/0BF52E6FAC0BF9C286256EDB00015230

 

This article is slightly dated but still may be useful: http://digital.ni.com/public.nsf/allkb/5F3B544A7FB806E886256F6A005D3F5B

Humphrey H.
Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(3,035 Views)