02-03-2014 01:52 PM
I am having an issue with the session ID getting lost at random times. Sometimes it disappears right when entering the subvi, other times after a property node, this time shown in my attachment is during the 'Write' function. I am trying to talk RS485 to an ICP CON module (I-7063) via the Ethernet port and an Ethernet to RS485 converter module (ICP CON 7188E8D). This happens on my desktop PC using a USB 3.0 to Ethernet adapter and with an embedded PXIe controller connected directly to the ethernet port. Most times it runs as it is supposed to but if you wait long enough (about a minute of retires), it will fail at a random location. When it happens during the Write function, the Read function doesn't have a session to get data from so the code following will error. Any thoughts as to why this may be happening?
LV 2012 SP1
Windows7
02-04-2014 03:05 PM
Trouble,
When using VISA functions, it is typically all done in the same portion of code, the flow being the basic open >> configure >> read/write >> close functions all being in the same VI, whether it is a subVI or main. How are you programming this in your code?
02-04-2014 03:11 PM
In this particular case, the clear-buffer/write/read is in a subVI. The open/configure and close are just one level up.
02-05-2014 02:15 PM
Trouble,
That very well could be the issue, then. Is there any particular reason they can't be at the same level? For every single time you open the resource, you want to close it before attempting to access again (or have another routine attempt to access).
02-05-2014 02:36 PM
02-05-2014 11:58 PM
02-06-2014 06:52 AM
Nope, no variables in this application, everything is wired.
02-06-2014 10:49 AM