06-02-2006 12:46 PM
Andy,
I have a question about digital line write, I know this is a LabVIEW DAQ function, but i'm having trouble finding it within the program. How exactly does it work? Does it send one line of boolean to the device you are working with or does it save this data on the computer then the device? For spreadsheet data would I need to use a loop so that it could read every line one at a time? Could I demo digitally writing and reading a spreadsheet file using these DAQ functions without the actual device hooked up? Especially when the spreadsheet is read back digitally and converted back into spreadsheet format? This is where all my confusion lies. Thanks alot!
Philip
06-02-2006 01:16 PM
Let's take this one step at a time. Why don't you post an example of a spreadsheet that you want to read with a little explanation of what the data in it represents. For example, you say that it contains hex data. If you have multiple columns, is each column a different port of digital I/O or something else? Are you trying to write to x number of pins on your device and then read x number of a different set of pins on your device? I would also strongly recomend that you save your Excel spreadsheet as a comma or tab separated text file. Reading a native Excel file can be done but it's much more comlicated and I don't think you need any more complication right now.
Digital I/O can write either a single pin at a time or multiple lines at once. There is usually no saving of data before the DAQ board is commanded to output. Have you looked at the shipping examples for digital I/O?
06-02-2006 01:25 PM
I can't find the shipping examples for digital I/O?? Yes I am writing/reading to specific pins. Two files are uploaded to the device, a data file and an instruction file. What is the difference between the ways to approach the digital write, comparing doing it line by line etc. An example spreadsheet file is attached, both data and insruction files would look similiar, usually having 2 columns and 256 rows. Thanks!!
Philip
06-02-2006 01:37 PM
06-02-2006 01:57 PM
As Dennis said, if you can give an example of a spreadsheet file (preferably in the "tab delimited" format suggested by and earlier post) and tell us what DAQ card you were planning on using it would help. In the versions of Measurement & Automation Explorer ("MAX") since about a year ago (using the DAQmx 7.5 or newer driver) there has been available the capability of telling MAX that you actually have the instrument installed and it could be configured to simulate it (to a point). So this would allow you to write and do a lot of the debugging of your program without actually having the DAQ card.
06-02-2006 02:20 PM
06-03-2006 11:46 AM - edited 06-03-2006 11:46 AM
Message Edited by pdb511 on 06-03-2006 12:15 PM
06-03-2006 12:35 PM
06-03-2006 08:12 PM
06-05-2006 12:56 PM
Hey Andy, do you have any idea how I would be able to accomplish the digital read/ write task I explained? That being, using the demo I posted but changing it so that it would be able to digitally read and write both columns in a two column spreadsheet?? Thanks!
Philip