LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

visa serial write

i need to connect my electronic hardware/instrument with labview serial visa. i need to enter multiple entries as input like frequencies, data patterns in binaries. but labview serial write accepts only single string as input. pls suggest how should i proceed?

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

@vinay1 wrote:

i need to connect my electronic hardware/instrument with labview serial visa. i need to enter multiple entries as input like frequencies, data patterns in binaries. but labview serial write accepts only single string as input. pls suggest how should i proceed?


use concanate strings 

 

visa write.png

0 Kudos
Message 2 of 4
(2,485 Views)

Hi vinay,

 

what's wrong with "single string input"?

 

Strings can be as long as you like them to be.

You can use a loop to process an array of strings.

You can do all you like as LabVIEW is a PROGRAMMING tool!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 4
(2,484 Views)

It really depends on the command format your instrument wants.  Some instruments will let you insert a semicolon between commands and write the one long string.  Others will require separate writes.  I would use a FOR loop in this case (iterate on an array of strings).


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 4 of 4
(2,454 Views)