11-02-2006 05:51 AM
11-02-2006 06:11 AM
Hey Bruce,
What version of LV do you have?
The vi you have created isn't going to give you the desired results. You are currently only aquiring images from a single camera and you need to aquire from both and THEN combine the images (you are only combining the first images together (both unpopulated) which won't do as you need)
Here is a piece of code that I tried a few months ago to do just as you wish.
Try this out.. see what you get.
(p.s you might want to look up how to set up 2 cameras in MAX.. you need to make sure you have enough firewire bandwidth to aquire on both cameras at once)
AdamB
11-02-2006 06:14 AM
11-02-2006 06:29 PM
Hi Bruce,
Did you have any luck with that code?
Thanx
AdamB
11-03-2006 03:49 AM
Hi Adam,
Sorry i didn't get back to you yesterday i was in meetings all afternoon. I slightly modified the vi that you sent, to work with 2 x 8-bit grayscale cameras and it worked pretty well, although the results did seem quite a lot slower than when i was running 2 cameras simultaneously without combining them? I also noticed that on the front panel, underneath the screens it mentioned something about "1/2 8-bit" or something like that. I guessing that the "1/2" is something to do with the reduced speed?
There were a few things going on in your code that i'm not really sure about, but let me have a more thorough investigation of it today.
Thanks very much for your help though, i would be in trouble without it! I'll let you know how i get on later today.
Bruce
11-03-2006 09:39 AM
Hi AdamB,
I've had a shot at building a new code based heavily on the code that you sent me, as attached, but it doesn't run and comes up with 'Error 1074364379' camera already in use.
On the front panel, the one camera which is displayed has '1/1 8-bit image' appearing underneath it......suggesting that it's not realised that there are actually 2 cameras being used '1/2 8-bit image' as yours did.
Don't know if this is important but, in MAX the cameras both have the following settings:
Video Moe: 640x480 Y (mono 😎 15.00fps
Timeout: 5000ms
Speed: 200Mb
You'll also notice that i didn't use a timed loop as you did, mainly because i wouldn't really know what i was doing with one!! Could this be the source of my problem?
Thanks again.
Bruce
11-03-2006 09:46 AM - edited 11-03-2006 09:46 AM
Message Edited by AdamB on 11-03-2006 09:56 AM
11-03-2006 10:03 AM
Hi Adam,
Thought it might be some schoolboy error like that! I made the changes and it works perfectly.
Thanks again, that was a huge help.
Have a good weekend.
Bruce
11-07-2006 08:36 AM
Hi AdamB,
I wondered if you might be able to advise me on my options for compressing my .avi files to a more managable size. The application i want to use this code for will invovle recording an activity that will take up to 60 minutes. I will then likely have to spend many hours trawling through these, stopping, rewinding, fast-forwarding, etc.
I have experimented with a couple of the compression filters: 'MJPEG Compressor' doesn't seem to reduce the file size by much, although 'Indeo video 5.10 Compressor' does seem to be very effective. The problem with that is when I play the file in media player, as well as reducing the file size it has also compressed 1 minutes worth of footage in to about 15 secs. Does this mean i need to do something to decompress the file before i view it?
I have my cameras set to 15 fps, and in 'IMAQ AVI Create' i have made sure that it creates at 15 fps, reduced the 'max data' down to 5000 and the 'quality' always seems to default to -1, even when i'm not using a filter. I can reduce the cameras to 7.5 fps in MAX, but for some reason the input to the 'IMAQ AVI Create' doesn't like me using a non-integer.
Could you please advise me: What are my options for reducing the file size, in a way that will not cause too much hassle when i want to sit and analyse the recordings?
Best regards,
Bruce
11-07-2006 10:40 AM
Now answered on this forum:
http://forums.ni.com/ni/board/message?board.id=200&message.id=11712
______________________________________________________________________________________