06-03-2014 01:07 PM
I am using a NI USB 5132 and NIScope ver 3.8 and am having some issues with errors. The errors don't show up every time but the code I am getting says:
niScope Configure Vertical.vi
3<ERR>The
session handle is
I am not sure where to start with this but will attach the basic setup that was given to me. This is my first time working with niScope and not sure what is allowed with certain oscilloscopes and the correct procedure. I think I am not closing stuff up correctly but not sure the order. I run this routine twice in a row in order to get 2 seperate signals (I use a DAQ to toggle between 2 sets of oscilloscope probes). I was handed this code which worked on an older version of LabVIEW and with a PCI 5120 Scope but this isn't compatible with the current software and hardware that I had to upgrade to. Any help is appreciated!
06-03-2014 01:12 PM
The session handle is not valid. Sounds like you are trying to use the session after it got closed.
06-03-2014 01:31 PM
Can you elaborate? I am not seeing where the session gets closed in the code...
06-03-2014 01:36 PM
Did my vi not post? I added it as an attachment and I don't see it.....
06-03-2014 01:43 PM
Try zipping it first then uploading it.
06-03-2014 01:47 PM
Let's see if this works....
06-03-2014 01:48 PM
I tried the zip file but everytime I click on Add Attachment, the computer pops up to the top of the screen.... not sure where I am going wrong, is there settings on Internet Explorer I need to add or disable?
06-03-2014 02:58 PM - edited 06-03-2014 02:59 PM
Try Ctrl+A from the Block Diagram then Edit>>Create Snippet from Selection. Save the PNG it creates and insert the png inline with your post using the tree icon in the editor menu. We will be able to drag-n-drop your code to a block diagram and get the code that way.
The website should be fixed soon
06-03-2014 03:00 PM
Jeff is an optimist: "The website should be fixed soon"
Lynn
06-03-2014 03:21 PM
@johnsold wrote:
Jeff is an optimist: "The website should be fixed soon"
Lynn
According to Prophecy. My personal opinion is that the web site should not be broken.