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.
Solved! Go to Solution.
Use palettes in file I/O to read the text file. See the vi attached. Hope this is what u r looking for...
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?
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!!
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. 🙂