Separating 16 bits of data into one 12 bit and one 4 bit channel
I have 16 bits of binary data and i'm trying to split these into one 12 bit and one 4 bit channel. I know that I could use something like:
Dim Channel1 : Set Channel1 = Block.Channels.Add("Channel1", eI16)
Channel1.Formatter.Bitmask = 4,095 'xxxx 1111 1111 1111
but, i'm not sure how to grab those 4 bits out of the 16 bit channel1 and make channel2. It's like i almost need to say something like:
Dim Channel2 : Set Channel2 = Block.Channels.Add("Channel2", eI16)
Channel2 = Channel1.Formatter.Bitmask = 61,440 '1111 xxxx xxxx xxxx
Can anyone help out???? thanks.
OK...This is still straightforward. Her is what you want to do :
CurrPos = File.Position ' remember where the block starts
Set Block = File.GetBinaryBlock()
' set up all channels which can be read directly
Dim Channel1 : Set Channel1 = Block.Channels.Add("Channel1", eU16)
Dim Channel2 : Set Channel2 = Block.Channels.Add("Channel2", eByte)
Dim ChannelPH : Set ChannelPH = Block.Channels.Add("Dummy", eU16) ' just a placeholder
Dim Channel5 : Set Channel5 = Block.Channels.Add("Channel5", eU16)
Dim Channel6 : Set Channel6 = Block.Channels.Add("Channel6", eByte)
' Now we need a block which has one channel only. This channel will be used to extract the bits.
' The block needs to start where the third schannel of the above block starts :
File.Position = CurrPos + 2+1 ' 2 for the U16 channel, 1 for the byte channel
Set Block = File.GetBinaryBlock()
' Set the scan width. This defines the gaps between the values of a channel
Block.BlockWidth = 2+1+2+2+1 ' U16 + Byte + U16 + U16 + Byte
Dim Channel3 : Set Channel3 = Block.Channels.Add("Channel3", eU16)
' .. apply bitmask and scaling (see my last example)
' Do the same for the second channel
Set Block = File.GetBinaryBlock()
' Set the scan width. This defines the gaps between the values of a channel
Block.BlockWidth = 2+1+2+2+1 ' U16 + Byte + U16 + U16 + Byte
Dim Channel4 : Set Channel4 = Block.Channels.Add("Channel4", eU16)
.. apply bitmask and scaling (see my last example)
Do the same for the second channel
I hope this works as expected. Let me know if you need more help...
Andreas
Similar Messages
-
How to apply data into 2 tables AND to more than one record in same table?
Hello,
I am trying to apply/insert data into 2 tables AND at the same time apply data to more than one record (in the same table). How would I do this in APEX?
I have updated using one table with no problem, however, when I try updating with the two tables/ multiple record sets, I get errors.
I appreciate the help.
Thanks.
LindaYou can achieve what you want using PL/SQL. Can you post ur code?
-
I have a work to do, in ssrs we are using server reports in our project. i am looking for dynamically generating the ssrs dataset and filling the data into the dataset and binding the dataset to ssrs report(RDL) dynamically.
Getting the dataset dynamically has a solution by using Report Definition Customization Extension (RDCE), but the problem is binding that dataset to the report(RDL) dynamically was not there.
Here is the reference for RDCE http://www.codeproject.com/Articles/355461/Dynamically-Pointing-to-Shared-Data-Sources-on-SQL#6
I looked for binding the dataset to the report(RDL) dynamically and searched many sites but i did not get the solution. Can anyone help me here.
Is there any custom assemblies or any Custom data processing extensions to work around. Please help.
Thanks in advanceHi Prabha2233,
Thank you for your question.
I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated.
Thank you for your understanding and support.
Regards,
Vicky Liu
Vicky Liu
TechNet Community Support -
How to import data into taxonomy tables and qualified tables
Hi ALL,
Can anybody suggest to import data into taxonomy tables and qualified tables, when is value mapping neccessary and what is partitioning? and what is the use of that partioning?Hello rehman
even i am facing same issue regading import of data in taxonomy table
. can we do it through import manager.
please provide me some details i will be very very thankful to u
my email - [email protected]
Thanks & regards
Himanshu -
I imported several events for iPhoto into Aperture3 and in Aperture it shows two photos for each photo imported, one original and one edited although none of the photos imported were edited. Why has this happened and what do I need to do to prevent this in future. I have only recently got Aperture and am trying to learn as I go along using the Focal Press guide. Thanks for any help.
Ir. Bob wrote:
A photo that was rotated in iPhoto will also show up as iPhoto edited.
This is not what I found to be the case in a recent experiment using iPhoto11- I did repeat it to be sure.
https://discussions.apple.com/message/15586837#15586837
Quickly, what I found is that only the ones I did actual adjustments on brought over two images. Images that were simply rotated, had "quick fixes" or "Effects" did not bring in two images. More importantly, among the ones with adjustments that did bring in two images, the ones with the keyword "iPhoto Edited" appear to be nothing more than iPhoto's 6MB JPEG Previews. The master was a 25MB RAW image.
I don't know why some users are experiencing doubles on everything, but I recommend caution in deciding which ones to remove or you may find yourself deleting masters and keeping previews.
DLS -
We have two iphones , one imac , and one itunes account. Hope someone can tell me an easy way to synch each iphone so that our contacts stay separate. I would like to share itunes music etc but not synch the same contacts to each phone...major problem... Thanks!
You have a few options which are detailed here:
http://support.apple.com/kb/ht1495 -
Merging one Audio and one Video into one file.
Hi guys,
I have one audio and one video file, related to same issue.
I want to merge it using Java.
Please help me to solve this out.
Thanking you all in advance.
Regards,
Lovelesh.check out FMJ:
http://fmj-sf.net/ -
Find the alteast one number and one character in the given string
Hi All,
How to find the given input string it contains at least one alpha and one number.
My test data like this
test123 ->pass
test -> Fail
123test -pass
123 -> Fail
select * from dual where regexp_like ('test123','[0-9]')Purvesh K wrote:
One of easiest ways:
with data as
select 'test123' col from dual union all
select '123test' from dual union all
select 'test' from dual union all
select '123' from dual
select *
from data
where regexp_like(col, '[[:digit:]]+[[:alpha:]]+|[[:alpha:]]+[[:digit:]]+', 'i');
COL
test123
123test
Just a note - This will fail, if any characters like SPACE (or any non alpha numeric characters) appears in the string like..
with data as
select 'test 123' col from dual union all
select '123test' from dual union all
select 'test' from dual union all
select '123' from dual
select *
from data
where regexp_like(col, '[[:digit:]]+[[:alpha:]]+|[[:alpha:]]+[[:digit:]]+', 'i');Edited by: jeneesh on Mar 5, 2013 12:04 PM
You could change like
where regexp_like(col, '[[:digit:]].*?[[:alpha:]]|[[:alpha:]].*?[[:digit:]]', 'i'); -
Problem for getting the real path using one servlet and one jsp page
I have one tomcat machine and several virtual domains. Eahc virtual domain has one realpath in the disc.
I am using one servlet and one jsp page for using this servlet.
my purpose is to load, using the servlet , the real path for the domains (eahc domain has its path).
for this i make this:
the servlet code is this:
package utils.ticker;
import java.io.*;
import java.io.File;
import java.io.IOException;
import java.net.*;
import java.util.*;
import java.text.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.http.HttpServlet;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
public class Edicion extends HttpServlet{
public Edicion() {
public String cc(){
ServletContext myContext= getServletContext();
String abspath = myContext.getRealPath("/");
//here i want to return the real path
return abspath;
public static void main(String args[]){
and the jsp page is:
<%@ page import="utils.ticker.*" %>
<jsp:useBean id="tick" class="utils.ticker.Edicion" scope="session"/>
<html><head><body>
<%
tick.cc();
%>
</body></head></html>
But this produces one error, NullPointerException and dont shows me the real path.
Can anyone help me?
thanksi have put this into one sevlet:
package utils.ticker;
import javax.servlet.ServletContext;
public class Edicion{
private ServletContext myContext;
public Edicion(ServletContext myContext) {
this.myContext = myContext;
public String getCC(){
return myContext.getRealPath("/");
and in the jsp page this:
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*"%>
<%@ page import="utils.ticker.*" %>
<jsp:useBean id="tick" class="utils.ticker.Edicion" scope="session"/>
<html><head><body>
<%=tick.getCC()%>
</body></head></html>
but appear this error in the tomcat.
Can you, please, help me. i am trying to solve this during one week and i am desesperate.
Thanks.
ERROR:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: class utils.ticker.Edicion : java.lang.InstantiationException: utils.ticker.Edicion
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
at java.lang.Thread.run(Thread.java:536)
root cause
javax.servlet.ServletException: class utils.ticker.Edicion : java.lang.InstantiationException: utils.ticker.Edicion
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:533)
at org.apache.jsp.pruebas_jsp._jspService(pruebas_jsp.java:72)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
at java.lang.Thread.run(Thread.java:536)
Apache Tomcat/4.1.18 -
Resulting grid does not contain at least one row, one column and one POV
I have upgraded to 9.3.3 recently.
We have a front end app which will run MDX queries to retrieve data.
Sometimes based on the users selections MDX query might get back nothing i.e will get #missing across all rows/columns and this works fine with the existing 9.3.1 essbase server.
If I run the same query against a 9.3.3 essbase cube I get the error "Resulting grid does not contain at least one row, one column and one POV. If you have any suppress row options selected pls clear them."
I DO NOT have Supress missing data/zero enabled. Not sure why I get this error even though I dont have that option enabled.
Essbase 9.3.3 on HP-UX ITanium 11.31
APS 9.3.3 on win 2003 R2
Smartview 9.3.3 - also tried with smartview 9.3.1.6 and see the same error.
Any suggestions to fix this issues?The front end is using a VBA command "hypexecutequery" and with 9.3.3 essbase I get a return code -9 which means Operation was cancelled as per the smartview doc.
In 9.3.1 essbase I get the return code 0 which means the query is fine even if it does not return any data.
The query I am using now will return nothing as it is a check to see if there is any data. But with 9.3.3 Essbase I get an error code -9 which looks like it does not like the syntax or something.
Any suggestions? -
i have one iphone and one nano. and when i want to put some songs or video to either one ,but the another one cannot. For e.g. i have already put all my songs in the nano and i want to put the same songs into my iphone, then what can i do to solve it?
You can sync as many ipods/iphones as you like to the same library.
What exactly is the problem?
You open itunes, connect iphone, select what you want to sync and sync. Did you do this?
What happened? -
I have three iPads and one iPod and one iPhone. How can I message between them without sending the message to all of them. You send the message to your email address but all of them are set up under one account.
You can have a different receiving email in the Messages app on each device : Settings > Messages > Receive At . I'm not sure that there is a different way to have the message only go to one device.
-
Need to use only one sender and receiver communication channel.
Hello Experts.
I have a scenario where in I have to use only one sender and receiver communication channel to push files from different source directories to different receiver directories.
For Eg;
Sender
D://dir1/file1 ---> E://dir1/File1
F://dir2/file2 ----> G://dir2/file2
H://dir3/file3-----> I://dir3/file3.
Can this be achieved by using pass through scenario?
Please let me know if the requirement is not clear.
Thanks in advance.
Advit RameshHi Advit,
I think it is possible. You have to use the Advanced Selection for Source file in the sender channel to define multiple files to be picked up. Also, the Dynamic configuration must also be enabled and used in the mapping so you can manipulate the target directory and target file name based on your source files.
For Polling from multiple directories:
http://wiki.scn.sap.com/wiki/display/XI/File+Sender+Adapter+-+Polling+Multiple+Directories
Dynamic Configuration:
Dynamic file name and directory in Receiver File Adapter - summary of possibilities - Process Integration - SCN Wiki -
Oh my what a mess! I would really like to have one id and one password for all the products - MacBook Pro, iPad, iPod and iPhone. I am forever getting invalid id or invalid passwod message when I try to do something. The security questions are questions I never would have answered and I think the emails are going to my huspand's gmail account!
Can anyone help me sort this mess out?
This has been posted in the mac community as well!If you want to merge Apple ID's - you can't do that. For reasons unknown, Apple just doesn't allow it. Passwords are are different story. You should be able to reset your password for any other the ID's that you have.
Do you have multiple Apple ID's? And if this situation is that much of a mess, you might be better off contacting Apple in order to get it straightened out.
Here is a user tip that might be of some help.
https://discussions.apple.com/docs/DOC-4551 -
My husband and I share a new PC. We have different music tastes and each have an iphone. How can we both use our one computer and one itunes program with separate music libraries and separate iphones?
Each device only syncs waht you select.
Select only what you want for each phone. -
Can I include external drives to be backed up using Time Machine? Not only do I want to back up my IMac, but I have several extenal drives for one iPhoto, one iTunes and one for other files & documents. How do I know if they are included in the backup process?
Yes, if they are not exclude then TM backs them up.
Allan
Maybe you are looking for
-
Error 11222 after installing itunes 7.7 and i can'st connect to itunes.
is there a simple solution?
-
Crystal Reports for VS 2010 SetDataSource Problem
Hi guys, I am trying to pass a dataset table to Crystal report in run time by using: rptDocument.SetDataSource(DTS) problem is the report is showing many records and not records that are relevant to the data source I have set. I assume it shows data
-
Alternate data stream (ADS) removal does not update file time stamp.
Hello, I am using standard CL program stream.exe to operate ads on file. If I add ADS to file, file data\time will be changed. F:\>dir 07/23/2014 06:43 PM 32,768 test.txt F:\>stream cr test.txt:0 important_info SUCCESSFUL: tf1.txt:0 is cr
-
Hi Experts I have an issue when I load metadata via ODI to HFM. I get this message: Error code: 0x80040154 [Class not registered com.hyperion.odi.common.ODIHAppException: Metadata load failed. Error code: 0x80040154 [Class not registered After some s
-
Borderless printing on non HP paper
Hi everyone, i got an issue with my HP Photosmart Pro B9180 and 10.5.2. It´s not possible to print borderless on papers witch require the icc of HP Premium paper. I need to print on a non HP Paper but with the profile of HP Premium paper. When border