05-18-2007 10:00 AM
05-18-2007 10:14 AM
What is the data type that you have wired to the Write LabVIEW Measurement File? Scalar, 1D array, 2D array? How are you getting multiple channels? Does this Uinversal Library (whatever that is), have a single function where you specify multiple channels or are you using a function twice? Write to LabVIEW Measurement File will write as many channels as you want but the data has to formatted correctly. The Build Array function will take two separate 1D arrays and create a 2D array if that is what you are missing.
A majority of these questions could be avoided if you would post an image of the block diagram or the code itself. Just click the 'Browse' button below the message body (next to the Attachment box) and point to the VI or image (.png or jpg) you want to attach.
05-18-2007 10:46 AM
Thanks Dennis... I'm sorry I'm not very familiar with the Universal Library functions myself (they are a lot less straightforward). And my LabView skills themselves are not expert.
Regardless, I have attached one of my files. If you could point out some obvious errors if you see any I would really appreciate it. I know it's not perfect.
In response to some of your questions I basically copied all of the functions from the first channel for the second channel and wired it all to one Write LVM file. I am trying to wire two 2D arrays to the write file, which I guess is not possible. But if there is some way to convert these arrays, maybe what I'm trying to do would be possible.
05-18-2007 12:14 PM
05-18-2007 01:26 PM
Hi Dennis,
I appreciate your help. I'm sorry if my file was frusterating and messy. The reason why I was converting the 1D array into a 2D one is because this was part of a sample VI that I used, but I've tried the modified file without converting into a 2D array, and I still get the same problem.
Initially I had my set-up similar to what you sent, but thought that maybe the reason why I wasn't able to control both channels at one time was due to the fact that they appear in the same loop. I guess this was a wrong assumption.
When I try to run the modified file I get prompted twice to save it, followed by an execution of only one channel. An error message appears in the other channel that a "Background Operation is already in progress". Perhaps I need a similar T/F Boolean function like what appears for the 1st channel in order to properly stop the background operation that is already in progress?
Please let me know if I can do anything to clarify what I mean further.
Thanks again
05-18-2007 06:09 PM
05-22-2007 08:33 AM
Hi,
Yes I am using a Measurement Computing PC-CARD. I want to continuously sample my data, so I'm making use of the Xaincnbg. I'm not sure what the benefit of a sequence structure is in my case (other than making it much more organized). Are you suggesting that the steps to follow correspond to separate frames in a stacked sequence? How would I go about reading all of my analog input channels (I have three in total) into one 2D array? Also, how would I use one while loop throughout different frames in a sequence?
I appreciate your help and your response.
Jenna
05-22-2007 05:47 PM
05-22-2007 06:08 PM - edited 05-22-2007 06:08 PM
Message Edited by LabViewGuruWannabe on 05-22-2007 06:15 PM
05-22-2007 06:33 PM
B-)