Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

online monitor RS232 port

Solved!
Go to solution

If you need 280 events, I think you should recosider your design if you have a design

greetings from the Netherlands
0 Kudos
Message 11 of 15
(1,470 Views)

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.

Product Manager for Product Data
National Instruments
Message 12 of 15
(1,457 Views)

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?

Download All
0 Kudos
Message 13 of 15
(1,445 Views)

that depends on the baudrate say 9600 then it takes 1/9600*10*141 seconds for pure transmission. If the IOsystem is lazy it can take more so I would add at least 1 sec for timeout.

But which user can control 280 items!

greetings from the Netherlands
0 Kudos
Message 14 of 15
(1,433 Views)

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

0 Kudos
Message 15 of 15
(1,391 Views)