LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

column

hi
 
I have a project, recording up to 8 channels temp to a Excel file, user can control each channel recording time interval, if that channel time interval is o, then that channel disable,
any idea how  this can be done?
 
thanks
0 Kudos
Message 1 of 9
(3,625 Views)
It would help if you provided a slightly better thread title. "column" is not a very good title for this thread, as it doesn't tell you anything. Smiley Wink

To your question: It depends on whether or not you are trying to control the actual acquisition, or you just want to always collect 8 channels and simply save specific channels. If you want to control the acquisition, then you simply have to change the list of channels to acquire in the step where you do the data acquisition configuration. If you want to always collect 8 channels, and select afterwards, then it depends on the rest of your code. Are you displaying a graph? In that case you would need to delete the individual waveforms from the array of waveforms. For the writing to Excel file: how are you doing this? Are you using a loop? If so, you can simply have a case structure in the loop which is controlled by your enable/disable for that particular channel.

Obviously, if you provide more details about your specific implementation and requirements, a more direct answer can be provided.
0 Kudos
Message 2 of 9
(3,610 Views)
thank you for help
 
here is my solution for  just use one time intervel to control whole 8 channels, for Excel, write into a .csv file
now I need to control each channel to allow user choose the time interval
0 Kudos
Message 3 of 9
(3,602 Views)
Unfortunately, that's just the project file. That file does not contain the actual VIs. You will need to upload "Main.vi".

Aside: You seem to have 2 menu files in the project for the same VI.
0 Kudos
Message 4 of 9
(3,597 Views)
sorry about that
0 Kudos
Message 5 of 9
(3,594 Views)

It is missing the TIn.vi.

Also, why do you have a Case Statement with a single case called Exit? which is the only selection in Menu Selection..

Do you actually want to write to a file that will be used by Microsoft Excel?  Because all your VI is doing at the moment is writing to a text file.

RayR

0 Kudos
Message 6 of 9
(3,571 Views)

Tln.vi just a user library file from Measurement Computing, text file a .csv file, it can open by Exce

0 Kudos
Message 7 of 9
(3,550 Views)

So, are you trying to work with Excel?  If so, then you need to use Active-X, not writing to a text file.

RayR

0 Kudos
Message 8 of 9
(3,534 Views)

Hi all,




The simplest way to write to a spreadsheet is to use the Write to Spreadsheet.vi that can be found in the Functions Palette in Programs<File I/O. The output file obtained can be opened using Excel. You can find an example using this function in labview\examples\comm\smtpex.llb. Open the Email with Data VI to see the example. I hope this helps in your application.




Ipshita C.
National Instruments
Applications Engineer
Message 9 of 9
(3,508 Views)