LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

My program scans up to 16 input channels (as selected by the user) and then processes this data accordingly. How do I use property nodes to define each of these channels?

Thanks so much Mark!
Those are great suggestions, which I would not have known to do on my own. I really appreciate you helping me on this. If you don't mind, I still have a question about writing to file. I would like a file for each channel to be created when the first data point is written (giving the user a chance to name the file) and then all ensuing datapoints for that channel will be written to that file. I modified your VI so that a case structure was created with a case for each channel, similar to the case structures that you created for the x-axis scale, etc. When I begin to run the program, a Save File As box pops up. When I try to save the data the error, "Error1 occur
ed at open file: Possible Reasons: LabVIEW: an input parameter is invalid." Do you know why this error might be occurring? All parts of the VI are wired correctly so the reason for the error is not obvious to me.
Thanks again for your help!
Best, Emily
PS I have attached the VI with my changes to it.
0 Kudos
Message 11 of 14
(573 Views)
Emily,

This is because the drive name and directory are not included in the filename when data is being written. I'm in the process of fixing that, but I have to go...so I'll post the VI tomorrow morning. Sorry.

Mark
0 Kudos
Message 12 of 14
(573 Views)
I think this is more what you need. It's basically the same as the original as far as creating the filename; on the first iteration of the big while loop, it'll ask for a path and filename, with a suggested filename. The user can pick the path and filename, and that gets put in an array. The user does this for every channel that was selected, and these are put in the array as well.

On subsequent iterations of the big for loop, the array is parsed to get the appropriate filename to open, so the user doesn't have to set the filename again. I believe this is what you want.

Mark
0 Kudos
Message 13 of 14
(573 Views)
THANK YOU! I really appreciate all of your help!
Best, Emily
0 Kudos
Message 14 of 14
(573 Views)