LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data is not acquired because of an VISA error!!

Solved!
Go to solution

Hello, I got a problem data acquisition causing from VI property something. I attached my VI in case you wanna see my VI. When i tried to connect my assembled VI to the test bench, it didn't acquire data from it. The error was shown "Property Node (arg 1) in VISA Configure Serial Port (Instr).vi-".  It shouldn't cause from any ports or any computer systems because I already tested another Sub vi (Data_read (adapted), you can find it in my sub vi package) with the test bench and it ran properly. Any ideas? 

 

Thanks in advance

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

@Bombbooo wrote:

Hello, I got a problem data acquisition causing from VI property something. I attached my VI in case you wanna see my VI. When i tried to connect my assembled VI to the test bench, it didn't acquire data from it. The error was shown "Property Node (arg 1) in VISA Configure Serial Port (Instr).vi-".  It shouldn't cause from any ports or any computer systems because I already tested another Sub vi (Data_read (adapted), you can find it in my sub vi package) with the test bench and it ran properly. Any ideas? 

 

Thanks in advance


 

Unfortunately I have seen that error too many times ....

 

The part of the error message that says "arg 1" indicates the first thing passed to the property node caused the error. THe first thing passed in is the VISA resource name.

 

So check that the name you are using appears in MAX.

 

Ben

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 40
(3,311 Views)

I am pretty sure that the name was correct while i was testing my code with the test bench. I used this visa name with another Vi to test and it worked. 😞

0 Kudos
Message 3 of 40
(3,307 Views)

Is it about my code which isn't completely right in terms of any dataflows issues?

 

0 Kudos
Message 4 of 40
(3,306 Views)

The error is telling you the value that ws passed to the VISA function was wrong.

 

Put a probe on the data going to the VISA function to confirm the value is correct.

 

If you post images I can take a look but unless you are developing in LV 7.1 this machine will not let me look at your code.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 40
(3,299 Views)

Ok the first image is my main vi. You can see the sub vi (VIs connection) in the middle which appears in the second image. The second one looks a bit confusion because I tried to create inputs and outputs to connect in the main one. I tried a probe already, the dataflow is probably normal but there was an error popping up.

Download All
0 Kudos
Message 6 of 40
(3,296 Views)

Still sounds the same.

 

The error message indicates the VISA config declared the error and you should concentrate on the value passed to that function.

 

Put a probe on the wire between the control and the config and verify the spec is correct.

 

That other stuff happens afterwards and is just a distraction.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 7 of 40
(3,292 Views)

I put a probe on the error wire coming out from VISA serial. It said "not executed".

0 Kudos
Message 8 of 40
(3,283 Views)

If it was there before you started the program then your error is elsewhere.

 

is there another VISA config somehwere?

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 9 of 40
(3,278 Views)

No it was after starting the program. It's wierd because it said "not excecuted" but the error is shown up. This is the only place where the error pops up, output from VISA serial. It might not excecuted because I haven't plugged it to the test bench but the result was the same as I already did it

0 Kudos
Message 10 of 40
(3,275 Views)