04-08-2013 09:51 AM
Hello,
bad news. I had hoped that we were rid of this error but now is appears when we run it "for real" ; That means that the real data are fed to labview (coming from a PLC) and there it is again : error 91 , data type of variant not compatible etc... (look at probes 1 2 3) What's wrong this time??? We are approaching desperation... 😉
Thanks for help.
04-08-2013 10:01 AM
That variant is actually showing a boolean. Why are you getting two different results?
04-08-2013 10:24 AM
Honestly speaking I don't have a single clue why this is so. If we don't connect the "0" to the "type input" we get the error too (even before we run it with the real data).
04-08-2013 03:46 PM
Hello pgo1,
Are you using the same code and are you refering to the same OPC server or is it also physically a different OPC Server?
04-09-2013 12:35 AM
Hello Thierry,
it has always been the same OPC server indeed.
I will try a few things this morning and let you know.
04-09-2013 03:43 AM
Here are screen captures of what we have tried this morning. I had hoped that one of those would have worked...but nada.
It is really strange that when you look at the probe values you see that the conversion is actually performed so why is it bugging with that error then??
04-09-2013 03:44 AM
here are the rest of the screen captures
04-09-2013 03:45 AM
and the last screen capture (one can only send 3 at a time apparently)
04-09-2013 08:21 AM - edited 04-09-2013 08:22 AM
That is strange that the raw data type keeps changing on you (between Boolean and Number). Give this snippet a try. I try to convert as a boolean. If that fails, I convert as a numeric and compare to 0.
Also, for future reference, you can zip up all of your files and post the zip file (assuming it isn't too large).
04-10-2013 07:38 AM
Hello,
The raw data did change because we changed the source input (at the last capture). Although both are mentionned as boolean when you look at them from the OPC server quick client window (another strange thing). Are you familiar with this OPC quick client window? Why does Labview see something different than what is mentionned there?