LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reduce VISA codes

Solved!
Go to solution

 

Dear All,

 

 

I have snap shot a small part of the program. My application requires me to do a serial read for a few times., i cant send the whole data in one short. Therefore i have broken the data into array and sens in pieces. May i know how can i reduce the serial read function and make the code more efficient? I may need more serial read icon if the data is even longer.

 

Can anyone help out on this? My data is an array of strings.

 

Thank you! 

 

 

test.png

 

 

 

 

 

 

 

0 Kudos
Message 1 of 4
(2,920 Views)

First,  Index Array is exandable so you don't have to copy it 8 times.

 

You could use array subset to get those first 8 elements.  Then use concatenate and wire that into one VISA write.

Message Edited by Ravens Fan on 04-22-2010 10:26 PM
0 Kudos
Message 2 of 4
(2,913 Views)

Dear Ravens,

 

My application is such that i can only write very small data at one time. Can the VI you write cater for mulitple writing?

 

If i use contencate in the function, the string length may be long and i cant send it at one short to the visa read. The visa read only allows a small string length to pass through. I have to loop the visa read somehow but not sure how to do it.

 

The problem is i can send the input with smaller size and write to mutiple visa read but not all one short into one single visa. Though the data contencate is correct, but this total data cant be send one short into one single visa.

 

The data has to be small as i am using for modem application, too large data will not be send.

 

 

 

 

 

0 Kudos
Message 3 of 4
(2,900 Views)
Solution
Accepted by topic author newbieboy

Hi,

I hope this is helpful for u.

 

Serial.jpg

Message 4 of 4
(2,892 Views)