12-07-2012 06:19 AM
hi,
I m trying to create subVI for 'cRIO-generic' module. And my subVI has to made some configurations
according to slot number of selected DIO. I couldn't find a way to do that..
I searched forum and found somethings for "cRIO Hybrid mode" however, VIs running on cRIO controller, not FPGA..
I added a project file to define the problem,
any idea?
Best regards...
12-07-2012 08:37 AM
What kind of configuration would you like to change at what type of IO?
Christian
12-07-2012 10:12 AM
for example I have 2 subVIs and should be capable of using for every slot. And as an configuration, i can turn on/off data reading from one subVI to other by global variables.. But, what if i add my project 2 module. Then, i need to know,
which module running on VI, so can be matched with the right global variables... In that point, i have to find out slot number in subVIs..
12-08-2012 01:05 PM
I don't really get what you are trying to do.
Howerver you can use the IO Nodes from the palette and then pass the reference of the IO, e.g. Mod0/AnalogInput1 to the IO Node.
This reference could be control at your SubVI with which you pass the modules name from the caller to the SubVI.
Christian
12-09-2012 04:33 AM
in fact, i already use I/O Node.. i can see slot number or slot name,
but i couldn't control it in subVI-block diagram.
For example, if I/O belongs to slot 1 (Mod1), subVI waits until reading 'Low' from this pin, and if I/O
belongs to slot 2(Mod2), subVI waits until reading 'High' from this pin.
But how will my case structure know slot number or slot name (Mod1-Mod2 ?).
i can see it at subVI-frontpanel but i can't test it subVI block diagram for my case structure.
i attached example project and pictures..
i hope its more clear now.. thanks for interest..
12-10-2012 03:47 AM
Using a property node, you could use the "IDS_Module_ID" to differ betwenn modules. However, as soon as you change a module, or add a new one, or run your code at a different Target, you will have to edit your SubVI.
That beeing said. What is the application behind your question? Why don't your create different SubVIs, one checking for High, one for Low values.
You have to keep in mind, that programming LV FPGA means you configure the behaviour of a piece of hardware. So a module or a place of a module won't change during runitme.
Christian