ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

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

problems with setting 'NI_ChannelName'

Uh, this is probably a silly little bug but it has me perplexed. I seem to be unable to set the channel names in this VI, even though I can in other VIs using exactly the same function (I even copied from one to the other, still nothing). If I probe the wires during runtime, the strings reach the 'set waveform attribute' function in the correct format but, probing directly the otherside, the waveform contains no attributes...??? Not even wrongly named attributes!
 
Help...
0 项奖励
1 条消息(共 10 条)
4,099 次查看
Hello,

Your code works fine in my LV.

By the way the 32 constant at the N terminal is not necessary, auto-indexing will do the trick just fine.

Instead of hiding the controls and indicators you could place them outside the visible area. Place them together, this will enhance maintainability.

Regards,

André
Regards,
André (CLA, CLED)
2 条消息(共 10 条)
4,088 次查看
As with Andre, the code works for me. Is it possible that one or more of the autoindexed input arrays is empty? That will cause the VI to terminate without changing any attributes.

Lynn
3 条消息(共 10 条)
4,085 次查看

I just tried what you guys did (ie artificially supplied an array) and the code works fine, but inside my larger code it doesn't want to know. I'm guessing that Lynn could be right, I will check and get back to you guys.

 

(Btw andre the 32 is there to limit the for loop not set the number of itterations高兴表情)

 

Thanks for your help so far!

0 项奖励
4 条消息(共 10 条)
4,079 次查看
Right I can find no evidence of a blank array input, they're all working as they should as far as I can tell. Here are the other files that go with it together with an example file to read (see next post).  Modularised_Read_XPAD_File.vi calls the other two.
0 项奖励
5 条消息(共 10 条)
4,074 次查看
0 项奖励
6 条消息(共 10 条)
4,073 次查看
Here is a screen shot of probing the wires. As you can see, strings one side, no attributes the other...
0 项奖励
7 条消息(共 10 条)
4,050 次查看

Hi there

there's an error "4 EOF reached" after the "read file" VI. This inhibits the "Set Waveform Attribute" function!

 

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
8 条消息(共 10 条)
4,035 次查看

Wow, so it does! Thanks for that.

Is there any way to clear just error 4 and no others?

0 项奖励
9 条消息(共 10 条)
4,031 次查看

hi there

you have to use a case structur. see attachment

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 项奖励
10 条消息(共 10 条)
4,022 次查看