02-04-2008 01:41 PM
02-04-2008 02:46 PM
TestSockets are 0 index based. They are stored at the lookup string RunState.TestSockets.MyIndex as a numeric value. Since you want to TestSocket 0 to be COM1 then you will need to add 1 to the TestSocket Index. I am attaching a simple example that pops up a message with a string of the COM ports.
Basically, just pass the following to your VI:
"COM" + Str(RunState.TestSockets.MyIndex + 1)
Let me know if you have any more questions on this as multithreading can be tricky.
Here's a TIP: When dealing with the Batch or Parallel models and you have multiple finished execution windows open then click Ctrl-D to close them all at once.
Regards,
02-04-2008 02:56 PM
Here's a link that talks about the Resource name in the Specify Module dialog: http://forums.ni.com/ni/board/message?board.id=330&message.id=4673&requireLogin=False
Regards,
02-05-2008 09:25 AM
02-05-2008 10:05 AM
Hey Bolinger,
Yeah I notice that too now that you mention it. So what you can do is create a local variable of LabviewIOControl type. Then in your pre-expression or in an expression step before the LabVIEW call set that datatype with the values and pass it to the LabVIEW module. I'm attaching an example with a Local that demonstrates what I mean. Basically I have a local called VISAName and I set up it's sup properties in the expression step. You could do the same in a preexpression for your LabVIEW step. Then you will be able to pass that, which is basically a cluster/container, to your LabVIEW code. I attached an image showing how to do this.
Let me know if that helps. This is the best way I know how unless someone else has a better suggestion.
Regards,
02-05-2008 11:12 AM