LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to write a spreadsheet file from daq?( data obtained is a analog signal of 5v from a high speed camera )

I'm new to labview, want to know how to generate a spreadsheet from daq. the input to the daq is a multi channel of 5v from a high speed camera. I am able to define the properties of the daq but clueless on how to generate the spreadsheet and define the arrays. The program has a VI to trigger the camera i want to get the output from the camera as it triggers and generate a spreadsheetfile.  Also do i need to create a separate VI only for generating the spreadsheet.

0 Kudos
Message 1 of 4
(2,953 Views)

Hello vdavies,

 

You do not have to create a separate VI to generate the spreadsheet. Below is a link with an example of how to write continuous data to a spreadsheet.

 

Getting Started: Write Continuous Data to Spreadsheet (CSV) with Headers

https://decibel.ni.com/content/docs/DOC-7332

 

Hope this helps!

 

Luke

 

Applications Engineer

National Instruments

Wear
National Instruments
Product Support Engineer
Message 2 of 4
(2,930 Views)

Hey wearwolf,

Thanks for your response, but this does not apply to what i need, in the vi that i have attached you can see that there is a vi for triggering the camera (camera circuit). Now, as soon as the camera is triggered i want to get data from the camera. there is a vi for triggereing the camera all i need to do is add another vi to read the camera output and write it to a spreadsheet file. the camera output is given to the daq hence need to wire the circuit from the daq assistant and write it to a spreadsheet. I'm unable to convert it into a 1d array and if possible can you give me an example like the previous one.

0 Kudos
Message 3 of 4
(2,916 Views)

Are you trying to read the camera data in through your DAQ device?  How are you going to use it once you get into a spreadsheet?  I'm just wondering about the big picture.

 

As for the triggering, your code will accomplish this, but with software latency in the loop.  To do it in hardware time (depending on your device, of course), you can set up so that it is implemented on the device.  This first tutorial shows how to use a simple trigger on one line, which may or may not be new to you.  But the second link is an example which can configure a device to begin the read on one line immediately after another line triggers.  Your code may execute smoother if you do it this way.

http://www.ni.com/academic/students/learnlabview/triggering.htm

https://decibel.ni.com/content/docs/DOC-7953

 

 

Message 4 of 4
(2,900 Views)