From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
09-19-2019 05:46 PM
Hi all,
I am reading power values through a USB configured power sensor in Labview.
I tried the manufacture software (EXE stand alone), and it is working; which may indicate my connection is correct.
1) Please see my labview codes as attached file "codes.PNG".
2) However my labview codes has following error: error -1073807339 VISA Read.
3) The screen shot of device manual was also attached here "manual"
May I ask if someone can give me some tips to solve this issue?
Solved! Go to Solution.
09-19-2019 07:07 PM
09-19-2019 09:17 PM
Hi Emboar,
Thanks for your reply. I added the port configuration, but it was still not working. Please see the codes as attached file.
Thanks,
Elliot
09-19-2019 09:35 PM - edited 09-19-2019 09:36 PM
Does the instrument have a command which doesn't return any data?
For example, "reset device".
We should separate the trouble into two components,
one is writing problem, another is reading problem.
To make it clear, send "write only" command and observe the behavior.
If it work correctly, there is a reading problem.
09-20-2019 06:17 AM
What is the make and model of the instrument? Could you attach the entire manual or at least supply a link? I'm fairly certain you have a configuration wrong, but we have no clue what it should be due to a lack of information.
09-20-2019 09:54 AM
Hi Emboar,
Yes, there was "RESET" command. But there was also error message: 1073807246 "Property Node (arg 1) in VISA Configure Serial Port (Instr).vi->Untitled 4"
I tried separated writing and reading. There was no error displayed at writing but error showed at reading section. Also, I tried the NI MAX VISA test panel, the error also pops up at reading section (self-test.PNG):
Thanks,
Ellot
09-20-2019 09:59 AM
Hi crossrulz,
The device is OZ LSDH-VIS-C.
https://www.ozoptics.com/products/operating_instructions_manuals.html
Thanks for your help!
Elliot
09-20-2019 10:06 AM
@ElliotYY wrote:
Yes, there was "RESET" command. But there was also error message: 1073807246 "Property Node (arg 1) in VISA Configure Serial Port (Instr).vi->Untitled 4"
Help->Explain Error. Then you will see that error code -1073807246 means "VISA: (Hex 0xBFFF0072) The resource is valid, but VISA cannot currently access it." In other words, another application is still using that port. That could be MAX, Putty, any other terminal software you are using, the supplier's software, or you failed to close the port on a previous run.
09-20-2019 10:39 AM
Hi crossrulz,
Thank you for pointing out this. I closed the test panel from NI MAX. The reading error was still here (-1073807339). Still no idea how to fix the issue.
09-20-2019 01:32 PM
Try restarting the PC in case the port got hung.
-AK2DM