PLOT THE OUTPUT VOLTAGE WITH RESPECT TO TIME
I have VI that is controlling the Standford Research power supply model PS350. I am using existing NI drivers for this instrument.
I wanted to know what would be the easiest/fastest way of taking the multiple readings of the output voltage at the different point in time and then plotting the voltage versus time.
Any directions and suggestions are appreciated.
thanks,
Pedja
I cannot tell you any specific information about your device but if you want to plot your data in LabVIEW, I recommend using an XY Graph. This graph allows you to associate a specific y with a specific x. Consequently you can plot data where the time between the sample changes. Look in the LabVIEW shipping examples for an XY Graph example.
Similar Messages
-
I was under the assumption that waveform charts in LabVIEW 6i atomaticly displayed wired data with respect to time in seconds. However, I noticed that my chart plots data with respect to the number of data points my VI has generated. Is there anyway to fix this so that the chart actually plots vs. time. I've attached VI. The CIN is to a Computerboards Inc, thermocouple. Any help would be appreciated.
Attachments:
tepTInScan.VI 73 KBIt appears that the chart is set to display relative time but since you don't have the acquisition in any kind of a loop, your relative time is pretty meaningless. You've got the dX of the chart set to be one, so yeah, at the beginning, the x scale numbers are going to be the same as the number of aquisitions until you've run it more than 60 times. At this point, you'll see the x scale show minutes and seconds. If you want absolute time for the x scale, look at the examples Real-Time Chart.vi or Variable-Time Chart XY.vi.
-
Csv file reading and voltage and current plotting with respect to time samples XY plotting
Hallo,
I've been struggling with reading a comma separated value (csv) file from another instrument (attached). I need to plot this data for analysis. I have 5 column of data with numbers of rows, the first three row is the information of the measurement. I want to read 4th row as string and rest of the row as numbers. I want to plot 2nd column (i1) with respect to TIMESTAMP; 4th column(u2) wrt TIMESTAMP. And finally plotting i1 (x-axis) vs.. u2 (y-axis) in labview. Could anyone help me.
In excel its so easy to plot but I don't know how its done in labview.
Attachments:
labview forum test.csv 30 KB
excel plot.jpg 88 KBStart by opening the file. Then use the Read Text File function. You can right-click on it and configure it to read lines. First make it read 3 lines (this is your extra header data). Then make it read a single line. That will give you your channel names. Then read the rest of the file (disable the read by line and wire a -1 into the number of bytes to read). Then use the Spreadsheet String to Array function to give you your data.
I would recommend going through the LabVIEW tutorials if you are really new at this.
LabVIEW Basics
LabVIEW 101
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines -
Reg: How to capture the Excise Invoice with respect to Inbound delivery
Hi All,
Please give the process follow for capturing the excise invoice with respect to inbound delivery.
Thanks & Regards
SivaHi Siva,
Please check this link
CIN with Example..?
Regards,
Bijoy Kumar -
Assigned the output type with AR also,It is printing in ENGLISH Only.
Hi,
I have written a Z Smartforms and Z print program.
I have used ZRV56TD00(Copied from standard program RV56TD00),Inside it I have submitted the program(Z print Program) for the shipment number for the transaction code VT03N.
It is now printing the form in english well and good.
Now I want the same to work for the ARABIC.
I had done the arabic translation in SE63 and If I run the program It is printing only in English.
When the assigned the output type with AR also,It is printing in ENGLISH Only.
Suitable answers will be rewarded.
Regards
Manohar S
Edited by: Manoj on Jun 17, 2008 4:13 PM
Edited by: Manoj on Jun 17, 2008 4:14 PM
Edited by: Manoj on Jun 17, 2008 4:15 PMHi Manoj,
Goto transaction NACE and check wether you have mentioned the language in Mail title and texts for the particular message type.
let me know if you require in more detail.
Regards,
Sharath -
Reading the status of the output voltage
Hello,
I am using a 6703 card which is a static analog voltage output card. At some point in my program, once I write to the output voltage channels, I would like to read back this output voltage from the card. How can I do that? Is there a property node that spits out the value of the voltage output? I tried using the DAQmx read functionality, but without any success. I also looked at the possiblity of using the DAQmx Channel property node, but I couldn't find what I am looking for. Any ideas? Thanks in advanced for your kind help.
Best wishesHey Ibn7alal,
Unfortunately, since the 6703 is an AO device only, it isn't possible to read the internal value of the AO as this would require an AI channel. This forum may provide further information for reference:
Read the Current Voltage Output of an Analog Output Channel
http://forums.ni.com/t5/LabVIEW/read-the-current-voltage-output-of-an-analog-output-channel/td-p/168...
If you simply wish to be able to access the value that you sent into the AO, then you may consider a local variable. Hope this helps!
--Ryan S. -
Can I change the output voltage
I am using NI Elvis board.
I measured the digital output voltage and it was approximately 2.3 volt.
can I increase the output voltage to ,for example, 5 volt.GDE [DE]
thank you for your replay.
I mentioned this problem to one of my instructors. he told that the needed current to operate the relays is larger than the borad can supply. therefore, the output voltage droped from 5 volt to 2.3 volt.
he suggested a buffer and the relays worked. -
Regarding the printing the output as many no of times
hi ,
the issue is, i need to print the report output as many number of times as i want
based on the value of input parameter. how can i do it?
we are using format type as xml so no layout model.
can anybody plz give the solution.
regards
arun.bThere is probably a better way to do this, but one option is a cartesian product to get the query results to repeat. So join to a table (any table with lots of rows) like the following:
SELECT youcols
FROM yourtable,
(SELECT 1 FROM big_table WHERE rownum <= :numrows)
WHERE yourwhereclause -
Shall I use NRSE or RSE mode for reading the output voltage of my sensor?
Hello,
I am using a gaz sensor that needs a power supply of 24 V and has an output voltage : 0 -> 10 V. I want to read this voltage with labview( and then convert it to PPMs ).
My problem : I don't know what kind of analog input connection I must use : RSE ou NRSE ? ( I suppose the DIFF mode isn't appriopriate here ) .
I think I should use the NRSE mode ( meaning connecting the V+ of the 0-10V signal to one of the ACH and the V- to AISENSE ) ???
Any help would be really great,
Regards,
David
PS : using Labview 7.1Hi David,
It basically all boils down to if the signal source is grounded or floating? If grounded use DIFF for low voltages (0-2V) and NRSE for high (above 2V). If the signal is floating use RSE.
For more documentation see:
http://digital.ni.com/public.nsf/websearch/D509679FFAE2764386256297005D0C9D
http://zone.ni.com/devzone/conceptd.nsf/webmain/177A8B29FEDC0F5886256FA90083C0F8
Regards
Meister, NIDK -
Hi All,
I have created a form with 5 blocks (namely ENQACMHDR, ENQACMDTL, ENQACEHDR, ENQACEDTL, ENQACSPEC), where i have 8 push buttons (namely ENTER_QUERY, EXEC_QUERY, CLEAR, FIRST, NEXT, PREVIOUS, LAST & EXIT).
This form is created just for viewing purpose only. So after I execute, all the blocks have been blocked against insert & update.
I query on 2 fields that is 'ENQNO' and 'RATNG' (Both the fields belong to the block ENQACMDTL).
When I click on 'EXEC_QUERY' directly, all the data of all the years populates.
But the user wanted the data to be populated from only the present year and the previous year.
So , on 'WHERE Clause' of the property_palette of 'ENQACMDTL' block , I put in the following condition:
SUBSTR(ENQACMDTL.ENQNO, 1,4)=TO_CHAR( ADD_MONTHS(SYSDATE,-12) , 'YYYY') OR SUBSTR(ENQACMDTL.ENQNO, 1,4)=TO_CHAR(SYSDATE, 'YYYY')
PROPERTY PALETTE (ENQACMDTL block)
WHERE Clause
SUBSTR(ENQACMDTL.ENQNO, 1,4)=TO_CHAR( ADD_MONTHS(SYSDATE,-12) , 'YYYY') OR SUBSTR(ENQACMDTL.ENQNO, 1,4)=TO_CHAR(SYSDATE, 'YYYY')
Now the data of only the present year and the previous year is being populated. Its ok with the field of 'ENQNO'.
The problem is when i query on field 'RATNG' . 'RATNG' is a Text_item with Number of Items displayed=5. (5 rows)
The following are 2 columns of a Table (Name=ENQACMDTL) in Database.
ENQNO
RATNG
2013900054
500KC2
2013900047
800KC4
2013520018
750KC6
2012900037
1000KC2
2012520109
500KC2
2012140019
750KC6
2011540036
500KC2
2011100030
1000KC2
2006100007
90KD8
2006750014
750KC6
2006900072
500KC2
The first 4 numbers of 'ENQNO' denotes the year. There are more than a lakhs of records.
So when i query on the field 'RATNG',
Example:For RATNG=500KC2;
I click on ENTER_QUERY, On the field of 'RATNG' , i put in the value 500KC2 and click on EXEC_QUERY; Details with respect to 500KC2 is displayed as well as all the other unwanted RATNG like 750KC6, 1000KC2 (which belongs to the ENQNO of the present year and the previous year) also gets displayed.
I want details of only RATNG (500KC2) to be displayed, but only of the present year and the previous year, that is 2013900054, 2012520109 (ENQNO).
Other than 500KC2 RATNG, no other RATNG must be displayed.
The RATNG=500KC2 is also present for ENQNO=2011540036 , 2006900072. But I dont want these to be displayed.
I want only the data or details of the present year and the previous year to be displayed or populated with respect to the given RATNG.
Can You Help me or tell me what do i do for this?
Hope I'm clear with my question!!
If my question is not clear, let me know plz.
Thank You.
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
Oracle forms 6i.On key-exeqry you have to program. Delete all other trigger codings for checking your condition.
It dint work on key-exeqry.
I tried key-exeqry on form trigger, block (enqacmdtl) and also on field(:enqacmdtl.enqno) , but none of them worked.
It did not display the message.
I have a 'PUSH-BUTTON:EXEC_QUERY.
For EXEC_QUERY, Trigger : WHEN_BUTTON_PRESSED;
I added the following code:
if to_number(substr(:enqacmdtl.enqno,1,4))<to_number(to_char(add_months(sysdate,-12),'YYYY')) then
message('The Rating is not present for the present year and the previous year');message(' ',no_acknowledge);
raise form_trigger_failure;
else
execute_query;
end if;
It is working fine and the message is being displayed.
But again I have a new problem and that is;
On the field :enqacmdtl.enqno, when i enter the '2013%' and press 'EXEC_QUERY', it works fine.
but when i enter '2006%' and press 'EXEC_QUERY', it shows the following error
FRM-50016: Legal characters are 0-9 - +E. It does not display the message also.
but when i enter the complete number, '2006580002', then it works fine , that is it displays the message (The Rating is not present for the present year and the previous year).
The problem is because of '%', only when i put in the restricted data (which does not satisfy where condition).
How do i solve this?
Thank You Priyasagi. -
Query to find the latest record with respect to the current status
Dear gurus
I have the following data in a table
Customernum
bkcode
reqtdate
Prevstat
currstat
The data will be like this
CustomerNum bkcode reqdate prevstat currstat
5900 1 03-Aug-12 0 1
5900 1 06-Aug-12 1 0
5900 5 22-Jun-12 0 1
If a customer has an issue to solved, a record is added with bkcode , register date and currstat will be 1
If the issue is resolved for the bookingcode,a new record is added, the currentstatus will become 0. and prev stat will show 1. Row no 1 and 2 reflects this case
If this table is queried for finding the unresolved issues. the output should be only the Last row of the above example. since issue with bookingcode 1 has been resolved
I have trying hard to get this thing confused what to use Lead or Max
Kindly guide meHi,
one way here:
WITH mytable(CustomerNum, bkcode, reqdate, prevstat, currstat)
AS
SELECT 5900, 1, TO_DATE('03-Aug-12', 'DD-Mon-YY'), 0, 1 FROM DUAL UNION ALL
SELECT 5900, 1, TO_DATE('06-Aug-12', 'DD-Mon-YY'), 1, 0 FROM DUAL UNION ALL
SELECT 5900, 5, TO_DATE('22-Jun-12', 'DD-Mon-YY'), 0, 1 FROM DUAL
SELECT CustomerNum, bkcode, reqdate, prevstat, currstat
FROM (SELECT a.*
, ROW_NUMBER() OVER (PARTITION BY CustomerNum, bkcode
ORDER BY reqdate DESC) AS rn
FROM mytable a
WHERE rn=1
AND currstat=1;
CUSTOMERNUM BKCODE REQDATE PREVSTAT CURRSTAT
5900 5 22-JUN-12 0 1Regards.
Al
Edited by: Alberto Faenza on Dec 18, 2012 5:23 PM
Changed again!! Previous logic was wrong -
Output Changes with respect to change in decimal places in currency
Dear All,
We had a requirement to implement 3 and 4 decimal prices in USD and GBP respectively. As per SAP recommendation we created new currencies USD3 and GBP4 and configured other stuffs. Now we are able to enter prices in 3/4 decimals. However the sales order and invoice outputs are showing incorrect prices in 2 decimals itself. For example if I enter unit price as 2.145 the output shows it as 21.45.
Please let me know what need to be fixed?
Regards,
RajeshHi,
This can be due to various reasons.
1. Please check your personal settings in SU01. Due to the features here, you may get different notation in the output type.
2. There can also be a problem due to the code in the output type .We had the same problem, and found the root cause to be in the output program and rectified it. Now it is fine.
3. Also, check your standard configurations on these currencies once, though I am sure they are done fine. -
Formatting the output (currency with decimals)
hi all,
i want to format the output of the currency field. Right now it displays the exact value like say 23 or 43.5 etc. But my requirement is i need it to display in a standard format as 23.00 , 43.50 , 565.00 etc. i,e if there is no decimals then it should be filled with zero's.
I have gone through some of the threads which speaks of formatting the output if it is a value node. But here i have directly bounded the table to a model node.
Domian level datatype of the field is Currency in R/3. After model import in dictionary it is showing as decimal.
How can i achieve this?I Appreciate if someone can help me on this.
Regards,
G Nidhi,
Go thru this link it might helps you.
column heading -refer to the webdynpro tutorial 34
Change the currency data type char and specify the length.
Thanks,
Lohi. -
Restoring the whole system with a wireless time machine
please can you link me to a page with step by step for this please
Start your Mac using OS X Recovery if you are using Lion or later, or by booting from your original System Install DVD if not.
When you see the following screen select "Restore from Time Machine backup":
All available backups are shown and dated. Select your most recent backup. -
Can the output voltage during boot-up of the CFP-AIO-610 module be held to zero?
During power on or reset of the system the analog outputs go to 10V instead of 0V. Once the system is up and resonsive the default value kicks in and the level goes to 0V. Is there a way to keep the voltage near zero during a reset?
When the voltage is reading 10V, do you have any load connected, or is the output channel connected directly your multimeter/scope? If the channel is left open, that might lead it to charge to the positive rail (10V). Try putting a resistor across the output terminals and see if it still reads 10V during boot up.
Let me know the results...
Thanks,
Sean C.
Applications Engineer
National Instruments
Maybe you are looking for
-
Asked to re-add Existing Library
I set up itunes match earlier this week, after many days of uploaidng etc all seemed good. Had to turn my imac off for a few hours today. When I booted this evening and went into itunes, no MAtch! I clicked enable, and it asked me if I wanted to add
-
What are the new instruments and loops included with 7.2?
Subject says it all. Thanks
-
I just can't fix my iPhone4, it requests restore more than 8 times
-
Airport Airdisk nearly useless with Leopard 10.5.1
Oh god, I just bought an Airport Extreme 802.11n thinking it would be the best networking experience of my life. I just bricked up my Linksys (flashing power light) by trying to upgrade to openWRT and needed to replace it. So I picked up an airport e
-
BAPI for all levels of all hierarchies of all dimensions of a cube
Hi Experts, Is there are way to get all properties of all levels of all hierarchies of all dimensions of a cube (InfoCube, ODSObject, QueryCube, InfoSet) in one BAPI call? Any useful answer will be rewarded with suitable points. Thanks, Rohan