LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

IMAQ permissions

Hi,

 

So I've created an interface for a microscope to act as a camera, but everytime I go to save the file as a JPEG, it tells me I've not granted access to the program, only I don't know how to solve the issue.

 

Can anyone help?

Download All
0 Kudos
Message 1 of 3
(1,105 Views)

One of two things is happening:

- you are writing to a folder which you do not have write permissions for. Try a different folder/checking you have write permissions.

- The IMAQ reference is being closed before you actually write the file.

 

I suspect it is the latter. Remember data flow. A vi will execute when it has all of its inputs, if there are multiple VI's which have all of their inputs 'simultaneously' there is no guarantee in which order they will execute.

 

For your VI this means that there is a chance your close IMAQ refs vi will execute before the write JPEG.

 

Try wiring the error wire through the write JPEG VI. This will ensure it executes before the close IMAQ REF.

0 Kudos
Message 2 of 3
(1,082 Views)

@Niatross has, I think, identified the problem, namely poor Data Flow.  A couple of suggestions --

  • Almost never use a Frame Sequence.  [Note there will be times that they are necessary/useful to enforce Data Flow, but "wires" are almost always available and more mnemonic].
  • Use Inputs and Outputs (such as Error In/Error Out, Image In/Image Out) to aid in Data Flow.

Here is a cleaned-up Snippet to help you reorganize your code:

 

Daetoris.png

Bob Schor

 

 

 

0 Kudos
Message 3 of 3
(1,063 Views)