取消
显示结果 
搜索替代 
您的意思是: 

python node with daqmx read

已解决!
转到解答
解答
已被主题作者 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 项奖励
11 条消息(共 16 条)
582 次查看
解答
已被主题作者 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 项奖励
12 条消息(共 16 条)
576 次查看
解答
已被主题作者 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 项奖励
13 条消息(共 16 条)
565 次查看
解答
已被主题作者 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 项奖励
14 条消息(共 16 条)
561 次查看
解答
已被主题作者 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 项奖励
15 条消息(共 16 条)
548 次查看
解答
已被主题作者 ameletudiante99 接受

hi,

thank you;

I was able to solve the problem

0 项奖励
16 条消息(共 16 条)
534 次查看