Strange behavior when getting data and storing it into a tdms file
Hi
I am getting data from a VISA device(10bytes every 20ms) in a string buffer and then using indexing array get each element which is 2 bytes , filtering the data in real time using a butterworth filter and then storing the data to a TDMS.
The problem is that the data goes haywire after a brief the the different elemetns just switch. So for example x becomes resistance, GSR becomes etc
I have uploaded the VI and the TDMS file converted to excel format
You really should be writing to the TDMS file while you acquire the data. By using the Autoindexing Tunnels to build the arrays, you are causing A LOT of memory allocations, which causes things to really slow down. I would venture to say that you are missing data, causing what looks like a shift in the data. But you would need to be looking at the error coming out of the VISA Read to know for sure.
So look into the Producer/Consumer. The idea is to use a parallel loop to log the data while your current loop reads and processes the data. The data is sent to the consumer loop via a queue.
Similar Messages
-
Hi All,
I am facing a strange behavior with GET Event for PNP LDB.
In my selection-screen, i have fields like Payroll Area, Current Period, Other Period, personnel number.
Usually, i populate Payroll area, other period(say 06-2007) and input some personnel number.
When i tried to debug for one personnel, its not at all going into GET PERNR event...it directly goes to END-OF-SELECTION event.
Please help on this.
Regards,
Kiran ChennapaiHi Manoj,
The below is some part for my coding:
START-OF-SELECTION.
IF pnptimr9 = 'X'.
PERFORM f_get_next_period. "Take next period when the selection
" is current period
ENDIF.
Get deatils of actions and pay-scales
PERFORM f_get_data.
CLEAR: g_num_processed, g_num_skipped, g_num_success, g_num_error.
GET pernr.
rp_provide_from_last p0001 space pn-begda pn-endda.
IF pnp-sw-found = 1.
Verify whether the personnel is under the given Payroll area or not
CHECK p0001-abkrs = pnpxabkr.
IF p_eegrp IS NOT INITIAL.
Verify personnel's employee group is under the given EEgroup
CHECK p_eegrp = p0001-persg.
ENDIF.
start processing for the selected personnel
PERFORM f_process_data.
ENDIF.
END-OF-SELECTION.
Do increment process for all the selected personnel
IF NOT git_process[] IS INITIAL.
PERFORM f_increment_process.
ENDIF.
When i tried to put a break-point at the first statement in the GET event and executed, its not going into GET event at all.(personnel number is existing in the system)
Regards,
Kiran Chennapai -
Strange behavior when I try to match a mpeg2 video with the menu size image
hello all,
got a strange behavior when I try to match a mpeg2 video with the menu size image,
menu size is 1920 x 1080 (photoshop file)
mpeg2 video 1920 x 1080 (1second 19 frames)
the idea is to go from the menu link to the next sub menu with a video as transition, using the same image on the video as the menu and then zooming in (in my case through a door) to end up after the zoom in the next level menu.
I try to achieve a smooth change from the first play menu picture to the video image into the next level menu picture,
everything works good but when I watch it on the preview mode on the left and right side of the video it shows a black bar at least 15 to 25 pixel wide, that means the video image appears smaller and it causes a little jump what is preety disturbing and can not be sold as a professional work.
why encore treats the video size and picture differently?
it's gratful appreciated if somebody who got experience in a transition I mentioned obove posting any solution,
thankl you allHi all
I'm having a very similar problem with Encore. My menu items are distorting (a minor but infuriating squashing top and bottom) when previewed.
Using Encore,PS,AE CS4
DVD format SD PAL DV widescreen
I created 3 menu frameworks and 3 video transistions to link them in AE. On the final frame of each transistion in AE I saved the frame with Composition>Save Frame to> Photoshop Layers. In PS i added the button functionality and saved.
In Encore I use Dynamic link to import AE transistions as timelines and imported each PS menu twice, once as "menu" and once as an asset.
When I link the timeline transistions to the menu and preview at the point the menu begins the whole image is squashed. When the next transistion is activated the image returns to its original size.
Thinking it was the use of PS that was causing the menus to distort I used the menu asset directly in the time line. Obviously no menu functionality but also no distortion. The AE transistion flowed straight into the "menu" just as I expected.
In the properties panel the menu Aspect Ratio 16:9
The AE transistions PAR is SD PALwidescreen 1.4587.
I did try the Blu Ray suggestion above but the same distortion was apparent.
Any suggestions short of squashing the video to match the menu would be welcomed.
Thanks -
Error when getting data (RSDRI_CUBE_READ) - RSCRM_BAPI
Hello Gurus,
I am getting a error when I try to create a extract using RSCRM_BAPI using Process Chain.
I created a job and used that in the Process Chain, Once I run the Process Chain it is executing and
the job is deleted and the extract gives me this error in the Monitor.
Error Message - Error when getting data (RSDRI_CUBE_READ)
If I run manually I am able to see the extracted records.
Please help.
Regards,
RajHi,
"Unknown error when executing MDX" is msg number BRAINOLAPAPI012.
Check out these 3 SAP notes:
1091523 MDX: System error in connection with named sets
1252372 OLE DB for OLAP: Additional corrctions for new MDX parser
1282785 MDX: System error "Invalid MDX command with <internal>
Also test in transaction MDXTEST to see if your statements are syntactically correct.
Rgds,
Colum -
How Adobe gets DATE and its format?
Hello,
I am getting current (todays) date by using below JS in some flds, and by using below FormCalc for some flds into my_form,
JS:
var currentTime = new Date()
Form Calc:
$.rawValue = num2date(date(), DateFmt(MM/DD/YYYY))
But, i dont have much idea that how adobe is getting this date? For my company this is the very first form, hence they are asking me how adobe gets date and its format whether,
1) From local IP/Interner provider address's date, format?
2) or user PC/laptop's LOCAL settings date, format? if so, for example, if Germany user (Laptop settings) has a DD.MM.YYYY configured, if this user comes to US on a busines trip and if that user opens the form, then how the date looks like for this user? as per user laptop settings DD.MM.YYYY or local internat provider date format MM//DD//YYYY?
Thank youHi,
the date() function returns the number of days since 01.01.1900 for the local date of the current system (related to the system clock of the OS).
If you travel from Germany to the US but don't update your date/time settings, then it returns the same date in the US as in Germany.
You can check the behavior by changing your local date/time setting or the timezones. -
How do I get date and time component from a DATE object?
Hi All,
I need to get date and time separately from a DATE object, does
anyone know what function I should call? GetDate()? GetTime()?
I need this in a SELECT statement.
Thanks in advance and looking forward to your early reply.
Regards.
Gladywin
30/11/2001Hello,
See following SQL.
select to_char(sysdate,'dd/mm/rrrr') today_date,
to_char(sysdate,'hh24:mi') now_time
from dual
Adi -
Get date AND time to show in the menu bar
What is that technique to get date AND time to show in the menu bar please?
Install iStat Menu
System Preferences -> iStat Menus -> Date & Time
\[X] Show Date & Time
Format .... \[Edit]
(*) Custom (drag tokens to build a custom format)
Drag a light blue token into the edit line below the token selections. If you want a space a colon a dash, etc... just type that character(s) before after draging a token into place.
I created: 9:35 PM Sat 1-Aug-2009
You can create anything you like in any order you like.
The other alternative (if you happen to be a fan of the Unix strftime() function) would be to use the % formatting characters in the Expert time format expression box. Use the Terminal "man strftime" to find out all the available % formatting codes.
But I think the Custom Drag & Drop section is the easiest to use.
However, if this doesn't work for you, then I guess it is just a case of "Your Mileage May Vary". -
Conversion failed when converting date and/or time from character string
Hi experts,
I'm trying running a query in Microsoft Query but it gives the following error message:
"conversion failed when converting date and/or time from character string"
when asks me the data I'm inserting 31-01-2014
i've copy the query form the forum:
SELECT T1.CardCode, T1.CardName, T1.CreditLine, T0.RefDate, T0.Ref1 'Document Number',
CASE WHEN T0.TransType=13 THEN 'Invoice'
WHEN T0.TransType=14 THEN 'Credit Note'
WHEN T0.TransType=30 THEN 'Journal'
WHEN T0.TransType=24 THEN 'Receipt'
END AS 'Document Type',
T0.DueDate, (T0.Debit- T0.Credit) 'Balance'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')<=-1),0) 'Future'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>=0 and DateDiff(day, T0.DueDate,'[%1]')<=30),0) 'Current'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>30 and DateDiff(day, T0.DueDate,'[%1]')<=60),0) '31-60 Days'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>60 and DateDiff(day, T0.DueDate,'[%1]')<=90),0) '61-90 Days'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>90 and DateDiff(day, T0.DueDate,'[%1]')<=120),0) '91-120 Days'
,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>=121),0) '121+ Days'
FROM JDT1 T0 INNER JOIN OCRD T1 ON T0.ShortName = T1.CardCode
WHERE (T0.MthDate IS NULL OR T0.MthDate > ?) AND T0.RefDate <= ? AND T1.CardType = 'C'
ORDER BY T1.CardCode, T0.DueDate, T0.Ref1Hi,
The above error appears due to date format is differnt from SAP query generator and SQL server.
So you need convert all date in above query to SQL server required format.
Try to convert..let me know if not possible.
Thanks & Regards,
Nagarajan -
I have a table-valued function that run in sql 2005 and when try to execute in sql 2008 r2, return the next "Conversion failed when converting date and/or time from character string".
USE [Runtime]
GO
/****** Object: UserDefinedFunction [dbo].[f_Pinto_Graf_P_Opt] Script Date: 06/11/2013 08:47:47 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE FUNCTION [dbo].[f_Pinto_Graf_P_Opt] (@fechaInicio datetime, @fechaFin datetime)
-- Declaramos la tabla "@Produc_Opt" que será devuelta por la funcion
RETURNS @Produc_Opt table ( Hora datetime,NSACOS int, NSACOS_opt int)
AS
BEGIN
-- Crea el Cursor
DECLARE cursorHora CURSOR
READ_ONLY
FOR SELECT DateTime, Value FROM f_PP_Graficas ('Pinto_CON_SACOS',@fechaInicio, @fechaFin,'Pinto_PRODUCTO')
-- Declaracion de variables locales
DECLARE @produc_opt_hora int
DECLARE @produc_opt_parc int
DECLARE @nsacos int
DECLARE @time_parc datetime
-- Inicializamos VARIABLES
SET @produc_opt_hora = (SELECT * FROM f_Valor (@fechaFin,'Pinto_PRODUC_OPT'))
-- Abre y se crea el conjunto del cursor
OPEN cursorHora
-- Comenzamos los calculos
FETCH NEXT FROM cursorHora INTO @time_parc,@nsacos
/************ BUCLE WHILE QUE SE VA A MOVER A TRAVES DEL CURSOR ************/
WHILE (@@fetch_status <> -1)
BEGIN
IF (@@fetch_status = -2)
BEGIN
-- Terminamos la ejecucion
BREAK
END
-- REALIZAMOS CÁLCULOS
SET @produc_opt_parc = (SELECT dbo.f_P_Opt_Parc (@fechaInicio,@time_parc,@produc_opt_hora))
-- INSERTAMOS VALORES EN LA TABLA
INSERT @Produc_Opt VALUES (@time_parc,@nsacos, @produc_opt_parc)
-- Avanzamos el cursor
FETCH NEXT FROM cursorHora INTO @time_parc,@nsacos
END
/************ FIN DEL BUCLE QUE SE MUEVE A TRAVES DEL CURSOR ***************/
-- Cerramos el cursor
CLOSE cursorHora
-- Liberamos los cursores
DEALLOCATE cursorHora
RETURN
ENDYou can search the forums for that error message and find previous discussions - they all boil down to the same problem. Somewhere in your query that calls this function, the code invoked implicitly converts from string to date/datetime. In general,
this works in any version of sql server if the runtime settings are correct for the format of the string data. The fact that it works in one server and not in another server suggests that the query executes with different settings - and I'll assume for
the moment that the format of the data involved in this conversion is consistent within the database/resultset and consistent between the 2 servers.
I suggest you read Tibor's guide to the datetime datatype (via the link to his site below) first - then go find the actual code that performs this conversion. It may not be in the function you posted, since that function also executes other functions.
You also did not post the query that calls this function, so this function may not, in fact, be the source of the problem at all.
Tibor's site -
SAP query error - 1). [Microsoft][SQL Server Native Client 10.0][SQL Server]Conversion failed when converting date and/or time from character string. 'Received Alerts' (OAIB)
SELECT
CASE WHEN T0.DocStatus = 'O' THEN 'OPEN'
WHEN T0.DocStatus = 'C' THEN 'CLOSED' END AS 'Document Status',
T0.DocDate AS 'Posting Date',
T0.DocNum AS 'Doc.No',
T0.NumAtCard,
T0.TransId AS 'Trans. No.',
T0.Comments AS 'Remarks',
T0.CardCode AS 'Offset Acct',
T0.CardName AS 'Offset Acct Name',
sum(T0.DocTotal) + (T0.WTSum) as 'DocTotal',
T3.DueDate AS 'Cheque Date',
T3.CheckSum AS 'Amount'
FROM ODPO AS T0 LEFT OUTER JOIN
VPM2 AS T1 ON T0.ObjType = T1.InvType AND T0.DocEntry = T1.DocEntry LEFT OUTER JOIN
OVPM AS T2 ON T2.DocEntry = T1.DocNum LEFT OUTER JOIN
VPM1 AS T3 ON T2.DocEntry = T3.DocNum
where T0.DocDate>='[%0]' and T0.DocDate<='[%1]'Hi,
Try this:
SELECT
CASE WHEN T0.DocStatus = 'O' THEN 'OPEN'
WHEN T0.DocStatus = 'C' THEN 'CLOSED' END AS 'Document Status',
T0.DocDate AS 'Posting Date',
T0.DocNum AS 'Doc.No',
T0.NumAtCard,
T0.TransId AS 'Trans. No.',
T0.Comments AS 'Remarks',
T0.CardCode AS 'Offset Acct',
T0.CardName AS 'Offset Acct Name',
sum(T0.DocTotal) + (T0.WTSum) as 'DocTotal',
T3.DueDate AS 'Cheque Date',
T3.CheckSum AS 'Amount'
FROM ODPO T0 LEFT OUTER JOIN
VPM2 T1 ON T0.ObjType = T1.InvType AND T0.DocEntry = T1.DocEntry
LEFT OUTER JOIN
OVPM T2 ON T2.DocEntry = T1.DocNum LEFT OUTER JOIN
VPM1 T3 ON T2.DocEntry = T3.DocNum
where T0.DocDate >= '[%0]' and T0.DocDate <='[%1]'
group by T0.DocStatus,T0.DocDate ,
T0.DocNum ,
T0.NumAtCard,
T0.TransId ,
T0.Comments ,
T0.CardCode,
T0.CardName ,
T0.WTSum ,
T3.DueDate ,
T3.CheckSum
Thanks & Regards,
Nagarajan -
Someone is using faebook to run java script to get data and email from me in windows 8
someone is using faebook to run java script to get data and email from me in windows 8
Is this a developer question?
Jeff Sanders (MSFT)
@jsandersrocks - Windows Store Developer Solutions
@WSDevSol
Getting Started With Windows Azure Mobile Services development?
Click here
Getting Started With Windows Phone or Store app development?
Click here
My Team Blog: Windows Store & Phone Developer Solutions
My Blog: Http Client Protocol Issues (and other fun stuff I support) -
Strange pops when pressing play and stop. Logic 9.1.3, Mac internal Sound
Hi,
So I opened Logic for the first time in a while.
Logic Pro Version 9.1.3 (1697.87) 32bit.
Mac 2 x 2.8GHz Quad-Core Intel Xeon
Mac OS 10.6.5
6GB RAM
I am using the internal Mac sound card, set up as follows :
Core Audio
Built In Line Output
IO Buffer Size 512
I am running ONE Mono audio track, with one Space Designer plug-In (mono>Stereo) inserted on the first insert slot.
There is nothing else playing back on this particular logic song.
Every time I press the spacebar for play or stop, I get a tiny delay, a pop, and then is starts, or it stops playing.
This is using the Macs' own internal sound card. With Logic's own Space Deigner, on ONE mono audio track.
SO, any ideas as to why this happens?
The only reason I opened Logic, was because I wanted to show a producer friend of mine some personal Space Designer presets I had made a couple of years ago, in case that was the type of ambience he is interested in using for a mix.
My plan was to use Logic as an effects suite, using a Motu 828mk3 conected via ADAT Lightpipe to my Pro Tools HD converter, to send and recieve 4 stereo sends and returns with 4 instances of Space Designer.
But, if Logic hiccups with the internal sound card... what will happen when I use the Motu? I dread to think about it, but will test it tomorrow.
At least I have two weeks to get this working or re-do my convolution reverbs in another plug-in (Waves IR1) that I can use in Pro Tools, in case Logic just does not work out.The multi-purpose internal audio chips used in Mac's & PC's has some built in latency and seemes to default to a basic 16-bit 48kHz format. Any change from this and the chip has to change on the fly, I knew sample rate did this, makes sense bit depth might as well.
Some internal chips have a built in noise gate which can also cause a "thump". (rare)
Cheap or out-of-spec audio chips with a high DC offset will cause a pop when pressing "Play" and "Stop", as will an audio file that has a high DC offset.
pancenter- -
Trying to drag pdf files i have and combine them into one pdf file in the account i just purchased with Adobe. when i drag a pdf file over Adobe doesn't accept it. says it can not convert this type of file. but it is an Adobe file. Do I need to change it in some other form befor dragging it?
Hello djensen1x,
Could you please let me know what version of Acrobat are you using.
Also, tell me your workflow of combining those PDF files?
Please share the screenshot of the error message that you get.
Hope to get your response.
Regards,
Anubha -
How to get nodes and its attributes of an XML file usiong DOM parsing?
how to get nodes and its attributes of an XML file usiong DOM parsing?
i am new to XML parsing.......
Thanking you........import org.w3c.dom.Document;
import org.w3c.dom.*;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.DocumentBuilder;
import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException; ...
//Setup the document
DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
Document doc = docBuilder.parse (new File("MY_XML_FILE.xml"));
//get elemets by name
String elementValue = doc.getElementsByTagName("MY_ELEMENT").item(0).getTextContent();
//This method can return multiple nodes, in this instance I get item(0) , first nodeRead the api for other methods of getting data. -
XML stream and stored as an output XML file
Dear ALL,
Could you help me in such situation?
I need create XML file. I have DTD file. I create XML stream and stored as an output XML file. But all the data of my XML file stored in one line.
How I can create my XML file according to DTD file?
Thanks a lot.
Best regards,
Igorhi
good
go through this links,hope these would help you to solve your problem
http://rustemsoft.com/JSPsample.htm
http://publib.boulder.ibm.com/infocenter/wsphelp/index.jsp?topic=/com.ibm.etools.xmlbuilder.doc/tasks/txmltask.htm
thanks
mrutyun^
Maybe you are looking for
-
Crystal report for visual studio 2005 dblogin problem
Dear Sir, I am using Visual Studio 2005 and crystal reports for visual studio 2005 and sql server 2000. When I am running the project from my pc where it was developed and a local server with server authentication, report is opening but from client m
-
Use PIX 501 to access internet, how to?
I have this PIX501 box and this is what I want to do: Outside: connect it to a DSL modem (yahoo/ATT SpeedStream 5100). Use DHCP Inside: connect to one or two PCs. Use static IP. The PIX box's inside IP: 192.168.1.1 The Yahoo's DNS server IP: 192.168.
-
i have a laptop mac 3 years old i did not pay the extend warranty plan, so know i can't update the iPhone 5 because thai do not accepted a update for iTunes the new version what i have to do call to apple or make repair
-
Can I use Win Xp setup apllication, found in "I386" folder?
Is it all possible, to reinstall win xp using the setup file found in the I386 file on my harddrive, it asks for a cab1 file, but I can only assume it has only been extracted as there are a load of files with the last letter of their file name replac
-
Set startposition of a "bigger than screen site"
Hi! Im doing a site that has a width of 4000 pix and i want to scroll with anchors from the middle to left or right. But where is the option to set the start position of a site? It always starts from the top left corner. But I wnt to start from the m