How can I write a comment in a file lvm during running
hello,
I need to write a comment in a file.
I use Write LabVIEW Measurement File to write my signal in a lvm file.
I want to insert a comment and I use a string control to comment.
is it possible to write a comment during running of program??
I must achive a signal and i write a comment in the same time and i can't stop and start the acquisition.
is there a way to write whitout turn off the program??
Thank you
I
Hello,
I need to write a comment in any time, during the measurement is running.
If it is possible I can write the measuremnet in a excel file insted lvm file. but I don't know how do it.
I must achieve a signal and filter it. then I calculate the integral of this signal and record it in a file.
but I must write a comment during acquisition because the signal change in the time according my manipulation and
I write them on file to have corresponding between comment and values.
This is my VI file I hope it is clear!
Another thing. I would to change file in which write when a write comment to have a diffrent file for each conditions.
Thank you very much
Attachments:
Generazione_filtro_integrale_un_metodo.vi 452 KB
Similar Messages
-
How can I write a comment in a file lvm
I use Write LabVIEW Measurement File to write my signal in a lvm file.
I want to insert a comment and I use a string control to comment.
when I insert a comment I write comment and push Return.
When I open file.lvm there is no comment!!!
Why??
Thank youHi ocramm,
see the attached VI, it's a simple example that writes a single waveform (X and Y axes) in a lvm file adding a comment.
The comment fills only the 1st row of the 3rd column . The position of the comment is always in the 1st row of a new column after the last column of the last signal.
I hope this help you.
MarcoC
Attachments:
Write comment.vi 169 KB -
How can read/write FORMSWEB.CFG & DEFAULT.ENV file entries programatically?
Environment: Forms 9i (Web)
As : Oracle 9i As
How can read/write FORMSWEB.CFG & DEFAULT.ENV file entries programatically?I guess you cannot. There is an enhancement request to get the name of the config-section as a GET_APPLICATION_PROPERTY.
What you could do is add extra parameter(s) to your form and pass the necessary formsweb.cfg parameters in this form parameter. See Get formsweb.cfg section name in Forms for more info and an example. -
How can I write to spreadsheet or measurement file the following signals
Hi Friends !
I'm wondering how to write to spreadsheet or measurement file 1 and 0 from my DAQ assistant on this VI :
It's the same VI like this one : http://zone.ni.com/devzone/cda/epd/p/id/6405
Solved!
Go to Solution.
Attachments:
My.vi 135 KBHey,
You place the Write To Measurement File Express VI on your blockdiagram and route a wire from it's "Signals Input" terminal to the DAQ Assistant's "data" terminal. Like this:
Christian -
How can I write this string to a file as the ASCII representation in Hex format?
I need to convert a number ( say 16000 ) to Hex string ( say 803E = 16,000) and send it using Visa Serial with the string control in Hex Mode. I have no problem with the conversion (see attached). My full command in the hex display must read AA00 2380 3E...
I can easily get the string together when in Normal mode to read AA0023803E... but how can I get this to hex mode without converting? (i.e. 4141 3030 3233 3830 3345 3030 3030 3031 )
Attachments:
volt to HEX.vi 32 KBSorry, The little endian option was probably introduced in 8.0 (?).
In this special case it's simple, just reverse the string before concatenating with the rest.
It should be in the string palette, probably under "additional string functions".
(note that this only works in this special case flattening a single number as we do here. If the stat structure is more complex (array, cluster, etc.) you would need to do a bit more work.
Actually, you might just use typecast as follows. Same difference.
I only used the flatten operation because of the little endian option in my version.
Message Edited by altenbach on 11-16-2007 11:53 AM
LabVIEW Champion . Do more with less code and in less time .
Attachments:
littleendian71.png 4 KB
littleEndiancast71.png 4 KB -
I had been running other email clients for years and finally switched to Firefox. All the while importing my other email folders. So I had quite a large history of email. I had been backing up my system using Acronis for years. My desktop's motherboard crashed and was not worth repairing. I pulled my desktop hard drive and turned it in a standalone drive. I re-established my email on a laptop starting from scratch using Firefox. I would like to import (if possible) the emails history that is stored on the standalone drive (formerly my old hard drive). However, the names of the mail folders on the drives are different. For example: current computer the mail folder is named garlic.com. On the standalone drive (old hard drive) there are several folders and they are named, for instance; mail.garlic.com, mail.garlic-1.com , and so forth. it goes up through garlic-4.com.
How can I pull or import these older folders into my current email folder and see all my old email archives?You are not going to be able to run your old system from the backup on this old computer as the hardware is incompatible.
You need to get a new computer or a refurbished one. -
How can I suppress @ from prompting in a file when I run slqplus cmnd line
I should know this, but varied searches have come up with nothing :-(
I have a script myscript.sql which inserts data, mostly email addresses such as '[email protected]'. When I run this script command line for example:
sqlplus scott/tiger @myscript.sql
The script prompts me at every @ expecting an input param. How do I escape, ignore, suppress that? Each of the @'s in the file are already either in quotes or comment headers.My bad, you're right - it wasn't the @, it was a completely munged script which dos-to-unix fixed. Although it was odd that I was getting prompted. I'm chalking it up to some weird anomaly. I'm returning to the Oracle world after a 2 year hiatus and dusting off the cobwebs...
Thanks - -
How can we store an image in the file the image is int he form of bytes
hi
How can we write an image to a file and save it to hardisk the i mage is in the form of bytes please if any body knows please send the code for it
Thanks for u replycan u send the code for me
my image is in the form of bytes its size is=78K;
now i want to store image in database using BLOB type i blob datatype size is25k;
how i should store
Help me if know anything about this
Thanks In Advance -
How can I read a comment from an lvm?
Hello,
I created an lvm using the Write to Measurement File express vi and I added a comment.
To simplify it the line of the lvm created was:
5 test
where 5 is a random value and test the comment I input.
My question is how can I read this comment.
When I use the Read Measurement File express vi, the comment output
returns empty.
Thank you.
Solved!
Go to Solution.Hi epik78,
I am not sure how you are adding your comment to the file, but when I made the simple VI below, I was able to see the comment that I input to the .lvm file in the comment indicator of the Read From Measurement File.
Regards,
Stephen S.
Message Edited by Stephen_S. on 02-25-2009 03:18 PM
National Instruments
Applications Engineering
Attachments:
lvm comment.JPG 26 KB -
How can I automatically prepend comment blocks to stored procedures?
How can I automatically prepend comment blocks to stored procedures?
In my organization, the standard is to comment all stored procedures with a comment block that looks like this:
/*-- =============================================
-- Created by: <Owner>
-- Created date: 01/08/2012
-- Purpose: Inserts new setting value, code and description
-- Modifications:
-- Modified by: <Owner>
-- Modification date: 01/08/2012
-- Purpose: Inserts new setting value, code and description
-- =============================================*/Thanks.
select * from v$version;
BANNER
Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production
PL/SQL Release 11.2.0.2.0 - Production
CORE 11.2.0.2.0 Production Edited by: xDeviates on 01-ago-2012 7:37
Edited by: xDeviates on 01-ago-2012 8:31Hi,
If I want to write a package called pk_fubar, I copy the following script and call it fubar.sql
-- ========== package_name.sql starts here ==========
-- Package_Name.sql
SPOOL &home_dir\package_name.lst
PROMPT . H H EEEE A DDDD
PROMPT . H H E A A D D
PROMPT . HHHHH EEE A A D D
PROMPT . H H E AAAAA D D
PROMPT . H H EEEEE A A DDDD
@@package_name_head
PROMPT . BBBB OOO DDDD Y Y
PROMPT . B B O O D D Y Y
PROMPT . BBBB O O D D Y
PROMPT . B B O O D D Y
PROMPT . BBBB OOO DDDD Y
@@package_name_body
SPOOL OFF
@@package_name_test
-- EXIT
-- ========== package_name_head.sql starts here ==========
CREATE OR REPLACE PACKAGE pk_package_name
AS
FUNCTION sign_in
( in_user_name IN VARCHAR2
, in_password_txt IN VARCHAR2
RETURN PLS_INTEGER
END pk_package_name;
SHOW ERRORS;
GRANT EXECUTE ON pk_package_name TO schema_name_some_role;
-- ========== package_name_body.sql starts here ==========
CREATE OR REPLACE PACKAGE BODY pk_package_name
AS
-- Procedures related to SCHEMA_NAME ...
-- 2012 July 23 -- Package started with proc_x. (Frank Kulash)
-- ** local procedures and variables **
-- ** x **
-- ** initialization section **
-- The following code is executed once per session, when the package is loaded.
BEGIN
set_var ( 'DT_FMT_TXT'
, 'YYYY-MM-DD HH24:MI:SS'
END pk_package_name;
SHOW ERRORS;
-- ========== package_name_test.sql starts here ==========
-- PACKAGE_NAME_TEST.SQL -- Test procedures in schema_name.pk_package_name
SET DOCUMENT OFF
SET SERVEROUTPUT ON SIZE 10000
ALTER SESSION SET NLS_DATE_FORMAT = 'DD-Mon-YYYY HH24:MI:SS';
SPOOL @@package_name_test.lst
PROMPT
PROMPT ***********************
PROMPT ** Testing x **
PROMPT ***********************
PROMPT
SPOOL OFFThen I replace package_name with fubar, and schema_name with the actual schema name. Finally, I cut off parts from the end to create fubar_test.sql, fubar_body.sql and fubar_head.sql. You could easily include a multi-line procedure comment template in this script. Every time you add a procedure or function, ciopy and paste that comment template, and then modify the copy. -
How can I view all comments in a Pages doc and print the doc with comments?
It seems that we can no longer view comments in the margin of a document. It is also not possible to print the document with comments visible. Anyone else having this problem? Pages 09 Help does not even offer an up-to-date explanation. "Show Comments" only shows color shading. The option “Show Comments and Changes Pane" does not even exist. How can I get the comments to print???
You will have to wait for Apple to fix this deficiency in a forthcoming update to Pages v5. Or, you could use Pages ’09 v4.3, if originally installed before the v5 upgrade, and located in /Applications/iWork '09.
Otherwise, use another solution (e.g. Office for Mac 2011, LibreOffice). -
How can I write a program that compiles without warnings?
I tried the following with the 1.5 beta-compiler (build 28; I think):
class Y {
public static final class Pair<X,Y> {
private X fst;
private Y snd;
public Pair(X fst, Y snd) {this.fst=fst; this.snd=snd;}
public X getFirst() { return fst; }
public Y getSecond() { return snd; }
public String toString() { return "("+fst+","+snd+")"; }
public static void main(String... args) {
Pair[] pairArr = new Pair[10]; // supposed to be an array of Pair<Integer,Integer>
for (int i=0; i<pairArr.length; i++)
pairArr[i] = new Pair<Integer,Integer>(i,i);
for (int i=0; i<pairArr.length; i++) {
Pair<Integer,Integer> p = pairArr; // unchecked warning
System.out.println(p);
Integer first = p.getFirst();
Integer second = p.getSecond();
// ... more stuff ...
It turns out that I get an unchecked warning when I extract an element from the array of pairs. Okay, that's fine. How can I avoid the warning? I had expected that an explicit cast would help.
Pair<Integer,Integer> p = (Pair<Integer,Integer> )pairArr;
With a cast I'm telling the compiler: "I _know_ what I'm doing; please trust me." But the compiler still issues a warning.
How can I write a warning-free program in this case? The only thing I can think of, is not using the parameterized type Pair in its parameterized form. But it's not the idea of Java Generics that I refrain from using parameterized types. What am I missing?It turns out that I get an unchecked warning when I
extract an element from the array of pairs. Okay,
that's fine. How can I avoid the warning? I had
expected that an explicit cast would help.
Pair<Integer,Integer> p = (Pair<Integer,Integer>
)pairArr;
With a cast I'm telling the compiler: "I _know_ what
I'm doing; please trust me." But the compiler still
issues a warning. Yes, but at least you were able to change the warning from "unchecked assignment" to "unchecked cast" which is a little shorter ;-)
Seriously , since arrays of generic types are disallowed, there is probably no way to get rid of these warnings - which makes a strong point for eliminating "unchecked" warnings altogether (see the other thread "selectively suppressing compiler warnings")
Cheerio,
Gernot -
How can I Write a sine wave in an Access-fil​e?
I measure a sine wave in LabView 6i. How can I write the datas automatically to an Acces-file, at the same time?
In my program, I managed it with Execute SQL.vi, I change a number in a SQL statement(String) -> after this I push start and then it writes the statement in the Access-file.
The problem is, it writes only one data per measurement in the file. How can I write all datas in the Access-file and measure the wave at the same time?
Thanks for help!
Attachments:
getwave.vi 49 KBOn the waveform palette, you will find a "to components" vi that you can break out the array of the waveform. You can then, using a for loop write all of the values from the waveform.
Better yet, there are examples in the database toolkit manual on pages 3-13 to 3-15 that deal with reading arrays (and even has a waveform example).
Good luck! -
How can i write the below code using "For all entries"
Hi
How can we write the below code using "for all entries" and need to avoid joins...
Please help
SELECT aaufnr aobjnr aauart atxjcd a~pspel
agstrp awerks carbpl cwerks
INTO TABLE t_caufv
FROM caufv AS a
INNER JOIN afih AS b
ON aaufnr = baufnr
INNER JOIN crhd AS c
ON bgewrk = cobjid
AND c~objty = 'D'
WHERE ( a~pspel = space
OR a~txjcd = space
OR NOT a~objnr IN
( select OBJNR from COBRB AS e
WHERE objnr = a~objnr ) )
AND a~werks IN s_plant
AND a~auart IN s_wtype
AND NOT a~objnr IN
( select OBJNR from JEST AS d
WHERE objnr = a~objnr
AND ( dstat = 'A0081'OR dstat = 'A0018' )
AND d~inact 'X' ).
Reward points for all helpfull answers
Thanks
Ammi.Hi,
SELECT objnr objid aufnr
from afih
into table t_afih.
SELECT objnr
from JEST
into table t_JEST
where stat = 'A0045'
OR stat = 'A0046'
AND inact 'X'.
SELECT objnr
from COBRB
into table t_cobrb.
SELECT arbpl werks objid objty
from crhd
INTO table it_crhd
FOR ALL ENTRIES IN it_afih
WHERE objty eq 'D'
AND gewrk = it_afih-objid.
SELECT aufnr objnr auart txjcd pspel gstrp werks aufnr
FROM caufv
INTO table t_caufv
FOR ALL ENTRIES IN it_afih
WHERE aufnr = it_afih-aufnr
And pspel = ' '
AND txjcd = ' '
ANd objnr ne it_crhd-objnr
AND auart in s_wtype
AND werks in s_plant.
AND objnr ne it_jest-objnr.
dont use NE in the select statements, it may effect performance also. Instead use if statements inside
loops.
loop at t_caufv.
read table it_chrd............
if t_caufv-objnr ne it_chrd-objnr.
read table it_jest..........
if if t_caufv-objnr ne it_jest-objnr.
(proceed further).
endif.
endif.
endloop.
hope this helps.
Reward if useful.
Regards,
Anu -
How can I write into a table cell (row, column are given) in a databae?
How can I write into a table cell (row, column are given) in a database using LabVIEW Database Toolkit? I am using Ms Access. Suppose I have three columns in a table, I write 1st row of 1st column, then 1st row of 3rd column. The problem I am having is after writing the 1st row 1st column, the reference goes to second row and if I write into 3rd column, it goes to 2nd row 3rd column. Any suggestion?
Solved!
Go to Solution.When you do a SQL INSERT command, you create a new row. If you want to change an existing row, you have to use the UPDATE command (i.e. UPDATE tablename SET column = value WHERE some_column=some_value). The some_column could be the unique ID of each row, a date/time, etc.
I have no idea what function to use in the toolkit to execute a SQL command since I don't use the toolkit. I also don't understand why you just don't do a single INSERT. It would be much faster.
Maybe you are looking for
-
I removed my credit card from my apple ID account, and ever since then whenever i try and download a free app it says my apple ID is disabled yet on the computer and my iphone it seems to be working fine?
-
Problem with cancellation of service entry sheet
Hi guys, I am trying to cancel the service entry sheet using ML81N. Though i have authorisation for ML81N, i am not getting display change button. Please help me out how to get this display change mode. chintu
-
How to extract sms messages from iphone?
im using 3gs and im trying to extract sms messages from it. but i dunno how. thanks in advance! and btw im also using windows.. so no mac.
-
Why can't I open pps and wmv files sent by email!
Many friends send photos and/or files with pps and wmv designations. Windows continually rejects them with the message that it is unable to open them. How can I fix this?
-
Hi, does anybody know where I can find detailed 3D Javascript tutorials. I'm having a hard time finding any tutorials online, pay or free. I have some AS3 experience, but just starting to learn JavaScript, so I need like the ground-level type tutoria