LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

using labJack for reading the ccd sensor values

Solved!
Go to solution
My application demands me to read the value from a ccd sensor and displaying an image in the PC.I am using a ccd signal processor for digitizing the signal.I am also using a spartan-3 FPGA. I am using a labJack u3 as the usb interface. I am feeding the digital signal through FPGA to labJACK via the flexible I/os. How should I go about reading the values in the USB and mapping them to form a jpg image?
Message 1 of 5
(5,701 Views)
The following topic on our forum discusses getting the data into LabVIEW:
 
 
I think the point of this topic is discussing, from there, how to take that data and make a JPEG image.
0 Kudos
Message 2 of 5
(5,696 Views)
 

Hello muks,

LabJackSupport came to the rescue on how to use LabJack with LabVIEW. Let's see if we can't find a way to get your data into JPEG form.

In LabVIEW Full and Professional Development Systems, we have a palette specifically geared to handle graphics and sounds. Within this palette there are several read and write VIs which correspond to several common graphics formats: JPEG, PNG, BMP. You can get to these VIs by the path below. I would recommend the 'Write JPEG file' VI for your application. You can find out how to use this VI by using the context and detailed help in LabVIEW.

Right click on block diagram to open the functions palette >> Graphics & Sound >> Graphics Formats

Another option involves our Vision and Motion VIs that come with the NI Vision Development Module.

Hope this helps!

Regards and happy holidays,

Chris Behnke
Sr. RF Engineer
High Frequency Measurements
Message 3 of 5
(5,590 Views)
Solution
Accepted by topic author muks

Hello chris,

                  Thanx  a lot for your concern. After lot of struugle i have managed to get the data in to the pc using SPI.After that it is our home ground with labVIEW and so no probs in converting into whatrever format is required.but the problem is time taken is approximately 40 seconds. any help in trying to reduce the time will be of great help(great is an understatement).

 

Also from labjack i am getting a set of 50 data. i want to add this data dynamically so that i get 255000 data in a single array.HELP!!!

0 Kudos
Message 4 of 5
(5,059 Views)
"Also from labjack i am getting a set of 50 data. i want to add this data dynamically so that i get 255000 data in a single array."
 
 
I would go through LabVIEW Help for arrays and loops.  The example we sent has a while loop that reads 50 bytes of data per loop and returns them in a 1D U8 array.  One option is to add shift registers to the loop, and then use the build-array node to keep adding the new data to a larger array.  Another option is to wire the 1D array to the edge of the loop and enable indexing.
Message 5 of 5
(5,047 Views)