LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

file i/o

i am doing my final sem project using labview....automation of under water acoustic transducer measurments
i have automated the measurment for directivity..tvr n voltage sensitivity..
i find it difficult to write to a file when the datas r inside a case structure...i am new to labview...can anyone help me...
0 Kudos
Message 1 of 10
(3,795 Views)
Hello,

And You can't post a simpler example of your code. For example, you have a while and depending on certain conditions you want to save the values?

Give more inputs (and your labview version) and then I can send you one example.

Software developer
www.mcm-electronics.com





PORTUGAL
0 Kudos
Message 2 of 10
(3,787 Views)
i use labview 7.1
one of the measurment set up is for measuring the transmitting voltage response of a transducer...
i have to measure o/p voltage first...
then arrange the set up for i/p voltage n measure i/p voltage without exiting the program..
for both voltage vs frequency plot is also reqd..
finally  calculate TVR...plot
i use menu cluster...n case strusture...
i have three cases...o/p volt
i/p wolt n calculate tvr...
i also have to save the tvr values n plot in a folder for future response..

i am new to labview..started using it a month back...dont know much abt file i/o operations..
i find difficult to tinel the values from case structure..

hope  u got me..
can u help me..?

thank u..

0 Kudos
Message 3 of 10
(3,772 Views)

Please don't use so many abbreviations. It just makes your question harder to read.

Does 'tinel' mean tunnel? If so, then you don't necessarily need to tunnel out of a case statement. The file write can be inside the case statement. If you need it outside, then you should be using a shift register and wiring the shift register straight through one of the cases.

There are a lot of shipping examples that demonstrate file I/O. If you are stuck, why don't you post the code you've written. That's probably the easiest way for someone to understand what your problem is.

0 Kudos
Message 4 of 10
(3,757 Views)
sorry...i will be careful not to use any abbrevations...

as i have mentioned..i use three cases ..n i have to read the file from the last case..


i want to store the values after program runs...
i will try using shift register tomorrow....i cant send my code or vi..coz i dont have labview installed in this pc..
i am doing my proj..somewfere else n i don hav net there..

i will get back to u

thaanks for ur help


0 Kudos
Message 5 of 10
(3,749 Views)


@fella wrote:
...
as i have mentioned..i use three cases ..n i have to read the file from the last case..

A case structure does not imply any execution order, so the word "last" only has meaning in the context of your code. If it is the last case execued before you want to save, AND it is guaranteed to execute last before the save, AND you don't need to save after any other case has executed, you can just set the output tunnel to "use default if unwired".
0 Kudos
Message 6 of 10
(3,743 Views)
i have tried tat...dint work out...i will check it one more time..
can u write to a file..without asking the file name..at the start of the vi..

ie..is it possible to write to a default file.

i will check out wat ever u told me tomorrow n get back to u

thanks



0 Kudos
Message 7 of 10
(3,739 Views)
If you wire a valid file name to the file IO node, it won't ask.
0 Kudos
Message 8 of 10
(3,733 Views)
k...
0 Kudos
Message 9 of 10
(3,728 Views)
Hello,

i think that the quickest way to help it's if you post a simple example of what you need.

If not, many people will try to help but the solution may take to long.


Software developer
www.mcm-electronics.com





PORTUGAL
Message 10 of 10
(3,727 Views)