01-26-2018 08:27 AM
I'm trying to continuously run the program which will alter the voltage on the TTi PL303-P bu i get this error every time, if i click continue when the error pops up the program runs and it changes the voltage. Is there anyway to get rid of this error so it can work seamlessly?
Solved! Go to Solution.
01-26-2018 09:18 AM
Apparently, you try to configure something, which can't be configured on your RS232-device.
Try this:
configSerial > right click > replace with subViContent > clean up > first dont configure anything and configure step by step more and more attributes until it fails.
01-26-2018 09:41 AM
Start by rearchitecting your code. DO NOT USE THE CONTIUOUS RUN!!! That is for debug purposes, not for running your code. Use a loop with an Event Structure so you can react to value changes and control your supply that way. Initialize your port before this loop and close it when you stop the loop.
It looks like your device uses the termination character, so you can actually get rid of those waits. Just tell the VISA Read to read more bytes than you ever expect. The read will stop when the termination character (defaults to a Line Feed) is read.
01-26-2018 09:48 AM
Could you explain what you mean in a bit more detail in relation to the event structure and initializing the port, i haven't got a lot of knowledge in LabVIEW.
01-26-2018 10:37 AM
And with that, I am just going to point you to some training: