Excel calculatio​n in DIAdem for Peak Sun Hours
I am trying to perform a calculation for peak sun hours in DIAdem that we typically perform in Excel. Any advice on how to approach this calculation in the DIAdem environment much appreciated.
Solved!
Go to Solution.
Attachments:
Irradiance Data.xlsx 2050 KB
Hi moses montoya,
I was able to recreate the Peak Sun Hours data with the following script.
Dim PeakSun, intLoop
PeakSun = ChnAlloc("Peak Sun Hours")
Data.Root.ChannelGroups(1).Channels("Peak Sun Hours").Values(1) = 0
For intLoop = 2 to (Data.Root.ChannelGroups(1).Channels("Channel 2").Size - 1)
Data.Root.ChannelGroups(1).Channels("Peak Sun Hours").Values(intLoop) = Data.Root.ChannelGroups(1).Channels("Peak Sun Hours").Values(intLoop - 1) _
+ (Data.Root.ChannelGroups(1).Channels("Channel 1").Values(intLoop) - Data.Root.ChannelGroups(1).Channels("Channel 1").Values(intLoop - 1)) * 24 / 1000 _
* Data.Root.ChannelGroups(1).Channels("Channel 2").Values(intLoop)
Next
Channel 1 was the time, and Channel 2 is the irradiance.
Regards,
Brandon V.
Applications Engineering
National Instruments
www.ni.com/support
Similar Messages
-
What is the method/alg​orithm used by Diadem for peak search?
Hi all,
Can you please let me know what method/algorithm is used by Diadem for peak search? Please note I am familier with peak search function in Diadem but I need to know the theory/algorithem that it uses to find the peaks.
Thanks
Hossein
Solved!
Go to Solution.Greetings Hossein
Check the last paragraph of this document.
Let us know if that answers your question or if you have further inquiries on this subject. Have a nice day!
Luis J.
Applications Engineer
National Instruments -
As an example I have velocity data which shows a vehicle accelerating from rest to 60 km/h and then travelling at a constant speed. As opposed to displaying this data using a 2D axis system is it possible to create a new speedometer display type to display this information? Maybe this display type already exists but I have not come across it yet? I've been using DIAdem for a few days now. The current version I am using is 11.2. It has been suggested in the past that it was possible to display data using numeric displays etc but I can't seem to find the features in v11.2. Thanks for your help in advance.
Hey Matthew,
I'm sorry for the [extremely] delayed reply - I have been out of the office (and out of the country) for two weeks with extremely limited email access. I've attached the files that I used to create the example you saw in the YouTube video embedded above. Please note that I threw this together pretty quickly for the video, and that it is not "commercial quality." Use this as a proof-of-concept upon which to elaborate to get started.
The parts are:
CAN Synchronization.tdv
This is the DIAdem VIEW Layout that contains the video, map, 2D axis, and embedded user dialog with ActiveX gauge control. Think of this as the "user interface" you see in the video.
Gauge.sud
This is the scriptable user dialog (SUD) box that is embedded in the VIEW Layout described above. It contains the ActiveX control which I have affectionately named "MyGauge."
DisplayCursorCommand.vbs
This is the short script that is designed to react to the event that fires when the cursor is playing in DIAdem VIEW. I have commented all 5-ish lines with their functionality.
In order to register the script so that it fires in reaction to the event when the cursor is playing, I chose to register it as a DIAdem UserCommand (Settings » Options » Extensions » User Commands) and then run the line of code:
View.Events.onCursorChange = "DisplayCursor"
You could do this elsewhere within some other script.
Let me know if you have any questions!
Derrick S.
Product Manager
NI DIAdem
National Instruments
Attachments:
Gauge.zip 7 KB -
How to set persistent binding for QLA2300 (Sun branded -uses qlc driver)
How to set persistent binding for QLA2300 (Sun branded ) HBA using qlc driver from Sun?
Are there any CLI's for it?
Is it done automatically?
Is there any way by which we can infer that persistent binding is done?
Platform: Solaris 9 on SPARCPersistent binding is effectively provided by STMS (MPxIO) - is there anything in particular you're wanting to do that STMS doesn't provide?
-
Unable to locate unrestricted policy files for the Sun JCE for download
My platform:
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Oracle JRockit(R) (build R28.1.4-7-144370-1.6.0_26-20110617-2130-windows-x86_64, compiled mode)
I am unable to locate the Unlimited Strength Jurisdiction JCE files.
According to BouncyCastle for Java 1.6:
..."you must download the unrestricted policy files for the Sun JCE if you want the provider to work properly. The policy files can be found at the same place as the JDK download. Further information on this can be found in the Sun documentation on the JCE."The version at the very bottom of http://www.oracle.com/technetwork/java/javase/downloads/index.html should work.
-
Generating Excel Report from Outlook 2013 for the meetings attended/ accepted
Hello Team,
Could you please advise how do I Generate Excel Report from Outlook 2013 for the meetings I attended/ accepted. Also I do I check or figure out the time I spent attending meeting.
Please help to answer me ASAP.
Thank you
PreetHi Preet,
As far as I know, no features in Office client can generate Excel workbook from Outlook. But we can implement this requirement by macros. If you want to receive more information, I suggest you post this issue on MSDN forum.
http://social.msdn.microsoft.com/Forums/en-US/home
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share
their knowledge or learn from your interaction with us. Thank you for your understanding.
Best regards,
Greta Ge
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs. -
How do we scan for viruses of uploaded excel file in Web Dynpro for JAVA
Hi All,
Please let me know "How do we scan for viruses of uploaded excel file in Web Dynpro for JAVA"
Regards,
Ganga.Hi ,
pl go through this note "Integrating a virus scan into SAP applications 817623 "
SAP Virus Scan Interface
http://help.sap.com/saphelp_nw2004s/helpdata/en/30/42c13a38b44d5e8d1b140794e8e850/frameset.htm
Sample Application
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6e1c4221-0901-0010-63ba-b1f9459d6e74
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f2681486-0a01-0010-8497-c778eac80da5
Regards
Ayyappparaj -
Using WLS 10.0 mp2 and jrockit, there looks to be intermittent delays in the webservice, of about 3.5 seconds delay, when WLS is trying to acquire locks for com.sun.xml.ws.handler.ServerSOAPHandler in com.sun.xml.ws.handler.HandlerPipe.process(). This is showing up in JRA recording, and is happening about 15-20% of the calls.
Does anyone encounter similar issue?
Also, WLS 10.0.2 comes with JAX-WS 2.0.1. Is there any issue upgrading to 2.2?Using WLS 10.0 mp2 and jrockit, there looks to be intermittent delays in the webservice, of about 3.5 seconds delay, when WLS is trying to acquire locks for com.sun.xml.ws.handler.ServerSOAPHandler in com.sun.xml.ws.handler.HandlerPipe.process(). This is showing up in JRA recording, and is happening about 15-20% of the calls.
Does anyone encounter similar issue?
Also, WLS 10.0.2 comes with JAX-WS 2.0.1. Is there any issue upgrading to 2.2? -
Where is the source for com.sun.media.rtp?
Is the source for com.sun.media.rtp available for download?
I downloaded the JMF source code, but, it's not there. I have downloaded the source for J2SE and it's not there.
Where is it?
Greg Silverman
NGC
San Jose, CAHi,
This forum is exclusively for discussions related to Sun Java Studio Creator. Please post your question in the appropriate forum.
Thanks,
RK. -
Clustering support for BEA Weblogic Enterprise for Solaris/SUN HA
Hi,
Does BEA WLE 5.0.1/5.1 support SUN's SunCluster 2.X HA Framework for the Sun
Enterprise set of Hardware?
If not - do you plan to provide support for it in any future releases?
Thanks and regards
Mark O'Brien
Look for WLS 10.3 under Oracle rather than BEA group.
Konstantin -
"Timed event" for peak detection input
I have a program that takes some data and looks for peaks in the data it collects. What I need to do is make a timed event such that the "peak width" parameter will change from one control variable that I can change manually to a second one after a certain time. Do I need a second loop and some boolean logic for this, or is there a much simpler way?
I don't have access to the entire program right now, but the attached screenshot should contain all the relevant stucture.
Attachments:
untitled2.jpg 112 KBSorry for the multiple posts.
Upon closer inspection of the first VI image attached, I think I should clarify a bit more. In this attachment, a subVI called "peak detector" is being used to locate the magnitude and position of maximum values of the data array. I think this is the similar VI as the one shown here. This VI is being passed the following input parameters:
So it looks like the goal is to change the value of the "width" input manually after a certain period of time has elapsed. There was some ambiguity in my mind of exactly what this meant.
If we just want to change the value of the "width" input during future iteration(s) in the stacked sequence structure, one way would be to place a different control inside each stacked sequence structure. You could add Wait (ms) VI's inside each stacked sequence to delay the progression from sequence to sequence.
By contrast, if the goal is to change the value of the "width" input in the middle of the "X" array, then we could alter Detect Peak VI's default behavior by going into the block diagram of this VI. You might need to press "Ctrl+m" on its front panel to get an editable VI in this case. There, switch the threshold value to another added input parameter after a certain number of iterations into the array.
What is the behavior that you want to see?
Just some thoughts if you haven't solved the issue yet. Hope this helped, let me know if you have any questions or comments, and best of luck. -
Merge Excel cells when creating file for Background job
Hi Experts
I need to create an Excel document and within the excel sheet merge some cells, I can get that done via OLE.
My problem though comes in with... the Report needs to be scheduled as a background job and therefore OLE does not work!!!
Does any of you have another solution to merge cells while running in background??
Your thoughts are greatly appreciated.
VicHi Vic,
You can use the xml transformations for formatting excel. For my case I needed multiple sheets including glossary sheet to be mailed in a particular format , which was achieved by using transformations.
CALL TRANSFORMATION z_xls_xxx
SOURCE table = i_tmp_b[]
RESULT XML wa_xmlstr.
TRY.
cl_bcs_convert=>string_to_solix(
EXPORTING
iv_string = wa_xmlstr
iv_codepage = '4103' "suitable for MS Excel, leave empty
iv_add_bom = 'X' "for other doc types
IMPORTING
et_solix = l_bin
ev_size = l_size ).
CATCH cx_bcs.
MESSAGE e445(so).
ENDTRY. -
Where to download API for com.sun.j3d.utils ?
hi,
where can i download the api for com.sun.j3d.utils. i dont want to see it online, i need an offline version (in order to use it with a textpad-plug-in.
thanx,
Usulyes, the documentation.
well, of couse i have downloaded java3d. but i cant find the documentation in there. java3d has two subfolders "demo" and "jre". in "jre" are the two subfolders "bin" and "lib". and the documentation nowhere to be found. -
TS1702 Payments taken twice for THE SUN app
Two payments have been taken at the same time for my SUN app, how do I reclaim?
You have to report it to iTunes Support.
http://www.apple.com/emea/support/itunes/contact/ -
I am having a problen syncing my 80gb Ipod to my library. Its been syncing for over 24 hours. I have reset the Ipod and reinstalled Itunes. I am running windows 7 ,6gb of ram.Nothing seem to help. It take 2 miniutes to copy one song(very slow)
UPDATE:
Ok I am offically an idiot.......messed about a bit more and found this post very very helpful:
http://discussions.apple.com/thread.jspa?threadID=396267&tstart=15
Managed to get my ipod restored to factory settings (yay!) However then it was being recognised in windows but not in itunes.......to solve this I referred back to Apples excellent troubleshooting guide. Installed the lastest version of itunes.....and there we go! We have a working ipod! I am so delighted and no longer on the verge of tears! (I so thought I had completely banjaxed my brand new ipod!)
Dell Windows XP
Maybe you are looking for
-
Having problems with Bridge shutting down after saving photo in PS Cs5,,,,,,,,, Also when i attempt to update either PS or bridge get an error message in Adobe application manger "Error loading updater workflow"
-
Excel attachment is not working for HCM forms
Hi all, User attached an excel file to HCM process and forms as requestor. In approver not able to open excel attachment because the file is broken. It is working find to attach others format attachement, i.e. msword file. Is excel attachment is not
-
Issues: NetBeans View Colors, and All Tasks, Sort by Start Time
2 Odd Issues - I'm hoping I can get some help with. When I look up (checkout) a User View in NetBeans, it displays in the lower window view, as White text on White background - making it Invisible [ I can only see the content, if I highlight it ] The
-
Hi All, I have a basic question about DB2E Storage Limit. I am implementing MAM 3.0 on desktop/laptops. So how much data I can store in Db2e? Is there a limit? Does more that means performance issues? Or does the data storage depends on the hard disk
-
I work for Xerox and we don't get paper checks so I have no physical paystub. Everything is on file with the employer, but I also don't have a personal work email. So how do I validate to get the discount?