05-09-2018 11:27 PM
Hi,
I am getting VISA read error in LabVIEW when i try to read data using scope. I have two requirements as mentioned below,
1. Measure the Turn on time off the LRU output when the input 28V is applied to it. I connected 28V input to CH1 of scope and LRU output to CH2 of scope to measure the turn on time. this is working fine as expected.
2.The another requirement is to measure the Turn OFF time of the LRU output when the input is removed from it. i connected 28V input to CH1 of scope and LRU output to CH2 of scope. i am getting the following error in labview :-1073807339 VISA Read in SCOPE ReadCalc_7024440.vi->a_meas_cross_7024440.vi->Turnoff.vi.
i attached snap of NISpy (NiSpy.PNG) and Vi i used for Scope read (SCOPE READ.png).
Can anyone please help to resolve the issue?
Thanks,
Kalpana
05-10-2018 11:37 PM
Hi,
anyone can help on this? i got stuck at this from past 3 days.
Thanks,
Kalpana
05-11-2018 01:36 AM - edited 05-11-2018 01:37 AM
Hi kalpana,
which "scope" are you using?
Which LabVIEW version are you using? (Why are there green VISA references and what is this "E F G" string conversion function?)
2. You get a timeout error. This maybe is related to the VISAClose operation visible in your NISpy screenshot…
Is the timeout setting sufficient for the intended read operation?
i got stuck at this from past 3 days.
Your request is written yesterday: Please give us some time to answer your questions.
(And keep in mind the national holiday in several countries yesterday, with lots of people going on vacation today.)
05-11-2018 01:50 AM - edited 05-11-2018 02:11 AM
Hi,
I am using Tektronix scope model name TVS621/621A, and LabVIEW 5.1 version. This is very old code written by some one and was working fine so far without any issue. suddenly we are seeing this issue from last 3 days.
Also can you please let me know how to configure VISA timeout in labVIEW 5.1. i created VISA property node but i am not seeing timeout option in the dropdown menu when i right click on VISA property node.
Thanks,
Kalpana
Thanks,
Kalpana
05-11-2018 02:10 AM - edited 05-11-2018 02:13 AM
Hi kalpana,
LabVIEW 5.1 version.
Long time ago. Had forgotten how VISA looked like in these days…
Which OS is this running on?
Are you expecting 18 years old code running in a 20 year old LabVIEW version to run flawless on modern computers forever?
This is very old code written by some one and was working fine so far without any issue.
Can you ask that "some one" ("tgw" from the block diagram comments?)?
suddenly we are seeing this issue from last 3 days.
What has changed 3 days ago?
05-11-2018 02:15 AM
Long time ago. Had forgotten how VISA looked like in these days…
Which OS is this running on?
This is running on Win XP PC. i know it is not even supported by vendor now. since all the factory stations are developed long time ago, still we are proceeding with this.
Can you ask that "some one"?
He has left the company now
What has changed 3 days ago?
Nothing has been changed in these 3 days. the same scope is being used for some other test to measure the time, where it is working fine.
Thanks,
Kalpana
05-11-2018 02:19 AM
Hi kalpana,
He has left the company now
When he left "now" you surely got a phone number to call…
the same scope is being used for some other test to measure the time, where it is working fine.
So is the problem with the scope, with the computer running your VI - or with the VI itself?
Have you tried to (ex)change any of these 3 items to find the root of your problem?
05-11-2018 04:09 AM
Issue is with VI only. Scope is working fine as it is used for other testing as well. i have increased the delay between Write and read to 5000 ms. it is not throwing error now, but i am reading negative time value in scope.
05-11-2018 05:39 AM
Hi Kalpana,
increasing the delay between Write and Read is just "manipulating the symptoms", but not "solving the problem". Infact using a delay between Write and Read is just a "workaround", which should be replaced by proper TermChar usage (or implementing a protocol as used by your device)!
but i am reading negative time value in scope.
Either the scope reports this value as it is (which may a problem of the scope) or you convert that value in a wrong way (which may be your problem)…