10-17-2011 05:44 AM
10-18-2011 12:23 PM
Hey Majid,
1. 280 is an awful lot of events and is usually a bad idea.
2. However, should you choose to stay with this, it is possible to send ques to the consumer loop from multiple frames of a structure. Just use the Enqueue Element again.
3. I'm not sure what you mean by collecting "Time Out" in automatic mode but you can change the timeout of you VISA read through a property node.
4. The onboard chips will produce some heat, I don't belive it should exceed expected temperatures unless you are insulating. I do not believe this is because of your program.
Kyle K.
10-19-2011 06:17 AM
Hi
1-i should to use 280 events becusea my program has 240 slidbar & 3 Ring & 3 button & 4 slidbar(long) & 15 color & ... when each element changed , i must processe.
how can i do it without "Event Structuer"?
2-what is minimum value timeout for read 141 byte from com port?
10-19-2011 01:17 PM
11-15-2011 04:01 AM
Rather than events and event structures you could probably use a simple waiting while loop or timed loop with shift registers to pass the previous value for all your items from the last iteration and compare them to the current values. If all you care about is that some value has changed and you aren't as concerned as to which, you could combine the items into a single array or cluster so you only have to do one comparison because the comparison will note if any element has changed.
Some of the comparison tools and even math operators and the array search functions could even be used to identify what element specifically changed if you need to do something different depending on what item changed. In any event that is a lot of items to keep track of to have everything be a separate item. If there are at least a few specific groupings that have similar actions then you could use several timed loops that have the nice advantage of being able to run simultaneously yet do there own things that you could at least subdivide the checks somewhat.
If the cluster operators were more versatile like the array, string, and number pallets then I'd use them far more myself; but most are limited and very inflexible when you mix and match data types. Clusters provide visual grouping, individual element "naming", yet gives you just one item to have to deal with until you need to do something to a specific element in which case the pallet has a few useful tools for that.
-Leif