취소
다음에 대한 결과 표시 
다음에 대한 검색 
다음을 의미합니까? 

variable names in case structures

Hi there!
Is there a way to have my case structure check against *runtime variables* (as opposed to statically defined values). Think of:
* create case structure
* wire some integer variable to the Case Selector
* click Selector Label, enter name of some other integer variable

This yields an error, because LV interprets my other integer variable, puts it in quotation marks and thinks of it as a string. Is there any way to circumvent this?

Kind regards,
Severin
0 포인트
1/4 메시지
2,880 조회수

Your query is a little unclear, I must admit

could you post a vi illustrating this error your observed??

Message Edited by devchander on 11-07-2006 04:18 AM

0 포인트
2/4 메시지
2,875 조회수
Sure, sorry. Looks like this:
0 포인트
3/4 메시지
2,867 조회수
OK, simple statement first:
Integer does not equal string.
You also seem to be tossing around "runtime" and "static" somewhat liberally. Once you wire an integer (be it a control or block diagram constant) to the case structure's selector, the cases can only take on integer values. This is by design. If you wire a string, the case items take on string values. If you wire an enum, the case items take on the enumeration values. Once you've defined a case structure's cases you can't change them at "runtime". This, by definition, is different code.

That said, it seems to me that you're looking for an enum.
0 포인트
4/4 메시지
2,844 조회수