01-22-2008 01:48 PM - edited 01-22-2008 01:53 PM
01-23-2008 10:38 AM
01-23-2008 01:26 PM
01-23-2008 05:44 PM
01-23-2008 09:33 PM - edited 01-23-2008 09:34 PM
You are calling the same subVI 4 times in parallel? That's going to cause some problems with GPIB communications.unless you are doing some locking. The GPIB bus does not support parallel operations. One instance of the subVI might be sending a write for channel x, then another instance might send a write for channel y, while a third instance is expecting a read from channel z. You should look at using the VISA Lock/Unlock. There's a shipping example that should help. You want to make sure that each subVI starts and finishes sending the commands and queries before another call starts.
p.s. You should wire up the error in/error out connections!
01-24-2008 09:52 AM
01-24-2008
12:02 PM
- last edited on
04-29-2025
03:02 PM
by
Content Cleaner
Hi Earl,
So LabVIEW uses data flow to control order of executions. A VI node (or subVI) will execute once all the inputs to that node have been received. Consequently, when two vi nodes receive all the inputs simultaneously, they will execute in parallel. Turn on highligt execution (click the lightbulb on your block diagram tool bar) to see how your code executes. Also, here is a link to an article that explains data flow in greater detail.
I'm glad you were able to get your application up and running. Like Dennis said, I would also recommend using the GPIB communication shipping examples as a starting point for your application.
Ted
01-24-2008 09:29 PM