LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

> Related links

Visit our LabVIEW Wiki LabVIEW Embedded Portal


Tags
(This content has not been tagged yet)
 
Reply to this topic Start new topic
> Saving changes to FPGA subVI?, saving changes to different instances?
vestman
post Apr 29 2008, 02:09 PM
Post #1


1 more post to go!


Member
Posts: 9
Joined: 25-February 08
Member No.: 10866
Using LabVIEW Since:2007
LV:8.5 ,8.20 ,.
Sweden swe_skane Nothing Selected


hi

I'm building a set of FPGA subVIs for use in our future cRIO applications. The subVIs will be of type "8 channel DO", "8 channel DI", "8 channel PWM" et.c, with an array as input.

I want the user to be able to place a subVI on the block diagram, connect an input, open the front panel of the subVI and select which 8 channels to use (from an I/O name control).
This is not a problem to implement, but what about using multiple instances of the same VI? All subVIs point to the same file and hence changes to one equals changes to all.

Is there a way around this, to be able to save changes made to every subVI placed on the block diagram independently?

/Emil


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Ad
post Apr 29 2008, 02:09 PM
Post #















Tags
(This content has not been tagged yet)
Go to the top of the page
Quote Post
Ton
post Apr 29 2008, 04:09 PM
Post #2


CCT It
*****

Premium Member
Posts: 1337
Joined: 13-June 05
From: Woerden, Netherlands
Member No.: 2399
Using LabVIEW Since:2001
LV:8.5.1 ,6.1 ,8.2.1
Netherlands hol_utrecht Nothing Selected My Blog My Gallery


QUOTE (vestman @ Apr 29 2008, 04:09 PM) *
Is there a way around this, to be able to save changes made to every subVI placed on the block diagram independently?

This screams Express VIs. Norm Kirchner say they aren't that hard to program, so good luck!

Ton

--------------------
Certified LabVIEW Developer
Shouldn't you be programming a Code Repository solution?


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
vestman
post May 5 2008, 08:07 AM
Post #3


1 more post to go!


Member
Posts: 9
Joined: 25-February 08
Member No.: 10866
Using LabVIEW Since:2007
LV:8.5 ,8.20 ,.
Sweden swe_skane Nothing Selected


Thank you. I was afraid that would be the case.
Do you know if there are limitations when creating Express VIs for the FPGA-palette?


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
LV_FPGA_SE
post Jun 26 2008, 03:11 PM
Post #4


Very Active
***

NI
Posts: 111
Joined: 28-October 05
From: Austin, TX
Member No.: 3370
Using LabVIEW Since:1993
LV:8.5.1 ,8.2.1 ,8.6
us_texas Canada Germany My Gallery


I'm just catching up on some older messages.

Another possible solution to this problem is to use I/O references (new in LabVIEW FPGA) in the subVI and specify the I/O channel as constants in the calling VI. The subVI does not need to change and the user can specify the specific I/O in a clear readable fashion. You cannot put the I/O references into an array to pass to the subVI, but you can bundle them in a cluster. I have attached a very simple example for 8 DI channels.
Attached File(s)
Attached File  8_Channel_DI__Cluster_.vi ( 488.65K ) Number of downloads: 66
Attached File  Use_8_Channel_DI__Cluster_.vi ( 203.86K ) Number of downloads: 54
 

--------------------
Christian L
NI Systems Engineering - Real-Time and Embedded Control Technologies
"I like my G code neat."


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
ExpoEra
post Sep 9 2008, 05:42 PM
Post #5


3 more posts to go!


Member
Posts: 7
Joined: 9-September 08
Member No.: 12484
Using LabVIEW Since:2008
LV:8.6 ,. ,.
Nothing Selected Nothing Selected Nothing Selected


QUOTE (LV_FPGA_SE @ Jun 26 2008, 08:11 AM) *
I'm just catching up on some older messages.

Another possible solution to this problem is to use I/O references (new in LabVIEW FPGA) in the subVI and specify the I/O channel as constants in the calling VI. The subVI does not need to change and the user can specify the specific I/O in a clear readable fashion. You cannot put the I/O references into an array to pass to the subVI, but you can bundle them in a cluster. I have attached a very simple example for 8 DI channels.


For the "Use 8 Channels", how do I use it? When I try to compile it, it says channel not found. When I actually assign a channel to it, the wire between the cluster and subVI becomes broken.


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
LV_FPGA_SE
post Sep 9 2008, 06:26 PM
Post #6


Very Active
***

NI
Posts: 111
Joined: 28-October 05
From: Austin, TX
Member No.: 3370
Using LabVIEW Since:1993
LV:8.5.1 ,8.2.1 ,8.6
us_texas Canada Germany My Gallery


