05-28-2012 03:13 AM
By rightclicking on the array control we can see a menu containing \ Code Display.It is enabled,it shows a tick mark.And appending \n,Iam not sure whether what I did was correct or not.
05-28-2012 03:38 AM
Thanks,now works fine.How can we do a comparison before the read operation??
Eg:-
05-28-2012 06:45 AM
In the below attached VI.I made a comparison in the model read.vi.But while running the VI,it always showing the condition as false,in true cases also.why it is happening like that??what is the issue there,can't even findout by running the VI in highlight execusion mode.
05-28-2012 07:08 AM
And you have verified that what you send is the same as what you receives ?
Have you tried to place a probe on the string array ?
When you upload vi's, you need to save them with some data for us to look at.
For your send vi, please save the data in the array, so that we also can see what you enter and send.
When you have entered your data, right click on the control and select Data Operations -> Make Current Value Default.
05-28-2012 07:23 AM
My input array will be like this:-
05-28-2012 07:31 AM
And this is what you receive ?
05-28-2012 07:34 AM
No, this is the input array.The output array remains blank.Because the output of the comparison(=) always points FALSE.At the time of true cases also.
05-28-2012 07:36 AM
You are simply incapable of following directions, aren't you? You have not sent strings with a termination character and you have not saved the read VI with default data. Your write VI shows you have no concept of LabVIEW basics. The wiring of a number to the index terminal is silly as is the use of the index array. You should take a LabVIEW basics class and pay attention to auto-indexing for loops.
Then, after fixing the writer, add a terminal on one of the outputs of the for loop (silly to have 3), run it, and follow the above directions on saving default data.
05-28-2012 07:49 AM
@danil33 wrote:
No, this is the input array.The output array remains blank.Because the output of the comparison(=) always points FALSE.At the time of true cases also.
Did you read my post ???
Use a PROBE to verify what you receive or, as Dennis says, make a indicator that is NOT in a case structure.
As an engineer you should be better at self study and at least be able to debug a program.
Take the time to go through the basic tutorials and view some of the webcast, that should bring you up a level or two.
05-28-2012 11:27 PM - edited 05-28-2012 11:28 PM
Hi dkfire,
I tried as the way you suggested.I used the probe tool to check the wire values.Also placed an array indicator on the way before the casestructure.It is showing the correct values.Also the termchar in the receiver side is provided as shown in the attached VI.But after comparison it always points to FALSE.Iam not complaining without trying anything.Please run the VIs by connecting the COM ports with a modem cable.