|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools |
Rating:
|
Display Modes |
|
#6
|
|||
|
|||
|
Re: Displaying Camera Image in C# Dashboard
The Dashboard Code from LabVIEW doesnt help at all
, ive read through the whole thing countless times, the PCVideoServer.cpp I have also read through that code,infact I am sitting right in front of it lol, that is why there is a if(readBytes > 1000) code, it makes sure I am not sending the header or imageSize as parameters to the MemoryStream, actually after much testing, i got the image to display at about .01 fps rofl, it updates the image irregularly and it is lagging BEYONG belief, here is my current code for that image processing:Code:
if (netStream.DataAvailable)
{
image.indicator.Text = "Data Available";
//image.videoStream.Image = Image.FromStream(netStream);
data = new byte[serverClient.ReceiveBufferSize];
//bytesRead = netStream.Read(data, 0, serverClient.ReceiveBufferSize);
bytesRead = client.Receive(data, 0, serverClient.ReceiveBufferSize, 0);
//tw.WriteLine(DateTime.Now + " " + bytesRead.ToString());
if (bytesRead > 1000)
{
try
{
MemoryStream ms = new MemoryStream(data);
image.videoStream.Image = Image.FromStream(ms, false, true);
}
catch (Exception ex)
{
tw.WriteLine(DateTime.Now + ex.ToString());
}
}
}
|
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Labview Dashboard not displaying camera. | GunfighterJ | NI LabVIEW | 1 | 02-02-2010 19:20 |
| Reinstall of dashboard doesn't fix camera image streaming | ellisk | Programming | 2 | 20-01-2010 08:04 |
| [Help Needed] Camera to Dashboard | basicxman | C/C++ | 1 | 19-01-2010 18:20 |
| Can we use the camera image on Dashboard this year? | Jon236 | Programming | 1 | 11-01-2010 12:52 |
| Only Camera works in Dashboard | keehun | Programming | 1 | 06-01-2009 07:22 |