LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

specifying parameters for labview dll

hi.
 
Im using the help files in labview 8.2 which are the only good directions Ive found to build a dll with labview.
 
I was able to go through the example without a problem.
This includes adding the needed parameters that are passed via the function (see figure below)
 
The problem is that, when i get to the part for the parameters i need to specify for my file, there are none listed (see figure below)
I can even copy the entire code out of the example file (meanmedianmode.vi) and paste it in my vi and the newly compied parameters dont show up why i try to export as a dll
 
Little help here, i dont see any documentation regarding this..
 
 
 
the two files i am using as source files, one is just example code and one is my file
 
 
 
example file has plenty of paramesters, they seem to just be indicators, nothing fancy.
 
 
my file has no parameters listed, i even copied the entire code of the example file into it trying to get some to show up.
 


Message Edited by jimmyinCT on 03-05-2008 05:11 PM

Message Edited by jimmyinCT on 03-05-2008 05:12 PM
0 Kudos
Message 1 of 10
(3,440 Views)

and also, how to do i tell if i have application builder installed?

 

0 Kudos
Message 2 of 10
(3,424 Views)
The parameters are the controls/terminals you have wired to the connector pane. If you have nothing wired, then the app builder cannot assign parameters that don't exist.
 
You know you have the app builder installed since you are using it.
Message 3 of 10
(3,421 Views)

 

 

im checking the obvious stuff like missing the application builder as ive been stuck on this for quite some time



Message Edited by jimmyinCT on 03-05-2008 10:28 PM
0 Kudos
Message 4 of 10
(3,413 Views)
Can you post the VI and project?
0 Kudos
Message 5 of 10
(3,394 Views)

here is the vi

http://www.engr.uconn.edu/~jmacione/dll3.vi

and project

http://www.engr.uconn.edu/~jmacione/labviewdll.lvproj

 

For this particular project, ive incorported my signal generator vis into the example file for meanmodemedian.vi (example file for building dlls)

Ive rewired the "mode" indicator into the area of code for the signal simulator, and replaced it with  "mode3" , a copy

In the project, Im only getting "mode" as an output parmeter along with the other two from the example file, "median" and "mean".

It appears i cant create any new output parameters and am stuck with the three from the example file.

 

Yes, this files were  recomplied with control shift run ahead of time.

I had resaved it to ahead of time.

 

I must be tired or getting old or something,  but ive been stuck on this for a few weeks.

I do remember making dlls in labview 3years ago, dont remember it being this hard


If it matters, this is 8.2 on vista

 


Message Edited by jimmyinCT on 03-06-2008 07:09 PM

Message Edited by jimmyinCT on 03-06-2008 07:09 PM

Message Edited by jimmyinCT on 03-06-2008 07:11 PM



Message Edited by jimmyinCT on 03-06-2008 07:11 PM
0 Kudos
Message 6 of 10
(3,383 Views)

Your project is referring to different VIs than the one you posted but even after fixing that, I had a problem with it. It might be corrupted or something may have happened in the conversion to 8.5. I created a new project for the posted VI and was able to see the parameters. You have no parameters for fundamental frequency, Add White Noise Amplitude, etc. because none of those are wired to the VI's connector pane. As I said, you have to do this and have always had to do this in earlier versions of LabVIEW. I wired them up and they then appeared as parameters. Having a dll with a while loop and a stop button makes no sense either. How are you going to stop it? The answer is, you can't

0 Kudos
Message 7 of 10
(3,372 Views)
yea, im aware that the while loop is not needed while im putting another program in control.  Just like having the mean and mode obiovulsy is is nto something im using too. Im trying to figure out why i cant get the indicators to show up as contorls.   Thanks anyway, but please just asnwer the questions im asking as i hate all these side topics that are pointless
 
So I need to use  a previous labview version, how far back do i need to go?  You really should have said it was a bug so it would have caught attention, otherwise this huge issue gets lost in all the side topics.
 
Its kind of ironic, ive wasted crazy amounts of time on this, the last 2 weeks, and it sounds like a bug that your not calling a bug?  Where is this documented or why is this not in the directions.  Do you know how many times i went step by step through those directions?

Oh my god, its like im trying to get away from labview from all the issues like this, its going to suck the life out of my before i am finally rid of you people forever

Message Edited by jimmyinCT on 03-06-2008 09:27 PM

Message Edited by jimmyinCT on 03-06-2008 09:31 PM

Message Edited by jimmyinCT on 03-06-2008 09:32 PM



Message Edited by jimmyinCT on 03-06-2008 09:34 PM
0 Kudos
Message 8 of 10
(3,369 Views)

I did answer your specific question and nowhere did I say that you had to use an earlier version. I said that you did not have your controls and indicators wired to the VIs connector pane and I speculated that was your problem even before you posted the VI. You obviously did not check this. I only mentioned earlier versions of LabVIEW because you said you had done it before. I don't have 8.2.1 and for all I know, the project would open just fine in 8.2.1. Just to be sure, you can create a new project but the only confirmed bug is your failure to wire up the controls and indicators.

Maybe the problem is that you don't even understand what and where the connector pane is. This is really basic LabVIEW but right click on the VIs icon in the upper right corner of the VI. Select Show Connector. This is the connector pane. You click on a box and then you click on one of the controls or indicators. Keep controls on the left side and indicators on the right. You know you have made a connection when the little box changes color (matches the data type of the control or indicator). This is the exact same process you have to go through when you create a subVI.

p.s. If you want to be rid of 'us people', just stop posting here and learn how to do the basics on your own.



Message Edited by Dennis Knutson on 03-06-2008 09:10 PM
Message 9 of 10
(3,354 Views)
I do have 8.2 installed and you posted a project pointing to dll.vi and you posted dll3.vi.  So, the files you posted don't go together.  It is not a LabVIEW bug.  It is user error.

And as Dennis stated, your VI doesn't have your desired output wired to the connector pane.

The attached project and VI will allow you to use mode3.
Download All
Message 10 of 10
(3,332 Views)