LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Wrong Run Time Engine Comes with SW Update

Hi Kevin,
 
I have unsintalled 8.2.1 on my PC and I am currently traveling with my laptop and unable to do it. But I did tried to install 8.2.1 RTE with the dll installer. It didn't help.
 
What I don't quite understand is, I can run the executable compiled with RTE85, with the same vis. the RTE is only using 8.5 only. why the hell it doesn't work for dll installer??
 
Kind of disappointed with LV now.
 
if you think I send all the vis to you will help, please let me know how i can provide you the all vis. I will send you then.
 
Dumb Dumb Head
0 Kudos
Message 11 of 23
(1,203 Views)
No, it didn't even work on the machine which generates the vis and dll. can you believe that??
0 Kudos
Message 12 of 23
(1,202 Views)
If you're willing to post your code, you can zip up your project and attach it here.  Someone may be able to help you better with that.  We can at the very least try it on our installed copies of 8.5 and confirm whether we see the errors you are seeing.
0 Kudos
Message 13 of 23
(1,196 Views)
Here is the zip file with the vis we have been working on.
 
Readme.txt has some instruction to follow. the functions I have tried so far are listed in "Audio Test-dll.lvproj" file.
 
"Audio Test Demo.lvproj" is a demo project to build executable and its installer. This one works fine.
 
Thanks for your help, Kevin & Mathew!!
 
Download All
0 Kudos
Message 14 of 23
(1,180 Views)
I'm missing utility and sensitivity llb's.  I'd also like to get the dll you built that is causing the erros and whatever test vi you used to test it.

I did notice in your dll installer that you have the 8.2 RTE checked to install and not the 8.5 RTE.


Message Edited by Matthew Kelton on 12-14-2007 09:53 PM
0 Kudos
Message 15 of 23
(1,175 Views)

See attached.

I am using VB to call the dll functions. not from LV.

Let me know if you have got everything. Thanks.

 

DH

0 Kudos
Message 16 of 23
(1,169 Views)
I've spent a little time with this and have some more questions.  I started by taking your audio demo vi and started to have it call the DLL and am seeing no issues.  However, if I run the VB code, I don't get the error you report.  I do however see that the hourglass icon is churning away on the program.  How do you get the error message you noted before.  And do you see this hourslass phenomenon?

Also, I don't use VB very often, but I see that you built your DLL with all your functions set to stdcall (WinAPI).  Was this your intent, or should they have been built with the C calling convention?

I haven't finished putting all the DLL calls in the LV version yet, but your problem may be that you are not calling the DLL properly from VB.  I'll finish adding the DLL calls in tomorrow to the LV VI and see if I can get any error to generate.
0 Kudos
Message 17 of 23
(1,160 Views)
I do not intend to use the dll in Labview environment. The vis can be used in Labview and Executable runs no problem. Only when call it from other program having problem.
 
the hourgalss in VB is normal. When run the program, it is at idle. you need to select "Configuration" Tap and click "Update" button to activate a funcion call from the dll. I have "REM"-ed out a few functions. You can try them by removing the REM. When click "Update", the program stopped by a fatal error message"Labview.lib was not called from a LabVIEW process."
0 Kudos
Message 18 of 23
(1,138 Views)
I realize you don't want to call the DLL from LabVIEW, but it allows me to verify whether the DLL is bad or not - and it's not if called by LabVIEW.

After spending way too much time on this, the issue is in your sine generator control.vi  Specifically, it's the PlaySine CIN you have.  If I delete that CIN, then you will not get the error message.  Where did this CIN come from and what does it do?  You will not be able to get this DLL to work from VB with it in the VI as it is at the moment.  Is this something you copied out of one of NI's VIs into your own?

Your issue has nothing to do with runtime engines.  Your issue is you are trying to attempt a function that NI has limited to only be done within LabVIEW or an EXE.
0 Kudos
Message 19 of 23
(1,127 Views)
You are the man.
 
I forgot where this CIN came from. It is a Sine wave signal generator playing at sound card. Do you know any vi which can do the trick to replace this one?
 
Checked examples with LV, I haven't found one yet. There is one sine.vi saying to be a sine signal generator. but it needs an add-on and didn't specify what add-on needed.
 
Thanks a lot for help me identify the problem although I am still puzzlling on why it can be run in executable not with dll. the RTE is different?
 
0 Kudos
Message 20 of 23
(1,121 Views)