LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read datas from table

Solved!
Go to solution

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.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 51 of 189
(1,180 Views)

Thanks,now works fine.How can we do a comparison before the read operation??

Eg:-

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 52 of 189
(1,176 Views)

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.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
Download All
0 Kudos
Message 53 of 189
(1,166 Views)

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.

0 Kudos
Message 54 of 189
(1,161 Views)

My input array will be like this:-

 

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 55 of 189
(1,158 Views)

And this is what you receive ?

0 Kudos
Message 56 of 189
(1,153 Views)

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.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
0 Kudos
Message 57 of 189
(1,151 Views)

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.

0 Kudos
Message 58 of 189
(1,151 Views)

@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.

0 Kudos
Message 59 of 189
(1,146 Views)

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.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Thanks as kudos only:)
Download All
0 Kudos
Message 60 of 189
(1,127 Views)