How to get data out of HP4145B to a PC through GPIB cable?
I have some measurement data in a HP4145B. And I need to get the data out of it to my PC. Is there anyone who can help me with this? The labview version I'm using is 6.0
There is a LabVIEW driver available for this instrument here. Download the one for version 6 and install it in your instr.lib folder. There is a Learn About Instrument Drivers page if you've never used one before.
Message Edited by Support on 01-24-2007 05:07 PM
Similar Messages
-
How to get data out of XML?
Hi,All.
I am running SAX (JAXP1.01) in Applet to process XML file. My question is how to get data out of xml format according to the field name (@age,@rank etc)
and write into string buffer seperated by comma.
Should I use SAX or DOM? (file size is big)
My xml as follow :
<ROOT>
<FormattedReportObject>
<FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@team/relay}">
<ObjectName>Field124</ObjectName>
<FormattedValue>HUNTER</FormattedValue>
<Value>HUNTER</Value>
</FormattedReportObject>
<FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@age}">
<ObjectName>Field125</ObjectName>
<FormattedValue> 19</FormattedValue>
<Value> 19</Value>
</FormattedReportObject>
<FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@Rank}">
<ObjectName>Field126</ObjectName>
<FormattedValue>43</FormattedValue>
<Value>43</Value>
</FormattedReportObject>
<FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{results.athrel_name}">
<ObjectName>Field127</ObjectName>
<FormattedValue>1-1 NORRIE</FormattedValue>
<Value>1-1 NORRIE</Value>
</FormattedReportObject>
<FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@timefield2}">
<ObjectName>Field128</ObjectName>
<FormattedValue>1:54.75</FormattedValue>
<Value>1:54.75</Value>
</FormattedReportObject>
<FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@timefield1course}">
<ObjectName>Field129</ObjectName>
<FormattedValue/>
<Value/>
</FormattedReportObject>
<FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@timefield1std}">
<ObjectName>Field130</ObjectName>
<FormattedValue/>
<Value/>
</FormattedReportObject>
<FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@timefield2course}">
<ObjectName>Field131</ObjectName>
<FormattedValue/>
<Value/>
</FormattedReportObject>
<FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@timefield2std}">
<ObjectName>Field132</ObjectName>
<FormattedValue>QT</FormattedValue>
<Value>QT</Value>
</FormattedReportObject>
<FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@points(left)}">
<ObjectName>Field133</ObjectName>
<FormattedValue/>
<Value/>
</FormattedReportObject>
<FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@pointsdecimal}">
<ObjectName>Field134</ObjectName>
<FormattedValue/>
<Value/>
</FormattedReportObject>
<FormattedReportObject xsi:type="CTFormattedField" Type="xsd:decimal" FieldName="{@points(right)}">
<ObjectName>Field135</ObjectName>
<FormattedValue>0</FormattedValue>
<Value>0.00</Value>
</FormattedReportObject>
<FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@timefield1}">
<ObjectName>Field136</ObjectName>
<FormattedValue>1:55.98</FormattedValue>
<Value>1:55.98</Value>
</FormattedReportObject>
<FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@Rank}">
<ObjectName>Field137</ObjectName>
<FormattedValue>43</FormattedValue>
<Value>43</Value>
</FormattedReportObject>
Repeat...
</FormattedReportObject>
</ROOT>
------------------------------------------------For big files use SAX: quicker and less memory usage.
The xerces parser from Apache has some examples. Basically what you do is scan the XML, remembering what tag you are and once you find the right tag, read the contents. -
How to get data out of quiz with POST or GET?
Seems like a simple question, but I haven't yet been able to
capture the results of a quiz yet. I want to fetch the POST data
from the quiz in PHP using something like:
$quizTotal = $_POST['total'];
$quizCorrect = $_POST['correct'];
Alternatively, I can use ASP:
quizTotal = request.form("total")
quizCorrect = request.form("correct")
But I still haven't been able to get ANY data out of a quiz.
HOW?benhenny,
Are you trying to capture data locally and send to a
server-side script - or
use the existing LMS functionality to capture the post (for
AICC) in a PHP
script?
Regards,
Andrew -
How to get data out of Vector of vector ???
All,
I have a vector v1 which is getting populated by the resultset of the database. This vector has another two vectors vrow & vcol .
Code as follows ---
v1 = new Vector();
while(rs1.next()) {
Vector vrow = new Vector();
for (int i=intstartday ; i <= intendday ; i++)
{ // here I am getting the new result set for each i //
ResultSet rs2 = getResultSet();
while(rs2.next()) {
Vector vcol = new Vector();
vcol.addElement(rs2.getString("day"));
vcol.addElement(rs2.getString("reg_hr"));
vcol.addElement(rs2.getString("dateday"));
vrow.addElement(vcol);
rs2.close();
} // for loop end
vrow.addElement(strChargeNmbr);
v1.addElement(vrow);
} // end of rs1 resultset while loop
I need to get the data out of this vector v1. If anyone has any insight on this - how to get the data from vectors which has differnt type of objects in it , please send me the code example asap.
thanxThanks for your suggestion. It is working now except that I am having problems in getting the charge NUmber out....Charge NUmber is nothing but a String.
So my row Vector has two values
1. Check the code where I am populating the Vectors
while(rs1.next()) {
strsubmittime = rs1.getString("SUBMIT_TS");
strapprovetime = rs1.getString("APP_DIS_TS");
strapprempid = rs1.getString("APP_DIS_EMP_ID");
strChargeNmbr = rs1.getString("entered_cn");
Vector vLaborrow = new Vector();
for (int i=intstartday ; i <= intendday ; i++)
// here execute the query and get the result set for every i // ResultSet rs2 = getResultSet();
while(rs2.next()) {
Vector vLaborcol = new Vector();
vLaborcol.addElement(rs2.getString("day"));
vLaborcol.addElement(rs2.getString("reg_hr"));
vLaborcol.addElement(rs2.getString("dateday"));
vLaborrow.addElement(vLaborcol);
} // for loop end
vLaborrow.addElement(strChargeNmbr);
vLabor.addElement(vLaborrow);
} // end of rs1 resultset while loop
2. check out the following code where I am trying to get the Charge NUmber values out.--
for(int i=0;i<vLabor.size() ;i++)
Vector rowVec = (Vector)vLabor.elementAt(i);
for(int j=0; j< rowVec.size() -1 ; j++)
try
if (j==0) {
String strChargeNmbr = (String)rowVec.elementAt(j) ;
Vector laborcol = (Vector)rowVec.elementAt(j);
String day = (String)laborcol.elementAt(0);
String reg_hr = (String)laborcol.elementAt(1);
String dateday = (String)laborcol.elementAt(2);
strChargeNmbr = strChargeNmbr + " " + reg_hr ;
}catch(ClassCastException e){
System.out.println("Reading in vector2");
} // end of j for loop
System.out.println(strChargeNmbr);
} // end of i for loop
I am getting the following Exception --
"Reading in vector2"
Please send me the code -- how to get the Charge NUmber out. I am confused where to get the value - is it in the first for loop or second for loop ?? -
How to get Date value from database and display them in a drop down list?
Hello.
In my Customers table, I have a column with Date data type. I want to create a form in JSP, where visitors can filter Customers list by year and month.
All I know is this piece of SQL that is convert the date to the dd-mm-yyyy format:
SELECT TO_CHAR(reg_date,'dd-mm-yyyy') from CustomersAny ideas of how this filtering possible? In my effort not to sound like a newbie wanting to be spoonfed, you can provide me link to external notes and resources, I'll really appreciate it.
Thanks,
Rightbrainer.Hi
What part is your biggest problem?? I am not experienced in getting data out of a database, but the way to get a variable amount of data to show in a drop down menu, i have just messed around with for some time and heres how i solved it... In my app, what i needed was, a initial empty drop down list, and then using input from a text-field, users could add elements to a Vector that was passed to a JComboBox. Heres how.
package jcombobox;
import java.awt.*;
import java.awt.event.*;
import java.util.Vector;
import javax.swing.*;
public class Main extends JApplet implements ActionListener {
private Vector<SomeClass> list = new Vector<SomeClass>();
private JComboBox dropDownList = new JComboBox(list);
private JButton addButton = new JButton("add");
private JButton remove = new JButton("remove");
private JTextField input = new JTextField(10);
private JPanel buttons = new JPanel();
public Main() {
addButton.addActionListener(this);
remove.addActionListener(this);
input.addActionListener(this);
buttons.setLayout(new FlowLayout());
buttons.add(addButton);
buttons.add(remove);
add(dropDownList, "North");
add(input, "Center");
add(buttons, "South");
public void actionPerformed(ActionEvent e) {
if (e.getSource() == addButton) {
list.addElement(new SomeClass(input.getText()));
input.setText("");
} else if (e.getSource() == remove) {
int selected = dropDownList.getSelectedIndex();
dropDownList.removeItemAt(selected);
public void init(String[] args) {
setSize(400,300);
getContentPane().setLayout(new BorderLayout());
getContentPane().add(new Main());
}And that "SomeClass" is show here
package jcombobox;
public class SomeClass {
private String text;
public SomeClass(String input) {
text = input;
public String toString() {
return text;
}One of the things i struggled a lot with was to get the dropdown menu to show some usefull result. If the list just contains class references it will show the memory code that points to that class. Thats where the toString cones in handy. But it took me some time to figure that one out, a laugh here is welcome as it should have been obvious :-)
When the app is as simple as this one, using a <String> vector would have been easier, but this is just to demonstrate how to place classes in a vector and get some usefull info out of it, hope this answered some of your question :-)
The layout might have been easier to write, than using the toppanel created by the JApplet and then the two additional JPanels, but it was just a small app brewed together in 15 minutes. Please comments on my faults, so that i can learn of it.
If you need any of the code specified more, please let me know. Ill be glad to, -
How to Get In & Out of Match, Get your Downloads and Run
How to Get In & Out of Match, Get your Downloads and Run
So you have read the marketing hype, and are thinking what you really want is to pay for the service to upgrade your low quality bitrate files to a bit better 256KBPS rate easily, as don’t fancy rebuying/ reimporting or other method
This guide should show you the fastest route to achieve you upgrades
It assumes you’re working from your main music library, and know something about IT, and have <25k of music files
Backup your music files
If you know how to do this, its simple right – so once done then move to step 2, if not read below so you don’t blame me for a loss
Transfer Hardware
your choice the transfer hardware, suggest offline harddrive via USB3.0 (blue USB connector/eSata/ 1494b/1GB NIC/etcetera but your call
If you use USB2.0/ 100MB NIC/1394a or other lower transfer method, accept the time hit
Don’t use Time Backup/local disk backup software unless you have RAID 5 setup or better (and if wondering what that is, you almost certainly don’t then)
Don’t use internet backup service unless you live next door to the hosting company, with stunning internet connection to envy 99.9% of the human race, remember this is the fast method folks)
Transfer Software
I am assuming you know how to do a copy n paste/ robocoby/xcopy/drag n drop or whatever method turns you on via finder/explorer/cmd window ect
Caveat #01: If not sure how to do above, then stop now as you are not IT literate ready for this
Find your music files and back them up
Now keep the computer running, preferably with nothing else running from this point for ease of use bar an active internet connection, and power saving switched off
If you know where the files are great, backup the files, but some don’t so for them as below
Caveat #02: if you don’t know how to find them your most likely on default settings, or sitting with a legacy from a past upgraded machine - below should help but you might want to stop now if you have never been curious about the location before
Within iTunes , go to [Edit/Preferences/Advanced] and note down the location shown for Itunes Media Location
In the same location of preferences, hit [Keep iTunes Media Folder organised] and let the application do its stuff. You will end up with the location in 1ciii a ready to copy location which for simplicity of topic, copy the whole folder and its subfolders. You may end up with some extra copies of music files (an iTunes safety mechanism, but it won’t show in the folder location, and we can ignore later on)
Enable Match (after paying for the service)
Run Match
Accept that the Apple iTunes process is not perfect, may crash/stop/pause and reboots will be needed, and we can move on so to speak. Key here is you cannot do an unattended script or assume no end user interaction needed L
Turn on iTunes Match, notice the new ITunes Match on the left hand sidebar, click it, then hit the Start button – if it works and you eventually get to STEP 3 perfect.
If it fails before getting to STEP 3, reboot and restart
If this still fails to get to STEP 3, then create a new iTunes database (browse forums on how to do), read your media files from the location in 1civ
Stop MATCH (the upload process only, not the service)
Once STEP 3 starts, CLICK STOP - ASAP, as all this does it upload data, and you don’t want to do this, just get your upgraded files (remember the title of this entry your reading!)
This also avoids future issues with Album art lost
Delete Matched low bitrate files
Create a NEW SMART playlist, with two criteria
Show all files with bitrate is less then 256
Show all files where iCloud status is MATCHED
In the new playlist, click it and it shows the files we want to blow away.
Click Edit / Select All then
Click ctrl in windows/apple (cmd) logo in mac, and press delete button, ensuring you do NOT tick the delete from iCloud Option. Now want a few mins for it do do its stuff.
Download Upgraded BitRate Files
In the same location as 5, reselect all, and right click, and select the option to download all, and off it goes
On the lefthand sidebar in iTunes, click Downloads, and you will then see in the middle bottom screen an option for simultaneous downloads (select it)
Your done Just let the app now do its stuff. I would ignore the message saying you can get on with other things, and use anther machine, preferably not using the same internet connection.
Optional Steps:
Click randomly from the Itunes/Matched/256KBPS listed files, and play them. Not all the files, one every 30 or so, and just the start, then last few seconds to check not dead or corrupt files.
Update your Step 1 backup with the new files, which is going to take up more space, guess at 40%.
Kill your iTunes Match account (both the recurring automatic subscription, and the account if not continuing to use the store part of iTunes)bump
-
How to get Date Format from Local Object.
Hi All,
I am new to Web Channel.
I need to know Date format From date of locale.
suppose there is a date "01/25/2010" date in date field I want to get string "mm/dd/yyyy". Actually I have to pass date format to backend when I call RFC.
Is there any way to get Date format from "Locale" object. I should get date format for local object
I get local object from "UserSessionData" object but how to get Date format from it.
I am not looking for Date value. I am looking for current local date format ("mm/dd/yyyy or dd/mm/yyyy or mon/dd/yyyy) whatever local date format. I could not find example which show how to get date format from "Locale" object.
Any help will be appreciated with rewards.
Regards.
Web ChannelHi,
You can get it from "User" or "Shop" business object.
Try to get User or Shop Business Object as shown below.
BusinessObjectManager bom = (BusinessObjectManager) userSessionData.getBOM(BusinessObjectManager.ISACORE_BOM);
User user = bom.getUser();
char decimalNotation = user.getDecimalPointFormat().getGroupingSeparator();
If you are seeing "1,234.00" then above code will return "."
I hope this information help you to resolve your issue.
eCommerce Developer. -
How to get data from a USB-UIRT device using Labview?
How to get data from a USB-UIRT device using Labview?
I'm trying to get data from a USB-UIRT device, is it posible with Labview?
I really appreciate your help,
thanksYou may want to contact the developer of the device for the API and DLL.
http://65.36.202.170/phpBB2/viewforum.php?f=3 -
How to get data type of variable in program..
Hi ABAP Guru.
I need to know how to get data type of variable or any structure field.. because I got short dump when use command REPLACE ALL OCCURANCE ... with variable/structure field that has data type I or P, I think it should be used with data type CHAR only, So I need to check the data type first.
Please give me your advice
Thank you all.
Nattapash C.data : v_value type i,
v_char(10) type c.
v_value = 10.
move v_value to v_char.
REPLACE ALL OCCURRENCES of '#' from v_char....
Best regards,
Prashant -
How to get data in WDDINIT method
hi...
how to get data passed through url in WDDINIT method, ... the data is comming in the inbound plug, but plug is executed after WDDINIT...
thank you.Hello Kailash,
By saying that your data comes in through Inbound Plug itself means that that is the point of access for the data. If there is some standard data, that you can provide through WDDOINIT (e.g. initilizations) but in case of navigation, plugs and events are the only way to send data.
Hope this helps.
Regards,
Neha -
Why so much code getting data out of DB & into web services
I am new to Java and I am experimenting with web services.
I am trying to get data out of a database and into a web service
This is the code I had to build just to get a little bit of data out of a DB and into a web service.
// Open a database connection and statement.
Class.forName("COM.ibm.db2.jdbc.app.DB2Driver").newInstance();
Connection dbConn = DriverManager.getConnection("jdbc:db2:sample","myuser","mypass");
Statement statement = dbConn.createStatement();
// Build the message.
SOAPMessageContext ctx = (SOAPMessageContext) messageContext;
try {
MessageFactory messageFactory = MessageFactory.newInstance();
SOAPMessage m = messageFactory.createMessage();
SOAPEnvelope env = m.getSOAPPart().getEnvelope();
SOAPBody body = env.getBody();
SOAPElement elem =
body.addBodyElement(env.createName("ns1:getEmployees"));
elem.addNamespaceDeclaration("ns1",
"http://www.abc.com/SampleApplication/Employee.wsdl");
elem.addNamespaceDeclaration("ns2",
"http://www.abc.com/SampleApplication/Employee.xsd");
SOAPElement elem1 = new SOAPElementImpl("Response", null, null);
// Execute the query.
String sql = "SELECT EMPNO, FIRSTNME, MIDINIT, LASTNAME, HIREDATE FROM EMPLOYEE";
ResultSet result = statement.executeQuery(sql);
Isn't there a way with less code to get data out and stick into a web service?I left the part of the code out that is bugging me - I was talking about all of the code to get the data into XML..
here's the whole code..
// Open a database connection and statement.
Class.forName("COM.ibm.db2.jdbc.app.DB2Driver").newInstance();
Connection dbConn = DriverManager.getConnection("jdbc:db2:sample","myuser","mypass");
Statement statement = dbConn.createStatement();
// Build the message.
SOAPMessageContext ctx = (SOAPMessageContext) messageContext;
try {
MessageFactory messageFactory = MessageFactory.newInstance();
SOAPMessage m = messageFactory.createMessage();
SOAPEnvelope env = m.getSOAPPart().getEnvelope();
SOAPBody body = env.getBody();
SOAPElement elem =
body.addBodyElement(env.createName("ns1:getEmployees"));
elem.addNamespaceDeclaration("ns1",
"http://www.abc.com/SampleApplication/Employee.wsdl");
elem.addNamespaceDeclaration("ns2",
"http://www.abc.com/SampleApplication/Employee.xsd");
SOAPElement elem1 = new SOAPElementImpl("Response", null, null);
// Execute the query.
String sql = "SELECT EMPNO, FIRSTNME, MIDINIT, LASTNAME, HIREDATE FROM EMPLOYEE";
ResultSet result = statement.executeQuery(sql);
SOAPElement employee = new SOAPElementImpl("Employees", "ns2", "http://www.abc.com/SampleApplication/Employee.xsd");
employee.addChildElement("ns2:EMPNO").addTextNode(result.getString("EMPNO"));
employee.addChildElement("ns2:FIRSTNME").addTextNode(result.getString("FIRSTNME"));
employee.addChildElement("ns2:FIRSTNME").addTextNode(result.getString("MIDINIT"));
employee.addChildElement("ns2:LASTNAME").addTextNode(result.getString("LASTNAME"));
employee.addChildElement("ns2:FIRSTNME").addTextNode(result.getString("HIREDATE"));
elem1.addChildElement(employee);
elem.addChildElement(elem1);
ctx.setMessage(m);
dbConn.close();
} catch (Throwable e) {
weblogic.utils.Debug.say("(hbs):e " + e);
e.printStackTrace(System.out);
putting the data in the node seems excessive to me.
thanks
AP -
Getting data out of Oracle to SQL Server 2005
Hello,
I am new in Oracle and I have this question.
I need to transfer lots of data frequently at day from a large Oracle DB to a SQL Server 2005 Database.
Could you tell me what tools (including PL/SQL) ORACLE offers to reach this goal?
*.Dat files are still a way to perform this job or other method more performance (quickly and efficiently) are available?
Using MS SSIS is better ?
Thank for your helpI've done getting data out of Oracle to MS Access DB using heterogenous servicing.I hope that that would be the best way for your case too..
Check this out.
http://www.datadirect.com/developer/odbc/oracle_heterogeneous/index.ssp
Regards,
Bhagat -
How to get data from MS CRM into Crystal Reports
Hello All,
Can anybody tell me how to get data into crystal XI reports with MS CRM.
Thanks in Advance
RameshFirst you should refer to the Rules of Engagement and then add more info.
Start off by telling us what version of CR are you using and what is MS CRM?
Thank you
Don -
i have three tables A,B,C. there is one to many relation between A and B. and one to many relation existed between table b and c . how will get data from these three tables
check if this helps:
select * --you can always frame your column set
from tableA a
left join tableB b on a.aid=b.aid
left join tableC c on c.bid=b.bid
This is just a general query. However, we can help you a lot more, if you can post the DDL + sample data and required output.
Thanks,
Jay
<If the post was helpful mark as 'Helpful' and if the post answered your query, mark as 'Answered'> -
How to get data into BI system
Hi Experts,
I am a newbie to SAP BI. Please guide me how to get the data from tha R/3 tables into BI system tables. When I check the data in SE11 in R/3 (for ex: VBAK, VBAP...... etc), I could see all the records. Now how can I get the same data in BI system tables? When I check in BI system with Tcode SE11, I couldn't find any data for the tables VBAK,VBAP..... etc. Please guide me how to fill these tables in BI from R/3. Points will be rewarded for the solutions.
Regards,
RaviHi Ravi,
U can follow the link and know how to get data from R/3 to BI.
<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/28/4c553c42360a40e10000000a114084/frameset.htm">data sources</a>
Still I give overview to u. U need to create data source in R/3 side, replicate them in BI and use them in your info source to load the data. Data source are of two type application specific (system generated) and generic (customer defined). Data Extraction can be based on table, view or infoset query.
hope this helps.
Regards,
Purvang
Assigning Point is to say Thanks in SDN *
Maybe you are looking for
-
The tutorial shows it like this but what I get is this
-
hello every one I have a report script that runs fine on version 7 essbase and later when we migrated the cube to essbase 11.1.1.1 and when i run the report script i get the fillowing erro message vmmd01.*plnpw.plnpw.rep1* Execute report script
-
Is it possible to make gsm call on iPad 4
Is any one know how to make gsm cellular call through iPad 4 plz tell me
-
Photoshop CS5 not printing actual size?
I have created a document in photoshop sized 8.5x11, the same size as my printer paper, at 300dpi. I am using the ruler guidelines onscreen to make an image 6 3/4" wide, but it is printing out too small at 6". Please note that I am not measuring ons
-
Question about viewing by conversation
Greetings, all. I've just moved to Mountain Lion on my work laptop, and I'm noticing that Apple changed the way conversations are handled. Specifically, now in ML, Mail organizes by conversation regardless of a message's folder location. Previous ve