09-16-2009 06:39 AM
Hi
DAQ vi to perform digital write and read measurements using 32 bits binary data saved in a file
Two main sections:
1) Perform write and read operations to and fro different spread sheet files, such that each file have a single row of 32bits different binary data (analogous to 1D array) where the left most bit is the MSB. I don’t want to manually enter the 32 bits binary data, I want the data written or read just by opening a file name saves with the intended data.
2) And by using test patterns implemented using the digital pattern generator or build digital data functions or otherwise, I need to ensure that the
binary data written to a spreadsheet file or any supported file type then through the NI-USB 6509 is same as the data read.
I’m aware I can’t use the simulated device to read data written to any port but if the write part of the vi works I ‘m sure the read part will work on the physical device which I’ll buy later.
My Plan of action
I’ve created a basic write/read file task and a write/read DAQ task for NI USB 6509 and both combine in a while loop to form a progress VI which I’m confuse of how to proceed with the implementation.
My greatest problem is to link both together with the correct functions or operators such that there are no syntax/execution errors and thus achieve my intended result.
This project is one of my many assignments for my master thesis, so please i’ll appreciate every help as I’m not really efficient with LabVIEW programming but I prefer it because is fun and interesting if I get to know it.
Currently I’m practicing with LabVIEW 8.6/NI DAQmx 8.8 Demo versions and NI USB 6509 simulated device.
Please see the attached file for my novice progress, thanks in advance for the support
Rgds
Paul
09-16-2009 02:41 PM - edited 09-16-2009 02:42 PM
What does your file look like? The DAQmx write is expecting a single U32 value, not an array of I64.