Queue a dynamic container type
Hi,
I have several threads running, each waiting for an input queue (queue names are numbered by threads: "Queue0", "Queue1", ...) and expecting an individual container type as input in the queue.
I have variables for all these input containers, also numbered by threads: FileGlobals.Input0, FileGlobals.Input1, ...
Now I would like to send these input containers through the queues to the various threads in a loop in TestStand, e.g., something like (in pseudo code representing steps in a sequence):
for thread = 1 to n
Enqueue(Queuename= Str(thread, "Queue%d"); Element to enqueue: Str(thread, "FileGlobals.Input%d"))
end
I tried to enqueue
FileGlobals.GetPropertyObject(Str(thread, "Input%d"), 0)
and the thread end of the queue gives me an error about an incompatible type being dequeued. I also tried the same with "AsPropertyObject", did not work either.
Is there a way to do this?
Thanks,
Peter
Solved!
Go to Solution.
Hi Peter,
Yes it is possible if you use Evaluate().
Just see the example
regards
juergen
=s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=
Attachments:
Dequeue.seq 6 KB
Enqueue.seq 7 KB
Similar Messages
-
How to use a queue with dynamic data
When using a collector I have found that it significantly slows down my loop times. I am using LabView7.1 on a Dell PC with Windows XP. If I use a queue with dynamic data do you think that will require less of my processor and allow for faster loop speeds?
I have created a queue using dynamic data in one loop and I want to retrieve all available samples each iteration in a slower loop. If I use the flush queue I get a 1d array of dynamic data. What is the best way to convert the 1d array of dynamic data so that the array of dynamic data is consolidated back into a single dynamic data type? Any help would be much appreciated.Hi Dennis,
You could for instance wire the array to an auto-indexed for loop. I attach an example. I assume you wish to concatenate the arrays a singel waveform.
Hope it helps,
Pelle S
District Sales Manager
National Instruments Sweden
Attachments:
Dynamic queue.vi 245 KB -
Hi!
I am writing a script where we are trying to use dynamic call types based on the inputs from a database look up. Basically the call is comes into the script and a database lookup is done on the AW to determine which call type is used. Later on we use a menu script and change the call type. Once the system has allocated a precision queue we need to collect some queue stats. How do we do this? The format for collecting a stats is PQ.<preciscion queue name>.CallsInQ. How du you replace the precision queue name with a variable that is then evalutated.
PeterYour best best is to keep the call type name in a PV, then just do PV.CallsinQ.
david -
"HttpParam is undefined" JS error when using dynamic container in portal
I am using dynamic container tag "*dc:container*" within an iterator in a pageflow portlet & I'm sending different parameter in each iteration, it worked well in IE7, but in FireFox, some of the rows were rendered & for the rest I received the following exception:
DynamicContentXmlHttpServlet: Error dispatching request to requested action: '/src/com/loadFriendRatePlan'.
java.lang.NullPointerException
at com.bea.apps.groupspace.servlets.DynamicContentXmlHttpServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:83)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:359)
at org.springframework.security.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
at org.springframework.security.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)
at org.springframework.security.ui.SessionFixationProtectionFilter.doFilterHttp(SessionFixationProtectionFilter.java:67)
at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)
at org.springframework.security.ui.ExceptionTranslationFilter.doFilterHttp(ExceptionTranslationFilter.java:101)
at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)
at org.springframework.security.providers.anonymous.AnonymousProcessingFilter.doFilterHttp(AnonymousProcessingFilter.java:105)
at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)
at org.springframework.security.wrapper.SecurityContextHolderAwareRequestFilter.doFilterHttp(SecurityContextHolderAwareRequestFilter.java:91)
at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)
at selfcare.portal.shared.web.security.sso.ClearTrustPreAuthenticatedProcessingFilter.doFilterHttp(ClearTrustPreAuthenticatedProcessingFilter.java:132)
at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)
at org.springframework.security.ui.logout.LogoutFilter.doFilterHttp(LogoutFilter.java:89)
at org.springframework.security.ui.SpringSecurityFilter.doFilter(SpringSecurityFilter.java:53)
at org.springframework.security.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:371)
Note: every time i refresh the page different rows are rendered, which means that the non rendered rows have nothing to do with the parameter sent in each iteration.
I've added the portlet to portal, & now nothing is rendered in both IE7 & FireFox, & "HttpParam is undefined" JavaScript error is displayed in both browsers.
Note : my portlet "Async Content rendering" property is set to ajax, & the portal "Asynchronous Model" property to enabled.
<h3>Here's sample of my tag code:</h3>
<dc:executeContainerAction action="loadFriendRatePlan" dcContainerId="${container.index}"
var="ratePlan"/>
<dc:container dcContainerId="${container.index}">
<dc:containerActionScript action="loadFriendRatePlan" initial="true"
onErrorCallback="displayMessageNotAvailable">
<dc:containerActionParam name="friendAccount" value="${container.item.accountNumber}"/>
<dc:containerActionParam name="friendContractType" value="${container.item.contractType}"/>
</dc:containerActionScript>
</dc:container>
<script type="text/javascript">
${ratePlan}
</script>
Any clue how can I solve both errors?Just so there is a record of this on the Adobe site...
IF you are running Apache and have virtual hosts, be sure to add the line
Alias /CFIDE "c:/inetpub/wwwroot/CFIDE"
to the virtual host list. Of course change the path c:/inetpub/wwwroot/CFIDE" to whatever is set up in the CF Administrator.
Otherwise, none of your cfform stuff will work properly, AJAX will croak, and you will get a 'Coldfusion' is undefined error. -
Form Guide - dynamic field within dynamic container.
I have a form Guide using dynamic containers, but within the dynamic container on the Form Guide within the same Repeater Accordion Panel, I also need a dynamic Row (2 fields) that need to repeat within the repeating container. I have built this in Adobe Lifecycle ES and once the Form Guide is finished will be taking it to Adobe Workbench to render.
Could you please assist in how to make the dynamic row repeat within a container/panel that is also already repeating?
Thanks.Penny,
I have a requirement for the same thing. Unfortunately it doesn't look like this is possible as there is only one dataProvider per Panel - based on the type of panel chosen, this dataProvider will be used to populate a control (accordion, grid or tab) in the panel or used to populate a number of repeated (static) panels.
My workaround has been to create a set number (10) of repeatable control panels (accordian, grid, tab) and then use the panel display rules to hide those panels with no data in them. It is very tedious to do as the guide builder has no rebind feature (you have to create all 10 panels from scratch - you can't copy & paste the layout, then rebind the panel items to another field in the form).
John. -
Currently, I have the following basic VI setup to save Data from my PCI6221 Data Aquisition Card. The problem I'm having is I keep getting the last iteration of the while loop in the measurement file and that's pretty much it. When I try to index the data leaving the loop it gives me a 2D array of Data which cannot be input into the "Write to Measurement File" VI. How would I save this to a useful Data/time step format? I was wondering of a way to continuously collect the Data and then save it in a large measurement file that I would manipulate in Matlab/excel? Am I using the wrong type of loop for this application? I also noticed my Dynamic Data array consists of data, time, timestep and then a vector of the data taken. Is it possible to just get a vector of the time change per sample alongside the data? Sorry for the barrage of questions but any help would be greatly appreciated, and thanks in advance!
-Bryan
Attachments:
basic DAQ.vi 120 KBThere is a VI in the Express > Signal Manipulation palette called "From DDT" that lets you convert from the Dynamic Data Type to other data types that are more compatible with operations like File I/O....for instance, you could convert your DDT into a 2D array and use the Write To Spreadsheet File.vi. Just a thought...
-D
Darren Nattinger, CLA
LabVIEW Artisan and Nugget Penman -
Set Queue name dynamically in MQ adapter
Hi,
Kindly suggest, how to set Queue name dynamically in Mq adapter.Hi Ajay,
Thanks for your response.
Below mentioned property value works fine for JMS adapter.
Am looking for the property name of MQ adapter.
Tried to set the queue name to the property jca.mq.ISpec.EnqueueMsgToQ and failed.
Could you please provide the property name for MQ adapter -
Create dynamic data type in structure
Hi Experts,
I am new to ABAP.
In my scenario data type is varying for the field. for that I need to create dynamic data type in structure, this structure I am using for internal table for OVS search input.
Please suggest the solution for this.
Advance thanks,
Regards,
BBCThanks for your quick reply,
I used your logic like this.
data:
ls_component type abap_componentdescr,
lt_component type abap_component_tab.
*... (1) define structure components :
clear ls_component.
ls_component-name = 'NVALUE'.
ls_component-type ?= cl_abap_typedescr=>describe_by_name( <fs_seg_v>-fieldname ).
insert ls_component into table lt_component.
*... (2) create structure
data lr_strucdescr type ref to cl_abap_structdescr.
data lr_data_struc type ref to data.
lr_strucdescr = cl_abap_structdescr=>create( lt_component ).
create data lr_data_struc type handle lr_strucdescr.
field-symbols <fs> TYPE any.
assign lr_data_struc->* to <fs>.
your logic is working fine.
here I am getting feild name (<fs_seg_v>-fieldname) from internal table.
But I need to assign same field name structure to query parameter.
FIELD-SYMBOLS: <ls_query_params> TYPE lty_stru_input.
Please can you suggest how I can refer the field name structure?
Regards,
BBC -
Dynamic line type creation in 620
I'm trying to create a dynamic line type for a structure to create an internal table. While this is possible starting from 640 using RTTC, it is my understanding that this is not possible in 620. Any ideas?
Hi,
May be this way, I am not 100% sure about this in 6.20
DATA: new_table_dyn TYPE REF TO data,
new_line_dyn TYPE REF TO data.
FIELD-SYMBOLS: <it_itab> TYPE STANDARD TABLE,
<wa_line> TYPE ANY.
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = it_dyncat
IMPORTING
ep_table = new_table_dyn.
ASSIGN new_table_dyn->* TO <it_itab>.
CREATE DATA new_line_dyn LIKE LINE OF <it_itab>.
ASSIGN new_line_dyn->* TO <wa_line>.
aRs -
Create Structure with dynamical Table-Type
Hi experts,
is there a possibility, to create a structure via SE11 and including there a field which referes to a dynamic table-type.
So that I can append to this structure-field all different table-types?
for example: ones I append MARA[] and ones AFKO[]
Thx for helpHi Christian,
There's not predefined generic type to do that, but you could create your own field type (deep structure) which would be able to keep table lines after transposition (90 degree flip) where in example it would have four columns: Table type, row id(index) field name, value. That way you could store ANY table row you need... This will not come cheap and will involve some work of course.
You may want have a look at standard ABAP services RRTS and RTTI (see classes and structures used in attributes an parameters) - these are two services for handling data types and metadata related operations during runtime. You may want to use them for flipping your table entries to the tabular form and so on. You may also find some ideas there on how to compose your own data type for your purposes.
Good luck!
Marcin -
Dynamic ALV: but with globally available dynamic table type
Hello,
I would like to create a dynamic node for a ALV and dynamic table types to fill and the ALV.
The ALV data can be changed so I need to read it again.
I have read all the threads about dynamic node create and i have no problem with it. I can create a structure and a table dynamically. thats also no issue for me.
But. I fill the ALV data in a method and read it in another method to save the changes in a data base table.
Thats also no problem
So where i need your help? I currently create the dynamic table and structure in both methods. That works, but why do the same thing twice?
I cant figure out by myself how to create a dynamic table/structure in a global way, so the dynamic table/structure is created once and then available in the whole WD4A view.
I tried is with a class type in se24 with reference to CL_ABAP_STRUCTDESCR but I cant make that run, because to access the type I created an attribute in se24 with reference to the class type that I now try in instance and fill in the method. But ABAP thinks that my attribute is not compatible anymore.
Any idea how to make a dynamic table globally available? That must be an ABAP god who can answer this question, hehe. So imagin me falling on my knees for the one who has an answer that really works
Kind regards,
HendrikThis doesn't seem too difficult really. For a dynamic table you just need to declare the internal table as TYPE REF TO DATA.
Just more this declaration to the attributes of your Component Controller. So for instance in my component controller I have an attribute called i_data with the RefTo column checked and the associated type = DATA.
So now I could do the following:
create data wd_this->idata type table of (tablename).
Or however you are dynamically creating the table - maybe with TYPE HANDLE instead.
The point is that your dynamic table is now global to your entire component and you can read and write to it from different methods.
Is this what you were looking for? Without knowing more about your existing coding, it is difficult to say more. -
Overwriting AQ Queue name dynamically in OSB
Hi,
Can any one please help me on this.
Is there any way we can overwrite the AQ Queue name dynamically at runtime in OSB . I copuld see that its a property within the .jca file. Is there any way we can overwrite it at run time.
Thanks,
Naveenyou could add routing options to overwrite the URI on runtime.
or use dynamic routing if you have seperate business services for the aq endpoints -
Hello,
We have a problem about RTP dynamic payload type 123. If you know, please explain when cisco gateways are nagotiation between non-cisco media gateways. When we look at rtp packets, Wireshark tag this packets malformed. Is there a way Can we disable between gateways are nagotiation with dynamic payload type 123.
i found only below info about rtp dynamic payload type 123 that is used for indicating Cisco CAS information.
RTP Payload Value
RTP Payload Definition
123
Indicates Cisco CAS information.
regards,
OmerWhat is your hardware?
Do you have already see this doc?
Enable RTP Signaling on AS5350 and AS5400
In order to prevent errors caused by RTP packets of payload type “123” on Cisco AS5350 and AS5400 series platforms, RTP signal processing is disabled by default. Under some circumstances, packets of this type can cause an invalid memory address error in AS5350 and AS5400 series platforms, potentially crashing the devices.
On these models, you can enable RTP signal processing using the voice-fastpath voice-rtp-signalling enable hidden configuration command. However, before you enable RTP signal processing, prepare the platform to handle RTP packets of payload type “123” by enabling T-CCS.
After you prepare the platform, you can use these commands in order to enable or disable RTP signal processing.
In order to enable RTP signal processing, use this command:
Router(config)#voice-fastpath voice-rtp-signalling enable
In order to disable RTP signal processing, use this command:Router(config)#no voice-fastpath voice-rtp-signalling enable -
Extending EventDispatcher with dynamic event types
I'm currently trying to write my own class to extend the
EventDispatcher class. My goal is to create a Service class which
acts as a switchboard for incoming socket data. Incoming socket
data is parsed to create an Event which is Dispatched to the
appropriate Service object which dispatches the event to any
registered listeners.
The problem I'm having is that I'm confused about how to
handle the event types -- the string parameter which is always
supplied as the first argument to the addEventListener() function.
In all the examples I've seen, the value supplied is a class
constant like MouseEvent.CLICK or VideoEvent.READY. In the case of
my application, I want the developer to define their own Event
types without having to go and edit my class files. In other words,
I'd like to use dynamic event types with my class--maybe something
like the code I've attached.
I'm not new to Actionscript but am very new to the
EventDispatcher class. I'm wondering a bit what that first
parameter really does in a strict programming sense -- i haven't
seen it explained all that well in the piles of documentation I've
read on the Adobe site so I don't really know if I need to define
my own Event class or what and whether I have to define all those
possible event type constants/strings in advance or what.
Any help/advice would be much appreciated.I have looked it up here:
Actionscript
3.0 Language Reference
and it just says that the first arg to 'addEventListener' is
"The type of event" with no further explanation at all.
I have read this:
Flash
Quick Starts: Programming With Actionscript 3.0: Event handling
It doesn't help much either. It tells me I need the
appropriate event object which makes me wonder DO I NEED MY OWN
CLASS? For that first ard to addEventListener, it merely says
"Substitute the appropriate constant". Given that I want to use
dynamic types (i think so anyway) that is not helpful information
either. Every single example on that page uses a class constant for
event type.
It links to
this
which says "First, the name of the specific event you want to
respond to. Once again, each event is affiliated with a specific
class, and that class will have a special value predefined for each
event--sort of like the event's own unique name, which you should
use for the first parameter." Still no useful detail about what
that arg does and the insistence on constants.
The quick start page also has a link title "Handling Events"
in Programming ActionScript 3.0 but it links to some documentation
titled "Working with XML". The only discussion of events in that 10
or so pages is because some user posted a comment.
I have read this
entire
article which is more helpful than anything in the flash docs
but still doesn't answer all my questions which (AGAIN) are:
1) What is the real function of the first argument to
addEventListener? I have not seen a clear explanation anywhere.
2) Do I need to write my own Event class?
3) What about dynamic event types that are defined at
runtime? Are there any pitfalls or risks that arise from using a
string instead of a predefined constant as the first param to
addEventListener() ?
Please stop telling me to read the documentation. I've been
reading it for days. -
How do I Change the plot waveform colour on a Dynamic Data type Graph?
I have multiple different plots on different graphs, and I want to set the colours of the different waveforms.
In order to display the waveforms on different graphs, I switched to Dynamic data type and then split the wire
according to how many channels I have.
I can set the graph background colour with a property node, and create cursors of different colours no problem
using the array of references that I have created, so there is nothing wrong with my array of references or the property node.
As soon as I try and wire a colour box into the Plot>Plot Colour control, I get error 1055 out of the property node.
I was wondering if it was an error between the keyboard and the chair, but now I am thinking it is someting more sinister.
The Error box pops up and can't be dismissed remaining the focus until I run TASKKILL on LabVIEW and terminate it.
Any ideas on how to achieve my goal would be appreciated.
(LabVIEW 8.6)
Solved!
Go to Solution.Hi Sheela,
It's 1 plot per graph, up to 4 graphs displayed on different tabs.
Here are some screenshots
Attachments:
graph_display.JPG 135 KB
set_Plot_colour.JPG 79 KB
Maybe you are looking for
-
Asus G1 & kernel 2.6.23 : one step backwards
Hi all, I've been annoyed for a long time with a high pitch noise problem when laptop not plugged to AC (i.e on battery). To my great relief the problem had gone with kernel 2.6.22 ... And now it's back with kernel 2.6.23 !!! This is probably due to
-
Change the appleid on a computer
We gave a MacBook (10.7) to granddaughter for college (smart girl, will use it well) which I set up initially which means it was born with my AppleID. She has her own ID, so I'd really like to switch it to hers, but i cant figure out where to do that
-
Receiving JSON message in BPEL
Hi All, We have a requirement in our project to expose a Restful web service which receives messages in JSON format. We tried using HTTP Binding but it accepts only XML message. As a workaround we are now trying to introduce a proxy java service whic
-
Framemaker 10 trail install failure
I am trying to decide between upgrading Framemaker 8 to FM 10 or migrating to Madcap Flare. I need to produce both print and web outputs and most of the documents are structured. I have lots of legacy FM files. I downloaded and installed Flare withou
-
I can't see my control panels in Camera Raw
Ever since I purchased CC, I can not use Camera Raw. The control panels are black and I can't read what each of the sliders is adjusting. See the attached screen shot. I contacted support previously and they said it was because I was also running Mac