LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

python node with daqmx read

Solved!
Go to solution
Solution
Accepted by topic author ameletudiante99

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

0 Kudos
Message 11 of 16
(533 Views)
Solution
Accepted by topic author ameletudiante99

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")?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 12 of 16
(527 Views)
Solution
Accepted by topic author ameletudiante99

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

0 Kudos
Message 13 of 16
(516 Views)
Solution
Accepted by topic author ameletudiante99

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:

  • You need to implement error handling.
  • You should only call TDMSWrite when there is a valid reference in the shift register…
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 14 of 16
(512 Views)
Solution
Accepted by topic author ameletudiante99

In addition to @GerdW's suggestion set the number of samples to read like below; you are just spinning that loop too fast.

 

snip.png

0 Kudos
Message 15 of 16
(499 Views)
Solution
Accepted by topic author ameletudiante99

hi,

thank you;

I was able to solve the problem

0 Kudos
Message 16 of 16
(485 Views)