I want to control servo value from PCI-7344+Flexmotion with 20 Hz Sine/Triangle wave as command and anlog feedback Help me in doing so
Under Trajectory generation and Buffered programming section of Flexmotion i found that interval between 2 points is limited to minimum of 10 msec.To generate & control 20 Hz waveform any other alternative approach is available ?
i have a problem:
i have configured an axis for gearing and have its master be an ADC, when the analog input is more than 30Hz,the slave axis can't follow up the master,is there a method to solve the problem?
Similar Messages
-
I want to get the values from the second hiphen only
Hey Guys,
I have one column and the data like this
col1 = 'AI463-901-001'
Now,
I want to get the values from the second hiphen only(any no. of values).
Please can any one help me on this .
Thanks in advance!
Regards,
-LKyou have a mistake
you result is -001
this is right
select substr('AI463-901-001',instr('AI463-901-001','-',1,2)+1) from dual;
-- @user11928732 - if you are using Oracle Database 11g, ttry this please
with data as
(select 'AI463-901-001'from dual)
select substr(str,instr(str,'-',1,2)+1) from data;
select substr(<YOUR COLUMN>,instr(<YOUR COLUMN>,'-',1,2)+1) from <YOUR TABLE>;result is : 001
Edited by: Mahir M. Quluzade on May 3, 2011 5:37 PM -
I want to send a value from JSP file to another JSP file without..
I want to send a value from one.JSP file to another two.JSP file without to show the content HTML of the one.JSP in two.JSP (with include), only take the values processed in a Bean :
===================
Bean
package pck;
import java.io.*;
public class yyyy {
public String getXxx() {
return cccc;
========================
one.JSP
<jsp:useBean id="idBean" class="pck.yyyy" scope="??"/>
<%idBean.setXxx(ccc);%>
========================
two.JSP
<%@ include file="one.jsp"%>
<%=idBean.getXxx()%>
but without to show the content HTML of one.JSP in two.JSP.
Can someone help me?, please.Why don't just put the common code in a separate file and include it in both. i.e. the code that is in one.jsp that is needed by two.jsp could be put in a common file and included in both pages, thus the HTML is separated off. If this will not work, set a boolean value in two.jsp that can be used by one.jsp to decide if the HTML should be displayed or not.
Steve -
Cannot map control record values from payload w/XSLT after SP13 upgrade
Hi!
Since we upgraded to SP13, the mapping of control record values form the XML payload to the IDOC control record (File->XI->IDOC scenario) no longer works if the mapping is done via XSLT. It works if the XI graphical mapper is used. The XSLT used is the same pre and post upgrade, but worked fine previously.
[ Apply Control Record Values from Payload is checked in the IDOC adapter comm channel. ]
Has anyone else experienced this? Am looking for any inspiration
Cheers
DuncanAre you sure the xslt file is still there?
Maybe some non-compliance was corrected in later SP and your XSLT was using that non-compliance.
If you post the XSLT we could try to point out any possible errors.
Regards,
Henrique. -
hi, i want to control my vi from multiple systems using ethernet options can any body tell me how to do that? thans in advance
There are multiple ways of doing this. Here are some of them..
The Web Publishing tool allows you to publish the front panel and you can control the front panel remotely.http://www.ni.com/white-paper/2911/en/
The TCP/IP socket can allow you to pass codes "strings" to another computer. Lookup the server client example.
regards,
Gautham -
Hi,
a) I want to read EACH VALUE from a spreadsheet file having multiple rows and columns WITH DELAY. I am attaching my VI and sample datalog file for reference (tempsensor.txt).I need to do so because as soon as I read put ON the Sensor button on front panel, LV reads all the values at one go. I need the values for each temperature to be displayed after a delay.
b) Secondly, I would like to read another file containing the state of four antennas (deployed:1; undeployed:0). I am logging state of each antenna in each column of the file(magnet.txt) I need to have four LEDS on front panel to display state of the antennas. I dont know what I have done for antennas in my VI is right or wrong. I guess thats rhe wrong way to approach the problem. Please help!!!(column1: Antenna1 state ; Column2:Antenna2 state.. and so..on..)
Any help would be greatly appreciated!!
Thanks in advance,
Ratnesh
FYI: The first column in my datalog file represents timestamp(number of seconds elapsed), second column: reading for temperature sensor 1, third column: reading for temperature senosr 2, and so on. I am using approx. 11 temperature sensors.
Also, I have generated the log files for the reference purpose only. They do not represent the actual values. They are far away from actual values.
Attachments:
01032005.zip 30 KBLook at this modified version of your VI. After looking at it, I determined that a shift reggister was not required in this case.
Lynn
Attachments:
MultiSensors.2.vi 85 KB -
Calculating values from row to row with pure sql?
Hello,
I'm searching for a way to calculate values from row to row with pure sql. I need to create an amortisation table. How should it work:
Known values at start: (they can be derived with an ordinary sql-statement)
- redemption amount RA
- number of payment terms NT
- annuity P (is constant in every month)
- interest rate IR
What has to be calculated:
First row:
RA1 = RA - P
Z1 = (RA1 * (IR/100/12))
T1 = P - Z1
2nd row
RA2 = RA1 - T1
Z2 = (RA2 * (IR/100/12))
T2 = P - Z2
and so on until NT has reached.
It should look like
NT
P
Tn
Zn
RAn
1
372,17
262,9
109,27
22224,83
2
372,17
264,19
107,98
21961,93
3
372,17
265,49
106,68
21697,74
4
372,17
266,8
105,38
21432,25
5
372,17
268,11
104,06
21165,45
6
372,17
269,43
102,75
20897,34
7
372,17
270,75
101,42
20627,91
8
372,17
272,09
100,09
20357,16
9
372,17
273,42
98,75
20085,07
10
372,17
274,77
97,41
19811,65
11
372,17
276,12
96,06
19536,88
12
372,17
277,48
94,7
19260,76
13
372,17
278,84
93,33
18983,28
14
372,17
280,21
91,96
18704,44
15
372,17
281,59
90,59
18424,23
16
372,17
282,97
89,2
18142,64
17
372,17
284,36
87,81
17859,67
18
372,17
285,76
86,41
17575,31
19
372,17
287,17
85,01
17289,55
20
372,17
288,58
83,59
17002,38
21
372,17
290
82,18
16713,8
22
372,17
291,42
80,75
16423,8
23
372,17
292,86
79,32
16132,38
24
372,17
294,3
77,88
15839,52
25
372,17
295,74
76,43
15545,22
26
372,17
297,2
74,98
15249,48
27
372,17
298,66
73,52
14952,28
28
372,17
300,13
72,05
14653,62
29
372,17
301,6
70,57
14353,49
30
372,17
303,09
69,09
14051,89
31
372,17
304,58
67,6
13748,8
32
372,17
306,07
66,1
13444,22
33
372,17
307,58
64,6
13138,15
34
372,17
309,09
63,08
12830,57
35
372,17
310,61
61,56
12521,48
36
372,17
312,14
60,04
12210,87
37
372,17
313,67
58,5
11898,73
38
372,17
315,21
56,96
11585,06
39
372,17
316,76
55,41
11269,85
40
372,17
318,32
53,85
10953,09
41
372,17
319,89
52,29
10634,77
42
372,17
321,46
50,71
10314,88
43
372,17
323,04
49,13
9993,42
44
372,17
324,63
47,55
9670,38
45
372,17
326,22
45,95
9345,75
46
372,17
327,83
44,35
9019,53
47
372,17
329,44
42,73
8691,7
48
372,17
331,06
41,11
8362,26
I would appreciate every help and idea to solve the problem solely with sql.
Thanks and regards
CarstenIt's using Model Clause and / or Recursive With (sometimes maybe both)
Regards
Etbin
with
rec_proc(nt,i,ra,p,ir,z,t) as
(select nt,i,ra - p,p,ir,round((ra - p) * 0.01 * ir / 12,2),p - round((ra - p) * 0.01 * ir / 12,2)
from (select 48 nt,22597 ra,372.17 p,5.9 ir,0 z,0 t,1 i
from dual
union all
select nt,i + 1,ra - t,p,ir,round((ra - t) * 0.01 * ir / 12,2),p - round((ra - t) * 0.01 * ir / 12,2)
from rec_proc
where i < nt
select * from rec_proc
try to adjust initial values and rounding please
NT
I
RA
P
IR
Z
T
48
1
22224.83
372.17
5.9
109.27
262.9
48
2
21961.93
372.17
5.9
107.98
264.19
48
3
21697.74
372.17
5.9
106.68
265.49
48
4
21432.25
372.17
5.9
105.38
266.79
48
5
21165.46
372.17
5.9
104.06
268.11
48
6
20897.35
372.17
5.9
102.75
269.42
48
7
20627.93
372.17
5.9
101.42
270.75
48
8
20357.18
372.17
5.9
100.09
272.08
48
9
20085.1
372.17
5.9
98.75
273.42
48
10
19811.68
372.17
5.9
97.41
274.76
48
11
19536.92
372.17
5.9
96.06
276.11
48
12
19260.81
372.17
5.9
94.7
277.47
48
13
18983.34
372.17
5.9
93.33
278.84
48
14
18704.5
372.17
5.9
91.96
280.21
48
15
18424.29
372.17
5.9
90.59
281.58
48
16
18142.71
372.17
5.9
89.2
282.97
48
17
17859.74
372.17
5.9
87.81
284.36
48
18
17575.38
372.17
5.9
86.41
285.76
48
19
17289.62
372.17
5.9
85.01
287.16
48
20
17002.46
372.17
5.9
83.6
288.57
48
21
16713.89
372.17
5.9
82.18
289.99
48
22
16423.9
372.17
5.9
80.75
291.42
48
23
16132.48
372.17
5.9
79.32
292.85
48
24
15839.63
372.17
5.9
77.88
294.29
48
25
15545.34
372.17
5.9
76.43
295.74
48
26
15249.6
372.17
5.9
74.98
297.19
48
27
14952.41
372.17
5.9
73.52
298.65
48
28
14653.76
372.17
5.9
72.05
300.12
48
29
14353.64
372.17
5.9
70.57
301.6
48
30 -
I want to move my photos from iPhoto to Time Capsule to make space on my computer. What's the best means of doing this?
Please do not do this.
The Time Capsule was designed for your backups.....not as an everyday hard drive. Access to the Time Capsule is slow.
If there is any loss of connection between iPhoto and the iPhoto library when you are reading or writing, the entire iPhoto library is easily corrupted.
The chances of corruption are even more likely if you are using wireless on the computer.
And....even if you decide to risk this....if you move your "original" iPhoto library to the Time Capsule.....how will you make backups of the library?
The only copy of the library will be on the Time Capsule....you have no backups.....when, not if, the Time Capsule has a problem.
Simply stated, I would never do this with any important data that you cannot afford to lose. Please post in the iPhoto support area if you need to confirm this.
iPhoto
If you do want an idea of how to move your iPhoto library correctly, post back and we can help. -
I WANT TO UPLOAD A PICTURE FROM MY MACBOOK PRO TO A STORE TO GET A PUZZLE MADE AND WHEN I DO IT SAYS POOR RESOLUTION. CAN I DO ANYTHING TO CHANGE IT
Yes, on the right side of the U.K. Apple Store homepage there will be an "Education Store." You can get something like 10% off, it seems.
-
Want to retrieve null value from xml?
i m writing this code to get the tag name and values from xml file.
Now the problem is that
if my xml file contain any tag whose value is not defined like
<root>
<firsttag>first</firsttag>
<Second></Second><Third>third</Third>
</root>
Now look if second tag doesnt contain anything ,then i want to add "null" to vector,but it throws null pointer exception because second tag is empty.
Vector<String> CSWFinfo = new Vector<String>();
try {
DocumentBuilderFactory factory = DocumentBuilderFactory
.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Document doc = builder.parse(new File(xml));
Element root = doc.getDocumentElement();
NodeList node = root.getChildNodes();
for (int i = 0; i < node.getLength(); i++) {
Node currentNode = node.item(i);
if (isTextNode(currentNode))
continue;
CSWFinfo.addElement(currentNode.getNodeName());
if (null != currentNode.getFirstChild().getNodeValue()) {
CSWFinfo.addElement(currentNode.getFirstChild()
.getNodeValue());
} else {
CSWFinfo.addElement("null");
}//end of for loop block
System.out.println(CSWFinfo);
} catch (Exception e) {
e.printStackTrace();
// TODO: handle exception
}I am using dom parser .
Can any one know how to do it????
Edited by: chauhan2003 on 16 Jun, 2008 12:06 PMAre you sure that all currentNode have a firstChild ????
If your node has no value, it has no child
So i 'd change code to like look something like:
if (currentNode.getFirstChild() != null) {
CSWFinfo.addElement(currentNode.getFirstChild().getNodeValue());
} else {
CSWFinfo.addElement("null");
} -
Wants to eliminate null values from mapping queue
Hi All,
How can I eliminate null values from 'display queue' of a target mapping.
Can it be done through a UDF? Kindly help.
Because of null value, it is creating issue in the mapping logic.
Thanks,
JohnWe can remove null values using node functions.
Check the below thread:
Re: How to remove [] form Message Mapping Display Queue
Or
Try with the below UDF:
for (int i=0; i<a.length;i++)
if (! a<i>.equals(ResultList.SUPPRESS) || ! a<i>.equals(""))
result.addValue(a<i>);
Thanks, -
Want to get sequence value from bean
I want to get sequecne value in abean
when i try to make this
String EmpId = (String)JSFUtils.resolveExpression("#{bindings.EmpViewId.inputValue}");Error appear
Caused by: java.lang.ClassCastException: oracle.jbo.domain.DBSequence cannot be cast to java.lang.String
and when i tried
DBSequence EmpId = (DBSequence)JSFUtils.resolveExpression("#{bindings.EmpViewId.inputValue}");another errpr appeared
how can i catch this DBSequence valueyou did not mention your JDev version.
For 10g it might be helpful:
http://database.in2p3.fr/doc/oracle/Oracle_Application_Server_10_Release_3/web.1013/b25947/web_complex006.htm
Example 19-49 Value Change Listener Method for Handling a File Upload Event
String fileUploadLoc =
FacesContext.getCurrentInstance().getExternalContext().
getInitParameter("SRDemo.FILE_UPLOADS_DIR");
if (fileUploadLoc == null) {
// Backup value if context init parameter not set.
fileUploadLoc = "/tmp/srdemo_fileuploads";
//get svrId and append to file upload location
DBSequence svrId =
(DBSequence)ADFUtils.getBoundAttributeValue("SvrId");
fileUploadLoc += "/sr_" + svrId + "_uploadedfiles";
I don't know if it works for 11g too.
NA
http://nickaiva.blogspot.com/ -
Getting Return values from RFC function call with visual basic
Hi,
I am creating a sample app to connect to a SAP system which call its RFC functions created with ABAP. It was known that the function will return more than 1 return values.
SAP Function name ==> "ZFMTP_RFC_GET_RESULT"
Export parameters (to SAP):
- Student Name [char 10] ==> "STUNAME"
- Student ID [char 20] ==> "STUID"
Return values (From SAP):
- Results [char 10] ==> "RESULT"
- Remarks [char 200] ==> "REMARKS"
i have managed to get sample codes for connecting and call a RFC function with vb but they only get a return value. How do i retrieve multiple return values like the above function "RESULT" and "REMARKS"?
Here's my vb code to accessing the function
Dim R3 As Object
Dim FBFunc As Object
Dim returnFunc As Boolean
Dim connected As Boolean
R3 = CreateObject("SAP.Functions")
R3.Connection.Client = "000"
R3.Connection.User = "BCUSER"
R3.Connection.Password = "minisap"
R3.Connection.Language = "DE"
R3.Connection.System = "dtsystem"
R3.Connection.Applicationserver = "xxx.xxx.xxx.xxx"
connected = R3.Connection.Logon(0, True)
If connected <> True Then
MsgBox("Unable to connect to SAP")
End If
FBFunc = R3.add("ZFMTP_RFC_GET_RESULT")
FBFunc.exports("STUNAME") = "Jonny"
FBFunc.exports("STUID") = "12345"
returnFunc = FBFunc.Call() <<== How do i get the return value? or RESULT and REMARKS of the RFC Function?
thanks alot.
Edited by: Eugene Tan on Mar 4, 2008 7:17 AMHi Gregor,
Thanks for the link....i am having some doubts with the codes, hope you can clarify them for me if you know the codes..
Below is the code snippet.
Set impReturn = CHPASS_FN.Imports("RETURN") <<=== is RETURN the standard keyword to get a return object?
expPassword.Value = currpass
expNewPass.Value = newpass
expFillRet.Value = "1"
''' Call change password function
If CHPASS_FN.Call = True Then
outFile.Write (", Called Function")
Message = impReturn("MESSAGE") <<==== So if i have 3 return values..i just replace with the return value variable names?
outFile.WriteLine " : " & Message
Else
outFile.Write (", Call to function failed")
End If
thanks alot...all your help is very appreciated. -
I have a new iMac and want to transfer files etc from my old iMac with an ethernet cable
i have a new imac and want tot ransfer files etc from my old imac using an ethernet cable
Connect them together with Ethernet cable and use Setup Assistant.
-
have a Mac Book and purchased a Bose system that uses an antenna to play music from the the laptop - it works great, but the computer times out and shuts down - Help
Check in "System Preferences">"Energy Saver" to see if you have the "Computer Sleep" bar set too low.
Maybe you are looking for
-
File upload conflict with BC4JRequestProcessor under 10g
Hello. I'm using file upload in application designed in JDeveloper 9i with STRUTS framework. Request processor is BC4JRequestProcessor. Application uses file upload performed with form derrived from ActionForm with property of interface FormFile. Eve
-
Links in Adobe Lightroom Web Module
Does anybody know how to add links to other pages in the Web Gallery creation module.
-
Program wont start fatal error:
When I start dreamweaver I get a fatal error XML parasing fatal error: Invalid document structure line: line:, file: C:\users\hh\appdata\roamimg\adobe\dreamweaverCS5.5\en_us\configuration\workspace\app developer.xml This program used to work thought
-
Hello All i'm a new employee and i have been chosen to be the integration team leader in the SAP Upgrade project resources. this project is about *Upgrading the SAP from ECC 5 to ERP 6 Unicode which is unable the SAP to work with the other characters
-
Cannot install Oracle ODAC for Windows Itanium 64-bit
I downloaded 64-bit ODAC 10.2.0.3 for Windows Itanium (the file ODAC10203IA64.zip), unpacked it, run install\setup.exe and see: 1) Some console-like application is started: Starting Oracle Universal Installer... No pre-requisite checks found in orapa