06-17-2007 09:47 AM
06-17-2007 10:57 AM
06-17-2007 11:13 AM
06-17-2007 01:07 PM - edited 06-17-2007 01:07 PM
I assume that you mean the digital outputs of an NI DAQ board. What you want to do is pretty simple. One place to start is with the shipping examples. One for digital output is called Write Digital Channel. You can replace the while loop with a for loop and move the Data to Write Boolean array to outside the loop. You can then make the 1D Boolean array a 2D array. With each iteration of the loop, the DAQmx Write will send the pattern you specify. The Boolean array can be edited for the patterns you want and then you can use Edit>Make Current Values Default and save the VI. Or, on the diagram, you can right click on the indicator and select Change to Constant. Your diagram would look something like the one below.
I'm not sure what you mean by controlling how many pieces of data to write to a file. Where is the data coming from and what functions are you using to write? Attaching any code you've written will help someone understand the issue.
You might also want to look at the Learning LabVIEW resources available at http://www.ni.com/academic/lv_training/how_learn_lv.htm. Your first question indicates that you need an introduction to some of the basics
Message Edited by Dennis Knutson on 06-17-2007 12:08 PM
Message Edited by Dennis Knutson on 06-17-2007 12:09 PM
06-18-2007 10:25 AM
06-18-2007 10:34 AM
06-18-2007 12:29 PM
06-18-2007 12:51 PM
06-18-2007 01:56 PM
It is not correct to say that you cannot control the digital lines automatically. I don't have a USB-6008 but I don't see any reason why you can't use the example I posted. It is setup for on-demand digital output which is all that your device is capable of. You don't have very precise timing of the output but you can certainly specify a series of patterns. There would be very little sense to have a programming language such as LabVIEW if you had to manually do very basic tasks like you describe.
You don't modify or setup the Write to LabVIEW Measurement file. You modify the data that you pass to it. You don't mention what is acquiring the data, or how how it's being acquired, the data type being acquired, and you didn't post any code. There are several ways to get a subset of data. One is called Array Subset. The other obvious question is that if you don't want 1000's of pieces of data, why are you aquiring that much in the first place instead of just 32.
06-18-2007 02:48 PM