Showing results for 
Search instead for 
Did you mean: 

read binary then output through 1 channel

Go to solution

Hi Every1,


New in labview programming. Need some help on my project.


Currently I have a txt file which contain something like this:


1 0 1 0

0 1 0 1

1 1 0 0

0 0 1 1


How do i read the text file and output to the USB- 6501 through 1 line digital output with a time interval of 1s.

The digital output from the line I shd get 1 0 1 0 0 1 0 1 1 1 0 0 0 0 1 1.


Any help is appreciated. Thanks.

0 Kudos
Message 1 of 9



Use palettes in file I/O to read the text file. See the vi attached. Hope this is what u r looking for...

LV 8.0, 8.6, 2011,2012,2013 WinXP
0 Kudos
Message 2 of 9

Hi Subbzz,


Thanks. I will go and take a look. what version is the vi? I am using version8.5.

0 Kudos
Message 3 of 9

Sorry, it was in 11.Check this its in 8 now..

LV 8.0, 8.6, 2011,2012,2013 WinXP
0 Kudos
Message 4 of 9

Hi Subbzz,


This VI is able to convert the data to a string. Thanks.


How can i output this string 1 bit by 1 bit with interval of maybe 1s to one of the output digital line in USB6501 through DAQ assistant?

0 Kudos
Message 5 of 9
Accepted by topic author Andylwk

Hi andy,


check the below vi.... in this the data in the string is converted into an array. You can use this array and index the element accordingly for your requirement...


let me know it worked or not!!


LV 8.0, 8.6, 2011,2012,2013 WinXP
Message 6 of 9

Hi Subbzz,


Follow your advice and use the indexing and it work out fine. Thanks for your help. 🙂

0 Kudos
Message 7 of 9

I don't understand why it has to be so complicated. Try this as a start (VI is LabVIEW 8.0):


LabVIEW Champion. It all comes together in GCentral GCentral
What does "Engineering Redefined" mean??
Download All
Message 8 of 9

Hi altenbach,


Thanks for your much simplified version. It works exactly the same as my previous version.


Still quite new in labview, not very sure of the function of some block. Thats y lead to such complicated version. 🙂

0 Kudos
Message 9 of 9