compactRIO: selection channel dynamically
Hello
I would like to order multiple power supplies using compactRIO PCI modules, AI / AO. The problem is that I need a solution that fits good based on how many power supplies are controlled by a perticular cRIO system. There could be 5 on a single system and there could be 40 on the other so I won't have to change the program every time, I'd rather just a simple configuration for each source file. I thought that I could set up all parameters power supply and sense in a multidimensional array then have a loop to process each entry in the array. Speed can be a bit of a problem since you can not deal with this in parallel but the speed is not too big of a concern right now.
My problem with this plan is that I do not know how to select a channel in the FPGA dynamically, without that it does not seem that my idea would work. One has a few suggestions on how to deal with this? Is there a way to select the channel you want to acquire the deactivation data? Or y at - it a better way to make a program like this that can cope with an indefinite number of power supplies? Help and feedback would be greatly appreciated.
Pawel
You can create a program by using the scan Mode which will assign dynamic channels based on which modules are present.
White paper this gives an overview of this operation
and this example goes into details
Discovery by programming, Configuration and access of the system CompactRIO Scan Mode IO in LabVIEW
-Hunter
Tags: NI Software
Similar Questions
-
Select the dynamic channel to fill in the legend
Hello no,.
I am the acquisition of 16 channels each channel has their own name, when I double click on the graph, the populous select.vi channel and it will list the name of the channel. If I select the first channel 5 or last name 5 channels or channel. the selected channel must be complete on behalf of legend.
I am facing the problem, when I select the way to any list of channels his does not display does not name, the same method that I did with labview 7.1, which has been working well.
Please find this attachment, my code
Hello
Find error or anything just a blank field name while doing this operation.
A point I can see here is:
1. the table "name out" which bears the names of channel should have clues covered by array index. If the index covered by index out is not in the name of then an empty string will be returned.
Please check if this condition is met.
-
Very new to photoshop, I try to make changes to a photo and set up as a dynamic object, but after the selection of dynamic object, the grid appears and my photo dissppears
Well, something's wrong with Photoshop. Try to close Photoshop, and then press Command + Option + shift as you restart Photoshop. You will be asked to clear the Photoshop preferences. ATTENTION: you will lose all current preferences.
-
Dynamic selection of dynamic list
Hello
Please, help me to below scenario.
I created the drop-down list called 'Country' and created a drop down for State. How to create the dynamic filter based on selection of the country. Need to filter according to the selected country.
Thank you
Vivek
Take a look at this thread: https://community.oracle.com/thread/3779373
Note that the drop-down list must be a list of values. See slide 27 of the bridge for an example of what it looks like at design time and the duration-features and benefits: http://www.oracle.com/technetwork/apps-tech/policy-automation/overview/opafeb2015featuresbenefits-2431219.pdf (example is very similar to yours - pick a State, then on that basis choose a particular city state)
More details in the thread mentioned above.
See you soon,.
Jasmine
-
Hi all
Suppose I have table, whose structure changes frequently on a daily basis.
For example. / / desc my_table gives you after the name of the column the day 1
SQL > my_table DESC;
Output
Name
Age
Phone
Day 2, two other columns are added, viz, address and salary.
SQL > my_table DESC;
Output
Name
Age
Phone
Address
Salary
Now, I want to create a Dynnamic RTF report which made extracting data from all columns from my_table daily. For this, I have defined a simultaneous program with XML output type and include in annex a data/definition of data model that takes XML as input and gives the final result of the conc program in EXCEL layout. I am able to do that for a constant number of columns, but don't know how to do it when the number of columns to display dynamically changes.
For 1 day my XML file should be like this.
<?xml version="1.0" encoding="UTF-8"?> <dataTemplate name="XYZ" description="iExpenses Report" Version="1.0"> <dataQuery> <sqlStatement name="Q2"> <![CDATA[ SELECT Name ,Age ,Phone FROM my_table ]]> </sqlStatement> </dataQuery> <dataStructure> <group name="G_my_table" source="Q2"> <element name="Name" value="Name" /> <element name="Age" value="Age" /> <element name="Phone" value="Phone" /> </group> </dataStructure> </dataTemplate>
And my day 1, EXCEL output RTF model should be like this.
Name age phoneSwapnill 23 12345
For 2 days my XML file should be like this. With 2 new columns selected in the SELECT clause.
<?xml version="1.0" encoding="UTF-8"?> <dataTemplate name="XYZ" description="iExpenses Report" Version="1.0"> <dataQuery> <sqlStatement name="Q2"> <![CDATA[ SELECT Name ,Age ,Phone ,Address ,Salary FROM my_table ]]> </sqlStatement> </dataQuery> <dataStructure> <group name="G_my_table" source="Q2"> <element name="Name" value="Name" /> <element name="Age" value="Age" /> <element name="Phone" value="Phone" /> <element name="Address" value="Address" /> <element name="Salary" value="Salary" /> </group> </dataStructure> </dataTemplate>
And my day 2, exit EXCEL model RTF should be like this.
Name address telephone pay23 12345 Madrid 100000 Swapnill
Now, I don't know below things.
- Make the dynamic XML as we did in the day 1 there are 3 columns in the SELECT statement and the day 2, 5 columns. I want to create a dynamic XML which must not be changed if the new columns are added into my_table. I don't know how to create this query and also create their corresponding items below.
- Make the RTF model dyanamic as day 1 there are 3 exit EXCEL columns and the day 2, 5 columns. I want to create a dynamic RTF model that would display all the columns selected in XML dynamic. I don't know how the RTF will create new XML tags and how it will know where to place them in the report. Means, I can create model RTF day 1, by loading the XML data for 3 columns and place 3 tags XML in the model. But how he will create and place the tags for the new columns the day 2?
Hope so, you got my requirement, it's difficult. Please let me know how I can implement the necessary solution using the RTF dynamically without any manual intervention.
Kind regards
Patricia K.
Post edited by: SwapnilK
Hi guys,.
I was able to solve above the requirement.
I created a procedure that would create & update (attached to the data definition) XML file dynamically for each race. This dynamic XML contains the SQL statement for the data query that is built dynamically. I am updating this XML file using XDOLoader utility to the definition of data. Then run my program customized to generate the excel output.
Exit excel retrieves correct number of columns dynamically (3 on Day1 and Day2 5), with corresponding data records.
Kind regards
Patricia K.
-
selection list dynamic default value
Hello world
I have a question about the dynamic selection lists.
I have a report of a table that displays records. Each record has different versions of data. So when you click on a folder you get to another page where you get some information on this record and where you can select the version of this information (using a selection list).
The selection list works very well and is set dynamically as follows:
Select distinct b.SID display_value,
return_value a.version_id
cn_pl_version a.,
cn_pl_std_peplanung b
WHERE a.version_ID = b.version_id AND
b.pe_id = "& P6_HELP_PRODET."
a.version_id desc order
My problem is that when I click on a folder that I always get the report filled with the oldest version of the current record, so I always choose the most recent version to the list manually. I always prefer to have the most recent version in the report.
The report query is:
Select
....
....
(select sum (stunden) in cn_pl_std_peplanung t02
where abt_id = '10'
and t02.pe_id = t1.pe_id
and t02.version_id = t1.version_id
and t02.idee_id = t1.idee_id) stunden_ir;
(select name from cn_pl_version u01
where u01.version_id = t1.version_id) Version
of cn_pl_std_peplanung t1, cn_pl_projektelemente z1, u1 cn_pl_version cn_pl_projektidee s1
where t1.version_id = ' & P6_VERSION_WAHL. »
and t1.pe_id = z1.pe_id
and z1.pe_id ='& P6_HELP_PRODET. »
Group of t1.pe_id, t1.version_id, t1.idee_id
' & P6_VERSION_WAHL.' is the element of the selection list
' & P6_HELP_PRODET.' is the ID of the current record
I don't know if you understand my problem, my English is not the best...
Thanks for any help!
PatrickHi Patrick,
What value choose it show list, when you create a branch to the page? That's the good?
If not, you must change your selection list, that the correct version is selected by default. You can set a 'default' value when you set the source of the element.Otherwise, you may configure a sample application to http://apex.oracle.com.
Best regards
Chrissy -
Select table_name dynamic pl/sql variable - possible?
Hello
With the help of 11.2.0.3
Select count (*)
in v_cnt
products
example, but when we do not know the name of the table until the runtime, for example table pl/sql package is their < sysdate > produits_
Is it possible to use sql dyanamic for this instructions below does not work
Select count (*)
in v_cnt
of < dyanmic_table_name >
If so, how?
Thank you
Hello
try something like this
create or replace function fn_count_rows ( table_in in varchar ) return number is number_of_rows number; begin execute immediate 'select count(*) from ' || table_in into number_of_rows; return number_of_rows; end; /
concerning
Kay -
How to set values in a select list dynamically according to the user action
Hello
I'm new to Apex. With the help of Apex 4.0 on Oracle 10 g. In my page, I will have a list of selected countries. According to the user selection value I have to display the States / provinces of this country in another selection list. States have to fetch the state_list table and the province of province_list table.
Can someone tell me how to do this.
n advance thanksHello
LoV using cascading as detailed here http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/bldapp_item.htm#HTMDB05014Kind regards
-
Problem with the selection list dynamic LOV using bind variables
I have the following SQL to fill a selection list:
Select d, ch from
(
Select ft. FAMT_NAME d, pi. R FAM_ID_T of FAMILY_TRA ft
Join the ck list
on ck.family = ft.famt_name and ck.newseq in (: NEWSEQ_QUERY_SQL)
)
Where NEWSEQ_QUERY_SQL is a part of the application that is defined by a calculation of page and essentially returns a list of values NEWSEQ based on some parameters of the user query. For example:
Select distinct (ck.newseq) in the ck list where rownum < 20
The query above works fine with SQL Developer and returns two columns needed (display_value, return_value)
However, it returns no line, when it is used to fill the LOV to a selection list.
If I replace the: NEWSEQ_QUERY_SQL with a list of NEWSEQ hard-coded, it works:
Select d, ch from to)
Select ft. FAMT_NAME d, pi. FAM_ID_T r
of FAMILY_TRA ft join checklist ck on (ck.family = ft.famt_name and ck.newseq in ('K0242900', 'K0217200'))
) ;
I can even replace: NEWSEQ_QUERY_SQL with hard-coded SQL and it works:
Select d, ch from
(
Select ft. FAMT_NAME d, pi. R FAM_ID_T of FAMILY_TRA ft
Join the ck list
on (ck.family = ft.famt_name and ck.newseq in (select ck.newseq from the list ck where rownum < 20))
)
But if there is a connection variable (: NEWSEQ_QUERY_SQL), it doesn't.
Selection lists are driving me crazy! They seem incredibly capricious.Hello:
You cannot link a "sql statement" that bind the value you're trying to do.
P2_FAMILY_LIST must be the SQL statement you executed for the LOV. Something likeselect d, r from ( select ft.FAMT_NAME d, ft.FAM_ID_T r from FAMILY_TRA ft join checklist ck on (ck.family = ft.famt_name and ck.newseq in (select ck.newseq from checklist ck where rownum < 20)) )
CITY
-
How can I get the Flight Simulator 6 channel dynam to run on windows 7
rc USB Flight Simulator does not work with windows 7 Why is this and how do I run
Hello
· Did you do changes on the computer before the show?
· He has already worked?
· What happens when you try to play the game?
· You get the error message?
Follow these methods.
Method 1: Uninstall and reinstall the game.
Method 2: Perform a clean boot to see if there is a conflict of software like the clean boot helps eliminate software conflicts.
Note: After completing the steps in the clean boot troubleshooting, follow step 7 the link to start the computer to a Normal startupmode.
Method 3: Follow the steps in the article.
The problems of the game performance
Method 4: Updated the latest drivers graphics.
-
CHN combobox how to get the selection of the channel to the scenario and calculations
Hi, my mother languaje is Spanish and I am very confused
the dialog box user box what it should do is that I could choose among two chn combo boxes 2 angles data from where I want to calculate the difference.
TL:Dr I want to choose 2 angles and call Calculate ("Ch(""ANS"") = (Ch (" "L1 (1,1)" ")" ")-(Ch (" "L1 (1,2)" "))")
This is by far my script in the user dialog box
"warns of variable ANGLE1 en cambio
Sub ChnComboBox1_EventChange (ByRef This) ' creates the event handler
Call MsgBoxDisp ("Selected channel:" & ChnComboBox1.Text)
End Sub
"warns of variable ANGLE2 en cambio
Sub ChnComboBox2_EventChange (ByRef This) ' creates the event handler
Call MsgBoxDisp ("Selected channel:" & ChnComboBox2.Text)
End Sub
' THE PLOTS
Sub Button1_EventClick (ByRef This) ' creates the event handler
Call Calculate ("(""Result5" ") Ch = (Ch (" "L1 (1,1)" ")" ")-(Ch (" "L1 (1,2)" "))")
End Subhad a lot of trouble with examples please help any advice will suffice
Hi Johnny,.
As long as you have a fairly new tiara version, you should be able to use the built-in function of subtraction in the Panel ANALYSIS instead of the calculator of channel, like this:
Call ChnSub (ChnComboBox1.Text, ChnComboBox2.Text, "Result5")
Brad Turpin
Tiara Product Support Engineer
National Instruments
-
Select the analog channels by custom names
Hello friends of the Forum,
My stuff:
LabView 2009 SP1
Windows 7
I am rewriting code of LV7 LabView with the 2009 version. The old code has a vi called "IA waveform scan.vi" and it allows the user to specify the DAQ hardware and also select channels by simply enumerating as numbers (0,1,2,5,6 etc.) in a channel of the front input box. I understood how to create something similar to 2009 using daqmx channel, but I list the channels like this: dev1\ai1, dev1\ai2, etc. Is it possible to choose a figure like LV7? From what I've read, I think it is, but I have been unable to make it work. Thank you.
dZack
I understand your question, but I don't understand why a list with ai1, ai2, ai0, etc., is so difficult to understand. In any case, its easy to convert numeric values Plains actual channel names. The format based on the string seems appropriate. You must create an array of channel numbers. A string is an acceptable entry in the DAQmx Create Channel function.
-
Determine the number of channels selected for traditional DAQ
The blocks 'DAQmx task' and "Traditional DAQ Channel" look pretty similar (see attachments). The DAQmx block ist an individual selection of channels and I am able to determine the number of selected channels.
Now I am trying to determine the number of selected channels to a traditional DAQ, but the property DAQmx block does not work here. I already tried the trad to some form of blocks. Range of data acquisition, but failed.
Any idea?
In traditional DAQ, there are several ways of specifying the list of channels. Assuming that your picture shows how you use your channel list is just a string of delimited by commas. Wire a constant to a string array node worksheet and specify "comma" as the separator and the number of columns must tell you the number of channels.
Ben
-
Scan interval for the automatic selection of the channel?
E2500 or this mater no matter what wireless router - what is the interval between scans of the network to maintain the router on the best channel when it is configured to automatically choose the channel? Is there such an interval? Or he analyzes networks only when the currently selected channel performance falls below certain threshold? Is there a way to force manually the router to find the best channels when I feel the performance is quite degraded?
Most of the routers more do the scan on Power ON. Some latest generation routers may have a sweep feature more active who can do a scan intermittently to check the surroundings. For most older routers, I recommend you to manually set the channels 1, 6 or 11 after you have scanned your own environment and find the best way to use that is not used or has limited use at a distance of nieghbors:
Link > http://www.techspot.com/downloads/5936-inssider.html allows to discover.
-
Selection of column dynamic Collection
Hi gurus,
I have a little problem with a collection.
I have a collection with a type of pins. The selected cell may contain 28, 29,..., 33.
Later, I want to count the lines of the following collection, where (in this example) c033 is not null. The variable is then used as a string, not a column.
How can I use the variable as a column in the 'where' - clause?
Here is my sql query:
declare
l_type_position varchar2 (4); -content will be: c033
l_types number (3.0)Start
-Select the dynamic column for the next newsletter
Select 'c0 ' | (c009) - c009 = 33
in l_type_position
of apex_collectionswhere collection_name = "UPLOAD_HEAD";
Select count (l_type_position)
in l_types
of apex_collectionswhere collection_name = "SPREADSHEET_CONTENT."
-folowing line error occurseand l_type_position is not null; -= and c033 is not null;
end;Thanks for help.
This can be done using lexical replacement and dynamic SQL (as always, check for possible code SQL injection):
declare l_type_position varchar2(4); --content will be: c033 l_types number(3,0); begin -- select the dynamic column for the next statement select 'c0'||(c009) -- c009 = 33 into l_type_position from apex_collections where collection_name = 'UPLOAD_HEAD'; -- check for SQL injection l_type_position := dbms_assert.simple_sql_name(l_type_position); -- count collection rows execute immediate q'{ select count(}' || l_type_position || q'{) from apex_collections where collection_name = 'SPREADSHEET_CONTENT'}' into l_types; ... end;
However, it is possible that it is a question of XY. If further information on the nature of the obligation provided that it might be possible to identify a clearer and more secure solution using SQL static.
Maybe you are looking for
-
find on the page does not - nothing happens when you type
Have now moved to the new laptop Dell with Windows 7 and installed new Firefox - tried to restore the setting but it didn't work so have restored my addons and configuration and customization.Well, everything seems to work except that "Find in page"
-
Tecra A4, upgrades software problem!
HelloWhen I connect 2 internet, upgrades of the software connect (self) and let know me that a new available updates, and when I click on this icon to get updates again an error message "error!" was not able to start the pilot of T.BIOS'CEO "!" What
-
Satellite M30-107 - guard wireless disconnect and never connects
My Toshiba Satellite M30-107 with Intel (r) PRO/Wireless 2200BG Network connection is not connect wirelessly. I know that there is no hardware problem, because I used this laptop to different wireless networks in the past, and just recently I formatt
-
I keep getting asked the following by e-mail
You have not yet confirmed your Apple ID [email protected] and there now waiting for deletion of all Apple services partners. iCloud account: mc***@areco.co.uk Customer ID: *. To comply with the legislation of the European Union (EU) and to confi
-
I had to install LabVIEW on another computer, but when I tried to run my screws saved, IMAQ vision screws were not all installed. I couldn't, so I transferred the vision above an old computer as suggested here http://digital.ni.com/public.nsf/allkb/