9219 current sample conversion to current value from DMA FIFO
Hello All,
I am sampling two 9219 modules (24-bit universal module) into a I32 FIFO on the FPGA target (9072). I want to convert this sample into a current value for scaling in my host vi. The module reads a +/- 25 mA input 24-bit into a 32-bit memory location. I was originally performing the conversion on the host like so,
1. INPUT converted to I32, then to DBL
2. (INPUT* 25)/ ((2^24)/2 - 1)=CURRENT (mA)
3. CURRENT (mA) * SCALE = VALUE
My values seem very high. Any help is appreciated. Thanks.
Gaussy
Solved!
Go to Solution.
Hello Gaussy,
Thank you for contacting National
Instruments! There were a few questions that I had for you in order to
continue troubleshooting this issue. My first question is what version
of LabVIEW are you using? If you are using LabVIEW 8.5 then do you
mean U32 instead of I32? If you are using LabVIEW 8.6 have you thought
about trying to use Fixed-Point so you do not have to worry about the
conversion? Here is a knowledgebase article that talks a little bit more about this topic.
After
looking through your conversion algorithm I did not see any specific
flaws. I was wondering if you could post the values that you are
receiving from the FPGA Target and then the values after your
conversion. Also, it would be good to know what values you are
expecting and why. This will help us determine if the actual signal
from the module is off or if the conversion is incorrect. I hope this
helps! Have a great day!
Thanks!
Bob H
Applications Engineer
National Instruments
Similar Messages
-
Recording measured voltage and current values from LCR 4284A
Hello,
I want to use the labview VI to record the measured voltage and current values from LCR 4284A. These are shown as Vm and Im on the instrument screen. Is it possible to record these values using a VI?
I have looked through the drivers that are available through the "Instrument driver network" (Link) for 4284A but none of the VIs give any option to monitor Vm and Im. If you know how this can be done then I would really appreciate a reply.
Thanks
MansoorI haven't used the instrument but there are functions to enable/read voltage level and current level monitors. Are those different than what you are asking for? What does the manual say about Vm and Im and programatically getting them? If you can find the command in the manual, you can just open the VI Tree and do a text search for the command.
-
Not able to get values/send values from RT FIFO
Hi All
I ahve created a custom device (asynchronous) which tries to read values of channels and also write the values of channels.
when I am running my custom device to communicate with PLC , I am not able to see any data transfer between the two.
So for debugging , instead of sending the values coming from the RT FIFO i am sending constant array values to PLC. In this case I am able to get values on PLC side. Which means RT FIFO not giving me channel values to send to PLC.
What could be the reason for such behaviour?
I am running my custom device on windows system only. I dont have RT system.Hey LV_user1,
So it sounds like your output channels for your custom device, but not your input channels, correct? How many input channels did you configure in your host side custom device Initialization VI?
I could probably help you figure it out a bit faster if you posted up some of your code as well!
On a last note, you may want to say PCL and not PLC
Tim A.
National Instruments -
Input variable takes value from current filter setting in navigation block
Hi
Is there is a way in SAP, maybe with customer exit, to fill a input variable for 0CALMONTH (which in the end will get a value like "06.2005") with the current value from the selected month in the filter settings of the time characteristic 0CALMONTH in the navigation block of a query?
I guess the filter values are transferred back to the OLAP engine so the server knows the filter values of course and theoretically might be able to fill a variable with it...?
Full points will be assigned.
Thanks,
GermanThanks for your suggestion Vikram. But if i change in the Info-object leve, i hope it will be reflected in all the Queries that are using this info-object. I want it for a particular query alone.
Also, in the Info-object level, for the option 'Query execution Filter value' the value is given as 'Value in Master Data Table' only. Still, it is User specific.
Regards,
Murali -
Copying values from a row to a current row
hi all, i have a complex scenario here. i have a table that has the following data.
WITH table1 AS
SELECT 111 the_id, To_Date('6/30/2009','mm/dd/yyyy') dt, 93 src, 'A-C' the_name, 'AA' cod, 'BB' pad, ' CC' tek FROM dual UNION ALL
SELECT 111 the_id, To_Date('10/1/2009','mm/dd/yyyy') dt, 93 src, 'B-L' the_name, 'AA' cod, 'NN' pad, ' TT' tek FROM dual UNION all
SELECT 111 the_id, To_Date('10/2/2009','mm/dd/yyyy') dt, 93 src, 'C-H' the_name, 'BA' cod, 'RR' pad, ' BAN' tek FROM dual UNION ALL
SELECT 111 the_id, To_Date('10/5/2009','mm/dd/yyyy') dt, 93 src, 'D-R' the_name, 'HH' cod, 'FCY' pad, ' BANW' tek FROM dual UNION ALL
SELECT 111 the_id, To_Date('10/6/2009','mm/dd/yyyy') dt, 93 src, 'E-C' the_name, 'JJ' cod, 'EE' pad, ' JJ' tek FROM dual UNION ALL
SELECT 111 the_id, To_Date('10/7/2009','mm/dd/yyyy') dt, 93 src, 'F-L' the_name, 'DD' cod, null pad, ' BAN' tek FROM dual UNION all
SELECT 111 the_id, To_Date('10/8/2009','mm/dd/yyyy') dt, 93 src, 'G-H' the_name, 'HG' cod, 'YY' pad, ' BAN' tek FROM dual UNION ALL
SELECT 111 the_id, To_Date('10/9/2009','mm/dd/yyyy') dt, 93 src, 'K-R' the_name, 'EE' cod, 'FCY' pad, ' BANW' tek FROM dual UNION ALL
SELECT 111 the_id, To_Date('7/31/2009','mm/dd/yyyy') dt, 93 src, 'G-H' the_name, 'HG' cod, 'YY' pad, ' BAN' tek FROM dual UNION ALL
SELECT 111 the_id, To_Date('8/3/2009','mm/dd/yyyy') dt, 93 src, 'K-R' the_name, 'EE' cod, 'FCY' pad, ' BANW' tek FROM dual UNION ALL
SELECT 111 the_id, To_Date('8/4/2009','mm/dd/yyyy') dt, 93 src, 'K-R' the_name, 'EE' cod, 'FCY' pad, ' BANW' tek FROM dual UNION ALL
SELECT 111 the_id, To_Date('8/5/2009','mm/dd/yyyy') dt, 93 src, 'K-R' the_name, 'EE' cod, 'FCY' pad, ' BANW' tek FROM dual UNION ALL
SELECT 111 the_id, To_Date('8/6/2009','mm/dd/yyyy') dt, 93 src, 'K-R' the_name, 'EE' cod, 'FCY' pad, ' BANW' tek FROM dual UNION ALL
SELECT 111 the_id, To_Date('8/7/2009','mm/dd/yyyy') dt, 93 src, 'K-R' the_name, 'EE' cod, 'FCY' pad, null tek FROM dual UNION ALL
SELECT 111 the_id, To_Date('6/30/2009','mm/dd/yyyy') dt, 22 src, 'A-C' the_name, 'AA' cod, 'BB' pad, ' CC' tek FROM dual UNION ALL
SELECT 111 the_id, To_Date('10/1/2009','mm/dd/yyyy') dt, 22 src, 'B-L' the_name, 'AA' cod, 'NN' pad, ' TT' tek FROM dual UNION all
SELECT 111 the_id, To_Date('10/2/2009','mm/dd/yyyy') dt, 22 src, 'C-H' the_name, 'BA' cod, 'RR' pad, ' BAN' tek FROM dual UNION ALL
SELECT 111 the_id, To_Date('10/5/2009','mm/dd/yyyy') dt, 22 src, 'D-R' the_name, 'HH' cod, 'FCY' pad, ' BANW' tek FROM dual UNION ALL
SELECT 111 the_id, To_Date('10/6/2009','mm/dd/yyyy') dt, 22 src, 'E-C' the_name, 'JJ' cod, 'EE' pad, ' JJ' tek FROM dual UNION ALL
SELECT 111 the_id, To_Date('10/7/2009','mm/dd/yyyy') dt, 22 src, 'F-L' the_name, 'DD' cod, 'FIC' pad, ' BAN' tek FROM dual UNION all
SELECT 111 the_id, To_Date('10/8/2009','mm/dd/yyyy') dt, 22 src, 'G-H' the_name, 'HG' cod, 'YY' pad, ' BAN' tek FROM dual UNION ALL
SELECT 111 the_id, To_Date('10/9/2009','mm/dd/yyyy') dt, 22 src, 'K-R' the_name, 'EE' cod, 'FCY' pad, ' BANW' tek FROM dual UNION ALL
SELECT 111 the_id, To_Date('10/30/2009','mm/dd/yyyy') dt, 168 src, 'T-C' the_name, 'WW' cod, 'AA' pad, ' NN' tek FROM dual UNION ALL
SELECT 111 the_id, To_Date('11/2/2009','mm/dd/yyyy') dt, 168 src, 'Y-L' the_name, 'HH' cod, 'AA' pad, ' BAN' tek FROM dual UNION all
SELECT 111 the_id, To_Date('11/3/2009','mm/dd/yyyy') dt, 168 src, 'G-H' the_name, 'BA' cod, 'WW' pad, ' BAN' tek FROM dual UNION ALL
SELECT 111 the_id, To_Date('11/4/2009','mm/dd/yyyy') dt, 168 src, 'E-R' the_name, 'JJ' cod, 'XX' pad, ' DD' tek FROM dual UNION ALL
SELECT 111 the_id, To_Date('11/5/2009','mm/dd/yyyy') dt, 168 src, 'T-C' the_name, 'TT' cod, 'JJ' pad, ' WW' tek FROM dual UNION ALL
SELECT 111 the_id, To_Date('11/6/2009','mm/dd/yyyy') dt, 168 src, 'H-L' the_name, 'EE' cod, 'DD' pad, ' BAN' tek FROM dual UNION all
SELECT 111 the_id, To_Date('11/9/2009','mm/dd/yyyy') dt, 168 src, 'S-H' the_name, 'BA' cod, 'WW' pad, ' BAN' tek FROM dual UNION ALL
SELECT 111 the_id, To_Date('11/10/2009','mm/dd/yyyy') dt, 168 src, 'H-R' the_name, 'VV' cod, 'FCY' pad, ' YY' tek FROM dual UNION ALL
SELECT 111 the_id, To_Date('11/30/2009','mm/dd/yyyy') dt, 90 src, 'V-C' the_name, 'GG' cod, 'FCS' pad, ' BAN' tek FROM dual UNION ALL
SELECT 111 the_id, To_Date('12/1/2009','mm/dd/yyyy') dt, 90 src, 'B-L' the_name, 'QQ' cod, 'GG' pad, ' BAN' tek FROM dual UNION all
SELECT 111 the_id, To_Date('12/2/2009','mm/dd/yyyy') dt, 90 src, 'A-H' the_name, 'BA' cod, 'WW' pad, ' BAN' tek FROM dual UNION ALL
SELECT 111 the_id, To_Date('12/3/2009','mm/dd/yyyy') dt, 90 src, 'N-R' the_name, 'TT' cod, 'JJ' pad, ' TT' tek FROM dual UNION ALL
SELECT 111 the_id, To_Date('12/7/2009','mm/dd/yyyy') dt, 90 src, 'C-C' the_name, 'YY' cod, 'QQ' pad, ' WE' tek FROM dual UNION ALL
SELECT 111 the_id, To_Date('12/8/2009','mm/dd/yyyy') dt, 90 src, 'X-L' the_name, 'UU' cod, 'JJ' pad, ' BAN' tek FROM dual UNION all
SELECT 111 the_id, To_Date('12/9/2009','mm/dd/yyyy') dt, 90 src, 'V-H' the_name, 'BA' cod, 'PP' pad, ' YR' tek FROM dual UNION ALL
SELECT 111 the_id, To_Date('12/10/2009','mm/dd/yyyy') dt, 90 src, 'E-R' the_name, 'FIN2' cod, 'FCY' pad, ' RE' tek FROM dual UNION ALL
SELECT 112 the_id, To_Date('2/28/2009','mm/dd/yyyy') dt, 93 src, 'V-C' the_name, 'EE' cod, 'FCS' pad, ' BAN' tek FROM dual UNION ALL
SELECT 112 the_id, To_Date('3/2/2009','mm/dd/yyyy') dt, 93 src, 'A-S' the_name, 'BA' cod, 'WW' pad, ' TT' tek FROM dual UNION ALL
SELECT 112 the_id, To_Date('3/3/2009','mm/dd/yyyy') dt, 93 src, 'N-R' the_name, 'TT' cod, 'JJ' pad, ' TT' tek FROM dual UNION ALL
SELECT 112 the_id, To_Date('3/4/2009','mm/dd/yyyy') dt, 93 src, 'C-C' the_name, 'YY' cod, 'QQ' pad, ' WE' tek FROM dual UNION ALL
SELECT 112 the_id, To_Date('3/5/2009','mm/dd/yyyy') dt, 93 src, 'X-L' the_name, 'SS' cod, 'JJ' pad, ' BAN' tek FROM dual UNION all
SELECT 112 the_id, To_Date('3/6/2009','mm/dd/yyyy') dt, 93 src, 'V-H' the_name, 'BA' cod, 'PP' pad, ' YR' tek FROM dual UNION ALL
SELECT 112 the_id, To_Date('3/9/2009','mm/dd/yyyy') dt, 93 src, 'E-R' the_name, 'HH' cod, 'KK' pad, ' RE' tek FROM dual
)so as you can see, there are month end dates and well and daily dates. the daily are basically business days. what i want to do is the following
for a particular id, i would like to take the month end date, look forward 5 business day and copy the column values from the 5th business day
to the current row.
there is two exceptions:
1. i am only interested on those src=93 and 168.
2. the_name column will not be copy, but the rest will
so lets take an example, id = 111 src = 93. since i am only interested in src=93 and 168, this data fall in that category.
the month end dates for id=111 and src=93 are 6/30/09 and 7/31/2009.
in this case i want to look forward 5 business days. in the case of 6/30/09, the 5th business day is 10/7/2009 and for 7/31/2009 is 8/7/2009.
i want to take all the column values except the_name column and display those values for 6/30/09. same thing with 7/31/2009, take column values from 8/7/2009
and display those values.
so the output for 6/30/2009 should look like this
THE_ID DT SRC THE_NAME COD PAD TEK
111 6/30/2009 93 A-C DD BANif ou notice here 6/30/2009 retain the value for the_name column but took the values for the remaining column from 10/7/2009 (even the null values got copy)
the same logic should apply to 7/31/2009 and value should be taking from 8/7/2009
if the src is not equal to 93 or 168. then just display the data and no logic apply, for id=111 and src=90
no logic apply, the data should just be display.
i would like to write a query tha give me the output below.
i tried using last_value function but i am using oracle 9i and ignore null is not supported in oracle 9i. i need to copy null if the 5th day contain null in the columns
the final ouput for the data above should be this
THE_ID DT SRC THE_NAME COD PAD TEK
111 6/30/2009 93 A-C DD BAN
111 10/1/2009 93 B-L AA NN TT
111 10/2/2009 93 C-H BA RR BAN
111 10/5/2009 93 D-R HH FCY BANW
111 10/6/2009 93 E-C JJ EE JJ
111 10/7/2009 93 F-L DD FIC BAN
111 10/8/2009 93 G-H HG YY BAN
111 10/9/2009 93 K-R EE FCY BANW
111 7/31/2009 93 G-H EE FCY
111 8/3/2009 93 K-R EE FCY BANW
111 8/4/2009 93 K-R EE FCY BANW
111 8/5/2009 93 K-R EE FCY BANW
111 8/6/2009 93 K-R EE FCY BANW
111 8/7/2009 93 K-R EE FCY
111 6/30/2009 22 A-C AA BB CC
111 10/1/2009 22 B-L AA NN TT
111 10/2/2009 22 C-H BA RR BAN
111 10/5/2009 22 D-R HH FCY BANW
111 10/6/2009 22 E-C JJ EE JJ
111 10/7/2009 22 F-L DD FIC BAN
111 10/8/2009 22 G-H HG YY BAN
111 10/9/2009 22 K-R EE FCY BANW
111 10/30/2009 168 T-C EE DD BAN
111 11/2/2009 168 Y-L HH AA BAN
111 11/3/2009 168 G-H BA WW BAN
111 11/4/2009 168 E-R JJ XX DD
111 11/5/2009 168 T-C TT JJ WW
111 11/6/2009 168 H-L EE DD BAN
111 11/9/2009 168 S-H BA WW BAN
111 11/10/2009 168 H-R VV FCY YY
111 11/30/2009 90 V-C GG FCS BAN
111 12/1/2009 90 B-L QQ GG BAN
111 12/2/2009 90 A-H BA WW BAN
111 12/3/2009 90 N-R TT JJ TT
111 12/7/2009 90 C-C YY QQ WE
111 12/8/2009 90 X-L UU JJ BAN
111 12/9/2009 90 V-H BA PP YR
111 12/10/2009 90 E-R FIN2 FCY RE
112 2/28/2009 93 V-C BA PP YR
112 3/2/2009 93 A-S BA WW TT
112 3/3/2009 93 N-R TT JJ TT
112 3/4/2009 93 C-C YY QQ WE
112 3/5/2009 93 X-L SS JJ BAN
112 3/6/2009 93 V-H BA PP YR
112 3/9/2009 93 E-R HH KK REhi i am using oracle 9i 9.2.0.7.0
you are right about the 5th business day, for 6/30/2010 it should have been 8/7/2010. 7/31/2010 is a month end so it doesnt count when you go down the list of business days. and for 7/31/2010 the 5th business day should have been 10/7/2010.
sorry for the mistake, i got both of them backwards. so for the output, 6/30/2010 should copy from 8/7/2010 and 7/31/2010 from 10/7/2010
THE_ID DT SRC THE_NAME COD PAD TEK
111 6/30/2009 93 A-C EE FCY
111 8/3/2009 93 K-R EE FCY BANW
111 8/4/2009 93 K-R EE FCY BANW
111 8/5/2009 93 K-R EE FCY BANW
111 8/6/2009 93 K-R EE FCY BANW
111 8/7/2009 93 K-R EE FCY
111 7/31/2009 93 G-H DD BAN
111 10/1/2009 93 B-L AA NN TT
111 10/2/2009 93 C-H BA RR BAN
111 10/5/2009 93 D-R HH FCY BANW
111 10/6/2009 93 E-C JJ EE JJ
111 10/7/2009 93 F-L DD BAN
111 10/8/2009 93 G-H HG YY BAN
111 10/9/2009 93 K-R EE FCY BANWEdited by: elmasduro on May 10, 2010 11:53 AM -
How can I grab a specific integer value from iTunes Current Album?
Currently I'm working with these two bits of code:
This returns the "album" value from the track current playing in iTunes.
on run
set info to ""
tell application "System Events"
set num to count (every process whose name is "iTunes")
end tell
if num > 0 then
tell application "iTunes"
if player state is playing then
set albumName to (get album of current track)
end if
end tell
end if
return albumName
end run
This brings up the the site I am working with (not the real site).
tell application "Firefox" to activate
tell application "Firefox"
open location "http://google.com/"
end tell
Assuming all albums are formatted:
"XXXX[year]-XX[month]-XX[day]" = 10 numbers
How can I grab the first the first 10 numbers of the "Album" value? Eventually I want to figure out how to grab them then append them to the end of a URL to streamline functionality with a fan site. Thanks for any assistance!The 'return' within the run handler is going to stop the first script. How are you trying to get that data to the second script?
If they're the same script just put the data into a variable and append it to the URL. This simplified script shows the principle:
on run
tell application "iTunes"
if player state is playing then
set albumName to (get album of current track)
end if
end tell
set theDateString to text 1 thru 10 of albumName as text
tell application "Firefox"
open location "http://bandsname.com/" & theDateString
end tell
end run -
FB4 Implicit Paging: Any way to force current page to refresh its values from server?
I have a datagrid that I am using the new Flash Builder 4 implicit paging feature on. Currently if a user clicks a grid item and modifies its values in a popup i want to force the current page of the datagrid to retrieve those values from my server again.
Here is the scenario I want to reslove:
Say I have a 1000 records to be shown in the grid but I have utilized implicit paging and only show 100 records at a time. Say the user has scrolled down and they are now seeing the page containing records 300-399. If the user changes a value concerning one of the records in 300-399 I want that "page" to be refreshed from the server side data.
Now i have tested updating the data directly in the grid but have run into an issue. Say I change a value displayed in the grid on the client side, now if I get data from the server again it will only reflect what i changed earlier and not what is actually coming from the server.Well i figured out how to refresh the grid with:
service.getDataManager(service.DATA_MANAGER_FUNCTION).refresh();
Anyone know how to just refresh only one page out of a all the implicit pages? -
Triggerring PXI-4110 to measure 1 current value while HSDIO PXI-6552 generating waveform
Hi,
Some question about PXI-4110 to measure current while PXI-6552 is generating the waveform.
1. Let say, I need to measure 3 points of current values, i.e. while PXI-6552 is generating sample-1000, 2000 and 3500. On the edge of sample 1000,2000 and 3500, the PXI-6552 will send a pulse via PFI line or via PXI backplane trigger line. My question is, is it possible to trigger PXI-4110 (hardware trigger or software trigger) to measure current values at these points ?
2. Let say I need to measure the current on 0ms (start of waveform generation by PXI-6552) , 1ms, 2ms, 3ms, 4ms... and so on for 1000 points of measurement, code diagram as shown at the figure below. It is possible for the VI "niDCPower Measure Multiple" to measure exactly at 1ms, 2ms, 3ms .. ? How much time will have to spend to complete acquire 1 point of measurement by "niDCPower Measure Multiple" ?
Thanks for viewing this post. Your advice on hardware used or software method is much appreciated. Thanks in advance.
Message Edited by engwei on 02-02-2009 04:24 AM
Attachments:
[email protected] 46 KBHi engwei,
1. Unfortunately, the 4110 does not support hardware triggering. Therefore you cannot implement direct triggering through the backplane or anything like that. However, there are a couple of possible workarounds you can try:
a) Use software triggering: Say your 6552 is generating in one while loop, and your 4110 is to measure in another while loop. You can use a software syncrhonization method like notifiers to send a notification to your 4110 loop when your 6552 has generated the desired sample. This method, however, will not be very deterministic because the delay between the trigger and the response depends on your processor speed and load. Therefore, if you have other applications running in the background (like antivirus) it will increase the delay.
b) Use hardware triggering on another device: If you have another device that supports hardware triggering (like maybe an M-series multifunction DAQ module), you can configure this device to be triggered by a signal from the 6552, perform a very quick task (like a very short finite acquisition) then immediately execute the DCPower VI to perform the measurement. The trigger can be configured to be re-triggerable for multiple usage. This will most likely have a smaller time delay then the first option, but there will still be a delay (the time it takes to perform the short finite acquisiton on the M-series). Please refer to the attached screenshot for an idea of how to implement this.
2. To make your 4110 measure at specific time intervals, you can use one of the methods discussed above. As for how long it will take to acquire 1 measurement point, you may find this link helpful: http://zone.ni.com/devzone/cda/tut/p/id/7034
This article is meant for the PXI-4130 but the 4110 has the same maximum sampling rate (3 kHz) and so the section discussing the speed should apply for both devices.
Under the Software Measurement Rate section, it is stated that the default behavior of the VI is to take an average of 10 samples. This corresponds to a maximum sampling rate of 300 samples/second. However, if you configure it to not do averaging (take only 1 sample) then the maximum rate of 3000 samples/second can be achieved.
It is also important to note that your program can only achieve this maximum sampling rate if your software loop takes less time to execute than the actual physical sampling. For example, if you want to sample at 3000 samples/second, that means that taking one sample takes 1/3000 seconds or 333 microseconds. If you software execution time is less than 333 microseconds, then you can achieve this maximum rate (because the speed is limited by the hardware, not the software). However, if your software takes more than 333 microseconds to execute, then the software loop time will define the maximum sampling rate you can get, which will be lower than 3000 samples/second.
I hope this answers your question.
Best regards,
Vern Yew
Applications Engineer, NI ASEAN
Best regards,
Vern Yew
Applications Engineer
Attachments:
untitled.JPG 18 KB -
Making Current Values Default While VI is Running
Is there a way to 'make the current values default' while a VI is running?
You know, i try to read these posts really quick because i do this at work
(my boss doesn't mind because i learn things too). Anyway, my dyslexic mind
interpreted the subject line as initialize to default values. Sorry. Craig,
i think that's twice you corrected me. Thanks.
But now i have a question. Why would you want to set the current values
to default? So after stopping then re-starting the program it starts with
the last know values? (i know, thats really 2 questions). The way i do
this is to use the simple configuration read and write vi's to some ini file.
On program close, write the values. To make sure this is done, take the
stop button away from your users and use a front panel quit button that will
execute the write code before calling labview exit. Obvisously, on program
start, read from this file to return your controls to the last know states.
Hope this helps, sorry for the confusion.
Jared
"Craig Graham" wrote:
>Uh.. perhaps I missed this. Certainly you can set default values via>property
nodes, but I was under the impression only for a VI that isn't>running or
locked for running- i.e. in the hierarchy of another VI that is>running.
Am I mistaken?>>Hence a VI can load settings into another VI's front panel
controls, set>them as default and then use an "invoke node" to run the VI,
but there's no>way a VI can set its own front panel defaults unless you use
some horrible>method whereby it launches another VI, via "invoke node" since
the>hierarchies must be independent, the other VI aborts the first, sets
the>font panel defaults and then relaunches it, using "invoke node" before>killing
itself.>>jared wrote in message>news:[email protected]...>>>>
Yes, you have to use property nodes. This will only work in the>development>>
enviroment. If you compile into an .exe it won't work. This was discussed>>
last week or the week before on this group. Search using keywords from>your>>
subject line, i'm sure you'll find alot of info. I also created a sample>>
of how to implement this in an .exe. If this is something you would like,>>
email me and i will respond with it attached.>>>> Jared>>>> "Peter T"
wrote> >>Is there a way to 'make the current values default' while a VI
is>running?>>> -
Current value of a column.row in a Report region
Hi
I have a report that I want to display a single row per page. No problem there. I also want to show, in a separate region below the value of two specific columns for that row (they are large text items that I want to show as text areas).
My problem is how to have the source of the text area data items match the current report row above. What I want is sort of;
SELECT TEXTFIELDNAME FROM TABLE WHERE KEY = value from column1 in the report above above (like the #EMPNO# notation when linking a report column to another page)
Or maybe there is a better way ?
Any pointers much appreciated.
JulesHi Jules,
As always you've some options to achieve what you would like to do.
If you know AJAX, you could do it that why, if not an "easier" why of doing it:
1) Create an hidden item
2) In your report make a link to the same page, but give as parameter the hidden item with the pk as value
3) In your where clause of your select to fill in the text area, you search for the hidden item (WHERE key = :HIDDEN_ITEM)
Hope that helps,
Dimitri
-- http://dgielis.blogspot.com -
How to return current value in iterator
hi i have the following code when i iterator am always geting the same value,it display first value from the lov which is from the previous page.this is how am displaying the value i select value from lov and navigate to next page when am in the next page i must display value based on the lov selection,now i what to iterator that value organisation name,am always geting this value when iterating am not able to get the current value organisationname Botha Inc this value is the first value in my previous page lov
public String getorgname(){
String orgname = null;
// DCIteratorBinding it = ADFUtils.findIterator("UpdUamOrganisation1Iterator");
DCBindingContainer bindings1 =
(DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
// DCIteratorBinding it0 = ADFUtils.findIterator("UpdUamOrganisation1Iterator");
DCIteratorBinding it = bindings1.findIteratorBinding("UpdUamOrganisation1Iterator");
RowSetIterator rsi = it.getRowSetIterator();
Row rw = rsi.first();
orgname = (String)rw.getAttribute("Organisationname");
System.out.append("organisationname " + orgname);
return orgname;
my log error is
<DCIteratorBinding> <releaseDataInternal> [4213] Releasing iterator binding:listIter
<DCIteratorBinding> <releaseDataInternal> [4214] Releasing iterator binding:listIter
<DCIteratorBinding> <releaseDataInternal> [4215] Releasing iterator binding:listIter
<DCIteratorBinding> <releaseDataInternal> [4216] Releasing iterator binding:listIter
<ViewRowSetImpl> <execute> [4217] UpdResPerson1 ViewRowSetImpl.execute caused params to be "un"changed
<ViewRowSetImpl> <initQueryCollection> [4218] Carrying over CappedRowCount:-1for ViewRowSet:UpdResPerson1
<QueryCollection> <createColumnList> [4219] Column count: 11
<ViewRowSetImpl> <execute> [4220] executeQueryForCollection ViewObject:UpdResPerson1, RowSet:UpdResPerson1
<ADFLogger> <begin> Execute query
<ViewObjectImpl> <buildQuery> [4221] UpdResPerson1>#q old SQLStmtBufLen: 654, actual=624, storing=654
<ViewObjectImpl> <buildQuery> [4222] SELECT UamCompanyofficerdetails.ACCOUNTINGOFFICER, UamCompanyofficerdetails.CONTACTNUMBER, UamCompanyofficerdetails.DATE_CREATED, UamCompanyofficerdetails.EMAILADDRESS, UamCompanyofficerdetails.IDENTITYNUMBER, UamCompanyofficerdetails.NAME, UamCompanyofficerdetails.OFFICERID, UamCompanyofficerdetails.ORGANISATIONID, UamCompanyofficerdetails.OWNERSHIP, UamCompanyofficerdetails.STATUS, UamCompanyofficerdetails.SURNAME FROM UAM_COMPANYOFFICERDETAILS UamCompanyofficerdetails WHERE UamCompanyofficerdetails.ORGANISATIONID = :Bind_Organisationid
<ViewObjectImpl> <getStatementFromCache> [4223] ViewObject: [UpdOrgDetails.UpdResPerson]UpdAppModule.UpdResPerson1 Reusing defined prepared Statement
<ViewObjectImpl> <bindParametersForCollection> [4224] Bind params for ViewObject: [UpdOrgDetails.UpdResPerson]UpdAppModule.UpdResPerson1
<OracleSQLBuilderImpl> <bindParamValue> [4225] Binding param "Bind_Organisationid": 341
<ADFLogger> <addContextData> Execute query
<ADFLogger> <addContextData> Execute query
just executed query for collection..
<ViewRowSetImpl> <setWhereClauseParamsInternal> [4226] UpdResPerson1 ViewRowSetImpl.setWhereClauseParams caused params changed
<ADFLogger> <begin> Estimated row count
<ViewObjectImpl> <buildQuery> [4227] UpdResPerson1>#q old SQLStmtBufLen: 654, actual=624, storing=654
<ViewObjectImpl> <buildQuery> [4228] SELECT UamCompanyofficerdetails.ACCOUNTINGOFFICER, UamCompanyofficerdetails.CONTACTNUMBER, UamCompanyofficerdetails.DATE_CREATED, UamCompanyofficerdetails.EMAILADDRESS, UamCompanyofficerdetails.IDENTITYNUMBER, UamCompanyofficerdetails.NAME, UamCompanyofficerdetails.OFFICERID, UamCompanyofficerdetails.ORGANISATIONID, UamCompanyofficerdetails.OWNERSHIP, UamCompanyofficerdetails.STATUS, UamCompanyofficerdetails.SURNAME FROM UAM_COMPANYOFFICERDETAILS UamCompanyofficerdetails WHERE UamCompanyofficerdetails.ORGANISATIONID = :Bind_Organisationid
<ViewObjectImpl> <getQueryHitCount> [4229] Estimated Row Count for ViewObject: [UpdOrgDetails.UpdResPerson]UpdAppModule.UpdResPerson1, Query Statement:
<ViewObjectImpl> <getQueryHitCount> [4230] "SELECT count(1) FROM (SELECT UamCompanyofficerdetails.ACCOUNTINGOFFICER, UamCompanyofficerdetails.CONTACTNUMBER, UamCompanyofficerdetails.DATE_CREATED, UamCompanyofficerdetails.EMAILADDRESS, UamCompanyofficerdetails.IDENTITYNUMBER, UamCompanyofficerdetails.NAME, UamCompanyofficerdetails.OFFICERID, UamCompanyofficerdetails.ORGANISATIONID, UamCompanyofficerdetails.OWNERSHIP, UamCompanyofficerdetails.STATUS, UamCompanyofficerdetails.SURNAME FROM UAM_COMPANYOFFICERDETAILS UamCompanyofficerdetails WHERE UamCompanyofficerdetails.ORGANISATIONID = :Bind_Organisationid) "
<ViewObjectImpl> <getQueryHitCount> [4231] Bind params for ViewObject.getQueryHitCount: UpdResPerson1
<ADFLogger> <addContextData> Estimated row count
<OracleSQLBuilderImpl> <bindParamValue> [4232] Binding param "Bind_Organisationid": 341
<ViewObjectImpl> <getQueryHitCount> [4233] ViewObject: [UpdOrgDetails.UpdResPerson]UpdAppModule.UpdResPerson1 Estimated Row Count: 1
<ADFLogger> <addContextData> Estimated row count
Source breakpoint occurred at line 1532 of OrgDetails.java.
organisationname Botha Incam in jdeveloper 11.1.1.6.0
Edited by: adf009 on 2013/03/15 12:09 PMi change the code to this
public String getorgname(){
String orgname = null;
// DCIteratorBinding it = ADFUtils.findIterator("UpdUamOrganisation1Iterator");
DCBindingContainer bindings1 =
(DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
// DCIteratorBinding it0 = ADFUtils.findIterator("UpdUamOrganisation1Iterator");
DCIteratorBinding it = bindings1.findIteratorBinding("UpdUamOrganisation1Iterator");
RowSetIterator rsi = it.getRowSetIterator();
Row r = rsi.getCurrentRow();
orgname = (String)r.getAttribute("Organisationname");
System.out.append("organisationname " + orgname);
return orgname;
am still geting the first value from lov when i iterator i what to see the current value selected,i have put the inputtext with the organisation name it always show the first value it does not change when i make selection in my lov i even put the partial trigger but does not change based on lov selection
my jsff page is
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
xmlns:f="http://java.sun.com/jsf/core">
<af:panelSplitter id="ps1" orientation="vertical" splitterPosition="148">
<f:facet name="first"/>
<f:facet name="second">
<af:panelStretchLayout id="psl1" startWidth="126px" endWidth="124px">
<f:facet name="bottom"/>
<f:facet name="center">
<af:panelStretchLayout id="psl2" endWidth="137px" startWidth="220px">
<f:facet name="center">
<af:panelGroupLayout id="pgl1" layout="vertical" valign="middle"
halign="center">
<af:panelStretchLayout id="psl3"
inlineStyle="width:732px; height:340px;"
bottomHeight="100px">
<f:facet name="bottom">
<af:panelGroupLayout id="pgl2" layout="vertical"
valign="middle" halign="center">
<af:panelHeader text="Select Organisation To Update" id="ph1"
inlineStyle="border-style:ridge; border-color:Blue; height:57px;">
<f:facet name="context">
<af:group id="g2">
<af:toolbar id="t1">
<af:selectOneChoice value="#{bindings.Orgid1.inputValue}"
required="#{bindings.Organisationid.hints.mandatory}"
id="soc1" autoSubmit="true"
valuePassThru="true">
<f:selectItems value="#{bindings.Organisationid.items}"
id="si1"/>
</af:selectOneChoice>
</af:toolbar>
<af:inputText label="Label 1" id="it2"
value="#{bindings.Organisationname.inputValue}"
partialTriggers="soc1"/>
</af:group>
</f:facet>
<f:facet name="menuBar"/>
<f:facet name="toolbar">
<af:group id="g1">
<af:toolbar id="t2">
<af:commandButton
text="UpdateOrganisation"
disabled="#{!bindings.setCurrentRowWithKeyValue.enabled}"
id="cb1"
action="#{pageFlowScope.addMember.showSelectedOrg}"/>
</af:toolbar>
</af:group>
</f:facet>
<f:facet name="legend"/>
<f:facet name="info"/>
</af:panelHeader>
<af:inputText label="Selectedorg" id="it1"
value="#{bindings.Orgid1.inputValue}"
partialTriggers="soc1" visible="false"/>
</af:panelGroupLayout>
</f:facet>
<f:facet name="start"/>
<f:facet name="end"/>
<f:facet name="top"/>
</af:panelStretchLayout>
</af:panelGroupLayout>
</f:facet>
<f:facet name="top"/>
</af:panelStretchLayout>
</f:facet>
<f:facet name="start"/>
<f:facet name="end"/>
<f:facet name="top"/>
</af:panelStretchLayout>
</f:facet>
</af:panelSplitter>
</jsp:root>
the page def is
<?xml version="1.0" encoding="UTF-8" ?>
<pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
version="11.1.1.61.92" id="SelectOrgPageDef"
Package="uam.view.pageDefs">
<parameters/>
<executables>
<variableIterator id="variables">
<variable Name="Orgid" Type="java.lang.Integer"/>
<variable Name="orgid" Type="java.lang.Integer"/>
</variableIterator>
<iterator Binds="UpdUamOrganisationLov" RangeSize="-1"
DataControl="UpdAppModuleDataControl"
id="UpdUamOrganisationLovIterator"/>
<iterator Binds="UpdUamOrganisation1" RangeSize="25"
DataControl="UpdAppModuleDataControl"
id="UpdUamOrganisation1Iterator"/>
</executables>
<bindings>
<attributeValues IterBinding="variables" id="Orgid1"
ChangeEventPolicy="push">
<AttrNames>
<Item Value="Orgid"/>
</AttrNames>
</attributeValues>
<list IterBinding="variables" id="Organisationid"
DTSupportsMRU="true" StaticList="false"
ListIter="UpdUamOrganisationLovIterator">
<AttrNames>
<Item Value="Orgid"/>
</AttrNames>
<ListAttrNames>
<Item Value="Organisationid"/>
</ListAttrNames>
<ListDisplayAttrNames>
<Item Value="Organisationname"/>
</ListDisplayAttrNames>
</list>
<action IterBinding="UpdUamOrganisation1Iterator"
id="setCurrentRowWithKeyValue" RequiresUpdateModel="false"
Action="setCurrentRowWithKeyValue">
<NamedData NDName="rowKey" NDType="java.lang.String"/>
</action>
<attributeValues IterBinding="UpdUamOrganisation1Iterator"
id="Organisationname">
<AttrNames>
<Item Value="Organisationname"/>
</AttrNames>
</attributeValues>
</bindings>
</pageDefinition>Edited by: adf009 on 2013/03/15 1:19 PM
Edited by: adf009 on 2013/03/15 1:23 PM
Edited by: adf009 on 2013/03/15 1:23 PM
Edited by: adf009 on 2013/03/15 1:29 PM -
Setting current values in Multiple Select List in SQL Query based Report
Hi,
I have a report based on a sql query that contains a multiple select list. Unfortunately I cannot get the multiple select list to display the current values (p_value) correctly. I have created a page item, :p311_current_versions, that is set using a pre-header process and it returns a value with a colon delimited format e.g. '10.1.2.1.0:10.1.2.2.0'. Then this item is used in the sql query to set the current value (p_value) of the apex_item.select_list_from_query function. However when the table is displayed, instead of having two entries, 10.1.2.1.0 and 10.1.2.2.0 selected, it has an extra entry '10.1.2.1.0:10.1.2.2.0' selected.
Here is my code:
select distinct a.product, a.version from (
select distinct
apex_item.display_and_save(2,product)||apex_item.hidden(1,env_product_id) PRODUCT,
APEX_ITEM.SELECT_LIST_FROM_QUERY(3,decode(product, 'HTTP Server' , :p311_current_versions, version), 'SELECT distinct version d, version r FROM ebs_tech_stack where
product ='''||PRODUCT||'''',
decode(PRODUCT, 'HTTP Server' ,'multiple="multiple" style="width:170px"','style="width:170px"'),
'NO') as version
from ebs_environment_tech_stack
where environment_id = :p311_umgebung_id) a order by a.product
If anyone can help me figure out how to set the current values correctly I'd be really grateful!!
Thanks in advance,
JeanJean,
I don't think this is possible using the apex_item package. The select_list_from_query function accepts only a single value for the second parameter.
Scott -
Get the current value of a managed bean.
Hi guys
I have a register page which takes the Login ID and the password and retype password whose values are stored in the "Managed Beans" in registerServer.java.
I have a (PwdValidator.java) Custom validator for Re-type Password which validates itself against the password.
Now my problem is from the PwdValidator.java how can I access the value of the password which is stored in the managed bean in registerServer.java.
here is a copy of my faces-config.xml
<managed-bean>
<managed-bean-name>registerServer</managed-bean-name>
<managed-bean-class>com.sun.registerServer</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
Help is really appreciated,
Thanks,
Chaprasi BabaThanks for the reply but my question is how do I get
the password value from the managed bean
FacesContext context =
FacesContext.getCurrentInstance();
Application application = context.getApplication();
CountryValueObject registerServer =
(CountryValueObject)application.getVariableResolver().r
solveVariable(context, "registerServer");
String pwd = registerServer.password // So will this
give me the current value for that session.You didn't go far enough in replacing the example code . Try this:
FacesContext context = FacesContext.getCurrentInstance();
Application application = context.getApplication();
RegisterServer registerServer = (RegisterServer)application.getVariableResolver().resolveVariable(context, "registerServer");
String pwd = registerServer.password // So will this give me the current value for that session. -
How to get the current week from sysdate?
Hi sir,
i want to know how to get the current week from sysdate?
thanksHi Nicolas
It seems you like to check my post and also make commend ;) thanks for your attention
Have you ever read the posts above and given solutions ?Yes, I did
Have you read the docs ? Yes, I checked
What's the added value here ?Did youYou shared doc with solution(long one), I shared short one which point same solution(Check what Joel posted)..So what is benefit, As you can guess oracle docs are sometimes become so complicated as specialy for beginner...(At least it was like that for me and Belive me somedocs are still sooo complicated even for oracle coworkers ) But for you I dont know ;)
=> Why writting the PS in bold ?Why.. Let me think... Ohh Maybe I am looking some questions(many) and even user get answer they should not changed status so I am reading some posts and try to get problem and loosing time..
So I am putting that PS wiht BOLD because I dont wanna lose time my friend ;) Because While I am trying to help ppl here In same time I am trying to giving support to my customer prod systems. Which mean time is very important for me...
Hope my answer could satisfy you..
One important PS for you.. You may not like my posts (or someone) but my friend I become tired to read&answer and make commend to on your comment which is about my posts.
I am not newbie in forum(At least I fell like that) and I belive I know how I should make post..
Thank you
Regards
Helios -
How do I add current value to existing values over a period of time?
Sorry guys, I'll apologize in advance since I think this problem may be very simple, but I had been mind blocked from going through hours of Labview Tutorial and trying it out.
Lets say I am working on a workout analyser, and everytime the z-axis fall below 0, I would count it as '1 count', I wanted to add up the total number of counts. Do I use an array to store the 'count'? I try using shift register and it only gives me the current count plus the previous, i.e. I get 2 everytime I do a count.
Solved!
Go to Solution.If you just want a count, then a scalar value should be what you put into the shift register, not an array.
If the condition is true, add one to the value in the shift register and put it back in. If the condition is false, then just put the current value in the shift register back in.
Attachments:
Example_VI_BD.png 10 KB
Maybe you are looking for
-
When I try entering a new event in iCal on my MacBook Air, I get an error message popping up on my screen that says: The server responded with "502" The request for account "iCloud" failed. The server responded with "502" to operation CalDAVSetPrope
-
Change error message to warning during pricing condition upper limit check.
Hi All, I have a header condition ZFMN to which maximum amount that can be entered is set to $5000. When I enter the amount greater than this, it gives me error message. Could we change it to warning message?
-
How can I scan and send a copy to my email
How can I scan and send a copy to my email
-
How can I tell if my tex are blocked
How can I tell if my tex are blocked from another user ? If blocked will it still say delivered, and will the tex color appear blue or green ? I have an IPhone 5c
-
gud mrng, after creating the idoc function module,how are we writing the code? how are we using the standard idoc?