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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI works properly every other time


@crossrulz wrote:

mikeporter wrote:

PS: Just had a thought, does the fact that I can remember when HP made rack and stack instrumentation make me old?  Smiley Frustrated


You mean before they were bought out by Agilent and then spun off into Keysight Technologies?  Oh, the spin off isn't completely official yet.  Well, give it a few months.  But, yes, that does make you old.


***Sigh*** That's what I was afraid of...

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 11 of 17
(492 Views)

Hey I'm not that old and I have had HP rack-mount hardware. I later purchased replacement Agilent versions. I have been getting away from them though in favor of other vendors.

 

There is an older version of this software that uses hard coded values and an older non-visa driver that works almost every time it runs. That version might have a 10% failure rate. I'll give RTSLVU's version a try, but is there a way to take the old version from the production machine and put it on my development machine? This would give me more evidence in whether it is my VI or the driver.

 

Thanks,

Eric

0 Kudos
Message 12 of 17
(468 Views)

An update. It turns out that the VI which controlled the output relay on the load was the problem. This was in the driver package and even I could see that it was overly complicated. What would happen is they would store the state of the output relay in a boolean on the front panel and rely exclusively on this boolean to be correct before sending commands to the load. So if this boolean got out of sync with the actual relay nothing would happen. The driver did no error checking to confirm with the load that it was in fact in sync. There is no harm in sending the command to the load repeatedly (unless that communication is getting in the way of more important communication) so I cleaned out all the code that had the driver decide if it should write out or not. Now it simply does what I ask when I ask. Since the trouble was with the driver I have not posted updated code. I have created a state machine version fo this code that seems to be working too. Thank you all for the help.

 

Regards,

Eric

0 Kudos
Message 13 of 17
(459 Views)

@mikeporter wrote:

<snip>

 

PS: Just had a thought, does the fact that I can remember when HP made rack and stack instrumentation make me old?  Smiley Frustrated



I hope not.  I can remember when trace memory was a grease pen and taking a screenshot of a scope trace involved a hood and a Poloroid camera!

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 14 of 17
(455 Views)

@crossrulz wrote:

mikeporter wrote:

PS: Just had a thought, does the fact that I can remember when HP made rack and stack instrumentation make me old?  Smiley Frustrated


You mean before they were bought out by Agilent and then spun off into Keysight Technologies?  Oh, the spin off isn't completely official yet.  Well, give it a few months.  But, yes, that does make you old.


I think HP split in two.  Then Agilent bought Varian, which was pretty much the grandfather of all things RF.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 15 of 17
(452 Views)

Oh yeah, I can also remember a time when a frequency generator had an analog pointer and you had to use a frequency counter to dial in the correct frequency.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 16 of 17
(450 Views)

@EMorrison wrote:

An update. It turns out that the VI which controlled the output relay on the load was the problem. This was in the driver package and even I could see that it was overly complicated. What would happen is they would store the state of the output relay in a boolean on the front panel and rely exclusively on this boolean to be correct before sending commands to the load. So if this boolean got out of sync with the actual relay nothing would happen. The driver did no error checking to confirm with the load that it was in fact in sync. There is no harm in sending the command to the load repeatedly (unless that communication is getting in the way of more important communication) so I cleaned out all the code that had the driver decide if it should write out or not. Now it simply does what I ask when I ask. Since the trouble was with the driver I have not posted updated code. I have created a state machine version fo this code that seems to be working too. Thank you all for the help.

 

Regards,

Eric



Actually, believe it or not that what you are seeing might be an implementation of an approach to driver design that HP was pushing called "Instrument State" programming. The idea was to save on bus transfers by having the application software remember what state the instrument was in so it only had to send the values that changed. It worked fine -- except for that whole synchronization thing... On most instruments, the front panels don't automatically lock when they are being controlled by GPIB (and still don't - hint, hint) so an operator could walk up at anytime and change the instrument settings to something the driver wasn't expecting.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 17 of 17
(446 Views)