Visit our LabVIEW Wiki LabVIEW Embedded Portal
Tags |
(This content has not been tagged yet)
|
![]() |
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 ,.
|
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
|
||
|
|
|||
| Ad |
Apr 29 2008, 02:09 PM
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
My Blog
My Gallery
|
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 --------------------
|
||
|
|
|||
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 ,.
|
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?
|
||
|
|
|||
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
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)
8_Channel_DI__Cluster_.vi ( 488.65K )
Number of downloads: 66
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."
|
||
|
|
|||
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 ,. ,.
|
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.
|
||
|
|
|||
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
My Gallery
|
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."
|
||
|
|
|||
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 ,. ,.
|
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.
|
||
|
|
|||
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
My Gallery
|
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. 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."
|
||
|
|
|||
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 ,. ,.
|
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.
|
||
|
|
|||
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
My Gallery
|
![]() 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)
-------------------- Christian L
NI Systems Engineering - Real-Time and Embedded Control Technologies "I like my G code neat."
|
||
|
|
|||
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 ,. ,.
|
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.
|
||
|
|
|||
![]() ![]() |
| Time is now: 4th December 2008 - 06:09 AM |