LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Instrunment: Works in "Highlight Execution" but doesn't work in a regular run

Solved!
Go to solution

First of all how can I copy paste LabView code to the forum? Do I simply ctrl + c and paste in the "Insert code" section? If so, I tried doing that and it didn't work, could it be because I am using an evaluation version?

 

Getting to the main point, I am taking averaging measurements from a multimeter. With the while loop measurement in its own snippet of code, it works but when I try putting it together with my original code I get this error:

 

Reference Not Found:  (xBFFC0012) Cannot retrieve user data for the given resource name as there was not data associated with the resource name.  Before you can read data, you need to write the user data using the Write Data action of this User Data VI. 

 

However, when I run it with "Highlight Execution" on, I don't get an error. Anyone know what might be the issue or how to resolve it?

 

Thanks,

William

Untitled.png

0 Kudos
Message 1 of 5
(2,678 Views)
You attach code with the ' Attach' button. Your code with the Find VISA Resources serves no person and I have no idea why it's there.
0 Kudos
Message 2 of 5
(2,674 Views)

How do I obtain the code from LabView?

 

The Find VISA Resources is used because there will be multiple instrument connected via GPIB. One might be a wireless test box, a power supply, or a multimeter. In this case the user will select the GPIB corresponding to a multimeter.

0 Kudos
Message 3 of 5
(2,637 Views)

Opps

Wrong explaination for the "Find VISA Resource," it is used to get all the GPIB addresses connected to the computer then display the corresponding instrument name.

 

The user will be selecting from a box that lists the GPIB addresses, thus the user can easily pick the right GPIB address by looking at the table generated.

0 Kudos
Message 4 of 5
(2,628 Views)
Solution
Accepted by topic author SeriousTyro

Hehe, now that I started working on it. I get the problem you were highlighting.

 

I changed my program by leaving the VISA Find Resource section as a stand alone section then made an event structure for the measurement part.

 

Smiley LOL

0 Kudos
Message 5 of 5
(2,618 Views)