QUOTE (ExpoEra @ Sep 9 2008, 12:42 PM) *
For the "Use 8 Channels", how do I use it? When I try to compile it, it says channel not found. When I actually assign a channel to it, the wire between the cluster and subVI becomes broken.


You should first create a new project and configure your FPGA target and all of the I/O for your target that you plan to use. Then add the two VIs to the FPGA target. Open up the Use 8 Channels and help it find the subVI if necessary.

Then if you go to the diagram you should be able to click on the I/O references and select any of the channels you have configured in the project for your FPGA target.

--------------------
Christian L
NI Systems Engineering - Real-Time and Embedded Control Technologies
"I like my G code neat."


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
ExpoEra
post Sep 10 2008, 04:28 PM
Post #7


3 more posts to go!


Member
Posts: 7
Joined: 9-September 08
Member No.: 12484
Using LabVIEW Since:2008
LV:8.6 ,. ,.
Nothing Selected Nothing Selected Nothing Selected


QUOTE (LV_FPGA_SE @ Sep 9 2008, 11:26 AM) *
You should first create a new project and configure your FPGA target and all of the I/O for your target that you plan to use. Then add the two VIs to the FPGA target. Open up the Use 8 Channels and help it find the subVI if necessary.

Then if you go to the diagram you should be able to click on the I/O references and select any of the channels you have configured in the project for your FPGA target.


Yea, I did all of those. The strange part is that when I click on the I/O references, it says "No I/O Available". I am very sure I have configured the I/O for my target correctly. sad.gif


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
LV_FPGA_SE
post Sep 10 2008, 08:13 PM
Post #8


Very Active
***

NI
Posts: 111
Joined: 28-October 05
From: Austin, TX
Member No.: 3370
Using LabVIEW Since:1993
LV:8.5.1 ,8.2.1 ,8.6
us_texas Canada Germany My Gallery


QUOTE (ExpoEra @ Sep 10 2008, 11:28 AM) *
Yea, I did all of those. The strange part is that when I click on the I/O references, it says "No I/O Available". I am very sure I have configured the I/O for my target correctly. sad.gif


What I/O modules and channels have you configured? Can you attach a screen shot of the project with the configuration or the project file.

Make sure the VIs are assigned to the same FPGA target in the project.

This post has been edited by LV_FPGA_SE: Sep 10 2008, 08:13 PM

--------------------
Christian L
NI Systems Engineering - Real-Time and Embedded Control Technologies
"I like my G code neat."


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
ExpoEra
post Sep 10 2008, 08:22 PM
Post #9


3 more posts to go!


Member
Posts: 7
Joined: 9-September 08
Member No.: 12484
Using LabVIEW Since:2008
LV:8.6 ,. ,.
Nothing Selected Nothing Selected Nothing Selected


QUOTE (LV_FPGA_SE @ Sep 10 2008, 01:13 PM) *
What I/O modules and channels have you configured? Can you attach a screen shot of the project with the configuration or the project file.

Make sure the VIs are assigned to the same FPGA target in the project.





The folders saying Connector 0, 1, etc have the I/Os in them.


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
LV_FPGA_SE
post Sep 11 2008, 03:44 AM
Post #10


Very Active
***

NI
Posts: 111
Joined: 28-October 05
From: Austin, TX
Member No.: 3370
Using LabVIEW Since:1993
LV:8.5.1 ,8.2.1 ,8.6
us_texas Canada Germany My Gallery


QUOTE (ExpoEra @ Sep 10 2008, 03:22 PM) *


The folders saying Connector 0, 1, etc have the I/Os in them.

It turns out the IO references are somewhat specific to the type of IO device. My original VI was created for cRIO IO. I updated the example for R series and have attached the new VIs and project.
Attached File(s)
Attached File  Use8chDI.zip ( 62.18K ) Number of downloads: 4
 

--------------------
Christian L
NI Systems Engineering - Real-Time and Embedded Control Technologies
"I like my G code neat."


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
ExpoEra
post Sep 11 2008, 05:00 PM
Post #11


3 more posts to go!


Member
Posts: 7
Joined: 9-September 08
Member No.: 12484
Using LabVIEW Since:2008
LV:8.6 ,. ,.
Nothing Selected Nothing Selected Nothing Selected


QUOTE (LV_FPGA_SE @ Sep 10 2008, 08:44 PM) *
It turns out the IO references are somewhat specific to the type of IO device. My original VI was created for cRIO IO. I updated the example for R series and have attached the new VIs and project.


Thanks. Let's give it a try. yes.gif


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

 




Time is now: 4th December 2008 - 06:09 AM