11-04-2010 08:11 AM
The vi below opens a new data file each time new data from the visa arrives. I want only one data file per logging period!
Can someone bring me (Labview is new for me) to the good direction?
John
Solved! Go to Solution.
11-04-2010 09:15 AM
Missing sub-vi: see attachment below
11-04-2010 09:25 AM
Why don't you just create the file outside the loop right after you open the VISA session, and close the file at the end? That would seem to be a whole lot easier.
That subVI has a flaw: if you pass in a directory, rather than a file, it gets stuck in an infinite loop.
11-04-2010 09:37 AM
smercurio-fc,
file creation outside the loop and closing at the end doesn't give the possibility opening a new data file each time you stop and start the logging by the "save-to-file" toggle.
11-04-2010 09:51 AM
Well, you hadn't defined what a "logging period" was. We can't read your mind.
What I would do is the following:
11-08-2010 05:34 AM
Help, due to my missing-labview-skills I didn't succeed in applying your hints. Using the shift register to keep track of the current refnum????? No doubts about your hints but it took me hours of puzzling... without result! Help!!
11-09-2010 04:17 PM
See attached modification. I made one change to my suggestions and have the top-level VI check for the null refnum. See if it makes sense.
11-10-2010 03:23 AM
Smercurio_fc,
Your solution is very usefull for me. Thank you very much!!!
John
11-10-2010 10:02 AM
Then if you could, please mark my answer as the solution, rather than your thank you note (though the thanks is appreciated).
You can unmark a solution using the Options menu at the right hand side along the message title.
11-11-2010 01:04 AM
Marking my answer to you as the solution was a mistake. I have corrected that and marked your input as the right one! Thanks again!