07-04-2024 09:06 AM
Hi ,
I saw examples on the forum but I can't save it in the consumer loop.😟
Can you help me resolve this problem or give me advice on how to correct this?
thank you
07-04-2024 01:21 PM
Hi Amelie,
@ameletudiante99 wrote:
I can't save it in the consumer loop.😟
give me advice on how to correct this?
Do you receive data in your consumer loop?
Does the graph show data?
If yes: which error do you see at the TDMSWrite?
Why don't you implement the very basic debugging technique to show the error inside the loop in an indicator???
Why do you still not use AutoCleanup on your code?
Why are there buttons with generic labels ("boolean", "boolean2")?
07-05-2024 01:27 AM
Good morning ,
yes I can display the data in the consumer loop; Can you direct me to a solution to create the files every time I press the boulean 2 button or every minute for example?
It's my configuration that is wrong and I can't find the problem.
I have an error code 2501 in tdms write; I can't find a solution to fix this
thank you
07-05-2024 01:44 AM
Hi Amelie,
@ameletudiante99 wrote:
I have an error code 2501 in tdms write; I can't find a solution to fix this
Did you read the error explanation for the error? It pretty much explains the reason…
I guess you got error -2501 (note the minus sign before the number!): invalid TDMS file reference.
In your VI the consumer loop starts without creating a valid TDMS reference and there is no error handling inside the loop.
Solution:
07-05-2024 11:04 AM
In addition to @GerdW's suggestion set the number of samples to read like below; you are just spinning that loop too fast.
07-09-2024 07:39 AM
hi,
thank you;
I was able to solve the problem