LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

autoload imaqdx

Solved!
Go to solution

G'day all,


The setup:
Labview 8.6
IMAQdx (with GigE camera)
Site Licence (unmanaged)
1 NIC
Network requires static IP, GigE requires dynamic  (Currently use batch files to swap between these however it's not a rapid process).


The issue:

I'm currently using IMAQdx in a labview program.
When the program runs it does the usual create image, create session, open camera, set-up camera, start acquisition routine.
The issue is that it doesn't actually load the IMAQdx section of labview until it's needed (of course).
As I only have one network card, I need to swap back and forth between the site network and the camera.
This means that the IMAQdx software always fails to find the licence server (as it's not connected to the network), and so continues with its evaluation timer countdown.
Trying to use it before I disconnect doesn't help as it complains about not having a camera (as it should).
Currently I load labview at system start up to let it know that it is registered, but this doesn't seem to go across to IMAQdx.

 
The question:
Is there any way to either;
a) Load IMAQdx at system start up (when it's still connected to the network), and thus let it recognise that it is actually licensed.
or b) Get labview to load it in a program without it complaining about not having a camera, while it's still connected to the network.
or c) Some other nifty way of getting IMAQdx to pick up the site licence (that doesn't require multiple quick disconnects and reconnects [due to the batch files, this would take ages])

Getting a second network card is not really an option at this stage.
 
Thanks in advance.

0 Kudos
Message 1 of 9
(4,908 Views)

Hi Mr Rhino

 

Since the two "simple" solutions (second NIC and disconnected License) are out couldn't you writing a simple IMAQdx VI and run while you are still connected to the server? Something like this:

 

Otherwise your best bet would probably be to check if your agreement allows you to convert one of your VLA licenses to a single seat license. Contact you local NI support.

 

Best Regards

 

David

NISW

Message Edited by Davidek on 08-05-2009 04:37 AM
0 Kudos
Message 2 of 9
(4,884 Views)

Yep that did it. Thanks.

I used enumerate cameras instead of find ethernet cameras though.

Feed the error into a while loop to run before the rest of the program so I can just click a button to continue once I have changed the network settings etc.

0 Kudos
Message 3 of 9
(4,858 Views)

After testing for a while, it would seem that the chosen method is flakey.

It'll go through the "find ethernet cameras" and chuck error -1074360293.

Then proceed fine through various loops which don't involve IMAQdx.

It reaches the stage of the open camera VI, which is where it then opens up the splash screen and licence page (of course as I've disconnected from the network by this stage it can't find the server, if I didn't disconnect it wouldn't be able to even try and open it).

 

[suggested blocks]->[setup blocks]->[Open camera etc]

 

Looks like I'll have to get the second NIC.

0 Kudos
Message 4 of 9
(4,824 Views)
Solution
Accepted by topic author Hornless.Rhino

Getting a second NIC or a stand alone license were always the best ways, sorry the workaround wasn't consistent

 

Best Regards

David

0 Kudos
Message 5 of 9
(4,812 Views)

Just an errant thought that hit me. Would it be possible to hook up your camera to the network and connect to it that way instead of directly to your computer? This depends on your network setup, the bandwith you need for your application etc, but I know we've connected and used cameras that way before.

 

Best regards

David

0 Kudos
Message 6 of 9
(4,811 Views)

Well the second NIC (National Instruments GigE adapter) has been installed.

Working well. Now to speed up pattern match 2 🙂

 

Thanks all.

0 Kudos
Message 7 of 9
(4,789 Views)

sorry the workaround wasn't consistent

It's all good. It was only going to be a stop gap measure anyway, it's just that part of the final setup was necessitated a bit earlier than intended.

0 Kudos
Message 8 of 9
(4,787 Views)

Glad it worked out for you!

 

Take care

 

David

0 Kudos
Message 9 of 9
(4,771 Views)