07-05-2016 03:42 AM
Hi steve,
Sorry, I wasn't working the last days.
I tried to put a structure around the "write to measurement file" as you told me in your last message. But it doesn't work. Something is strange, I got 0 error but the file isn't created.
To be more specific, if in the "write to measurement files" settings, I tick "ask the users to choose a file", i will have the answer and the file is created after, but I can't choose when exactly. So it's a problem. And in addition, I still got the same data in all lanes, as before.
But when I don't tick this option, and chose just "save in a file" the file isn't created at all...
07-05-2016 04:07 AM
About the error "5", I don't understand too...
I tried to change the location of the file, the name, etc. And nothing works. I never seen this error before, and finally I did a lot of test and saved lot's of file before this part of the code. So I don't understand why now, I got this error, cause I got exactly the same settings than before.
07-05-2016 04:23 AM
If you zip up a copy like you did before, I will look at it.
steve
07-05-2016 04:49 AM
I hope that I'll send everything :s
I hope that you will understand what's wrong with it ...
Thank you, again.
Maxime
07-05-2016 05:00 AM
It looks like your vi has been drinking ![]()
The first thing I see is you used a while loop instead of a case structure around the Express vi.
The little true/false constant should be wire to the case selector. (Use to turn on/off logging)
You wont need the second stop button.
I'll do some more checking.
07-05-2016 05:05 AM
Oh, there is an enable input on the Express vi.
There is no need for any extra structure.
Just a true/false connected to the enable input.
(The second one down on the left side.)
07-05-2016 06:29 AM
When you are talking about the "express vi" I don't understand what is this 😮
This is the VI multi task ? :s
Cause, I thought that's the block measure file, then I deleted the loop while and I put a loop condition. I don't know if you would say that... but I did it, and I got the error 5, again...
Now about the second message, I don't find the enable input ><
I got this :
But I don't know if it's what you want ><
07-05-2016 06:48 PM
Yes, I was talking about the "DAQmx Multi tasks" vi.
When I removed the while loop you added, and reset the target file,
the vi runs OK including saving the data to a file.
I am, however, using simulated hardware.
Actually I did get an error 5 once - I did have the file open, so it was expected.
Your implementation of the case structure should work. (Set a false to disable logging)
Although there is a simpler method available.
Here is the context help for the "Write to Measurement File" express vi.