Hi,
I added two API calls to LCOM_MasterPutLine. I cannot test it here, but this
is how LCOM_MasterPutLine is defined...
To detect OK, FAIL or BUSY, you'll have to experiment with the values, or
contact the third party to get those values. Adjusting the while loop should
be a matter of trying what works best, e.g. testing if it reads anything, or
waiting until it reads nothing anymore, or something else.
Regards,
Wiebe.
"Ajit" wrote in message
news:506500000005000000C65D0100-1077587809000@exchange.ni.com...
> Hi Webie,
>
> I have small doubt.
> I could clearly understand the example that u sent me.
>
> But I need to modify the VI to change the test file.
>
> Supose I need to do the following,
>
> 1)First /* Set the lcmaster properties - not likely to fail */. This
> is already done.
>
> 2)Register the slave...spawning..it is already done.
>
> 3)thirdly instead of the LCOM_MAsterGetLine function I need to use
> LCOM_MasterPutLine function of the dll and input the slave ID and the
> line " load auto".
>
> 4)Then again I need to use the same option of the dll and input the
> slave Id and the line "auto"
>
> Now what happens is the third party software to which the dll belongs
> loads a file called auto and then solves the file when we say auto.
>
> And then it prints the output file in the same directory.
>
> But there might be a problem here.
> LabVIEW has to wait till the third party software solves the file and
> gives the output.
>
> For that I guess we need to use a while loop saying to wait till there
> is some output.
>
> And finally we need to dispose the ID as we have done already.
>
> Can you help me in modifying the VI file that u sent me before.
>
> I am sending the
file back to u here.
>
> Thanks a lot,
> Ajit.
[Attachment test file.vi, see below]