o to all labview users.
I am currently learning labview to control the network analyzer hp8720
as part of my project. Through my program, i am able to do a sweeping
function with my NA and the sweeping data are written to txt file. and
i want to extract the db value corresponding to a specific frequency.
my txt file is like the following:
MHz dB
103 0.015
168 2.09
201 2.67e01
I know that we can extract certain selected data by using the some palettes like "read file" and "scan file"
I tried using "scan file" and i couldnt extract the data(ex: the dB
value corresponding to 168MHz) i want successfully....i checked the
help file and did put some syntax in the format string like (%[^2.09]),
but it seems the "scan file" palette was only able to scan the first
line, which gave me "Mhz db".....
is the format of my txt file not correct?
also, i tried using "read file" palettle..and i set the count to "-1"
to read the whole file. someone suggested on the forum that it is
easier to read the whole file and then use array to extract the
selected data.
How can i write to the array using "read file" while specifying the what range of data i want?
Instead of doing that, maybe i can just simply write the db value
related to the specific range of frequency while the program is in a
while loop doing sweeping?
It would be greatly appreciated if someone could me some guidance.
thank you very much
*********************************************************************
Happy guy
~ currently final year undergraduate in Electrical Engr. Graduating soon! Yes!
~ currently looking for jobs : any position related to engineering, labview, programming, tech support would be great.
~ humber learner of LabVIEW lvl: beginner-intermediate