LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

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 Kudos
Message 1 of 10
(3,818 Views)
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)
Message 2 of 10
(3,807 Views)
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
Message 3 of 10
(3,804 Views)

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 itterationsSmiley Happy)

 

Thanks for your help so far!

0 Kudos
Message 4 of 10
(3,798 Views)
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 Kudos
Message 5 of 10
(3,793 Views)
0 Kudos
Message 6 of 10
(3,792 Views)
Here is a screen shot of probing the wires. As you can see, strings one side, no attributes the other...
0 Kudos
Message 7 of 10
(3,769 Views)

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!"
Message 8 of 10
(3,754 Views)

Wow, so it does! Thanks for that.

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

0 Kudos
Message 9 of 10
(3,750 Views)

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 Kudos
Message 10 of 10
(3,741 Views)