LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Running USB-6501 from Excel worksheet

Made  classic mistake - assuming people knowledgeable in Labview would be available to do a "trivial" Labview programming task would be available - they ain't! Have an NI USB-6501 digital I/O module. Want to control the 6501 from an Excel worksheet (presumably running under Labview) comprised of 2 columns up to 16K (or possibly 64K) deep:  

A) column which contains 8 bit, base 10 numbers ie, 0-255

B) a column which contains a sequence of ascending times in seconds in an xxxx.xxx format.

For example, the 1st 2 rows might be:

13 0.145

223 0.354

I require that when a SW clock has indicated that elapsed time since the program began executing is >= col. B, from row n, the number in row n, col A is output to the NI module.

Thus once 0.145 secs have elapsed, 13 will be output.

When 0.354 sec have elapsed, 223 with be output.

Timing, and timing accuracy, is not an issue; whatever the minimum increment turns out to be between updates will be acceptable. I will be turning off all but the most urgent Windows background tasks.

There will be very minor additional features: a means to pause the program, and a means to stop it.

Whatever help anybody can provide, great! I can still get Labview folks to help, but only if it really is a quickie for them - and none have any immediate ideas about how to do this.

Thanks.

0 Kudos
Message 1 of 2
(2,617 Views)
Here's something quick that should get you started. I used the Read From Spreadsheet file function which would require you to save your Excel file in a tab separated text file.
0 Kudos
Message 2 of 2
(2,608 Views)