From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
05-17-2021 01:09 AM - edited 05-17-2021 01:10 AM
Can you read the code if I attach it to you like this?
05-17-2021 01:52 AM - edited 05-17-2021 01:52 AM
Hi Simon,
DON'T RUN ALL THOSE WHILE LOOPS IN PARALLEL!
You are using a device, which expects one command/request after the other. And that device also answers those request one after the other!
As has been suggested several times before you need to "serialize" your algorithm by sending one command, reading its response, then send the next command!
Why don't you follow our advice?
05-17-2021 05:06 AM
in reality I follow all the advices since the beginning, I try them one by one but none is a success. Again, your program looks good but the answers are still not in the right order and therefore the conversion buffer does not understand the information it is given.
05-17-2021 05:12 AM
this only seems to work if the numbers are floatting point numbers. What happens if the answers are strings?
05-17-2021 05:15 AM
How do your expected answers look? (didn't notice this posted in the thread, might have missed it)
If your expected answer is 19 Pa and you try to read it as a number, no wonder it shows 0.
05-17-2021 05:30 AM
Hi Simon,
@aerosimon wrote:
in reality I follow all the advices since the beginning, I try them one by one but none is a success. Again, your program looks good but the answers are still not in the right order and therefore the conversion buffer does not understand the information it is given.
You forgot to attach your VI (with the data shown in this image set as default values)!
Did I set the commands in the right order in my image above?
Are those response strings in your image the expected responses for the corresponding commands?
You make it very hard to give advice when we always have to beg you to attach your code (along with data)!
05-17-2021 05:31 AM
I expect different kind of answers for my different questions: TARESETUP=UP expects UP as answer, TARESETUP=OFF expects OFF, TARE expects : R XPa/s, XPa, XPa.
which represent in order: the readiness, the rate of change of pressure, the current pressure difference and the last previously recorded value.
There is therefore any type of response
05-17-2021 05:35 AM
What about TARESET?
Are the values in "Tableau" always in that same order or do they keep switching around?
05-17-2021 05:36 AM
the commands are in the right order, the answer strings are the expected ones, just not in the right order.
I'm sorry, I didn't see the need to do this as I had copied your program.
05-17-2021 05:38 AM
TARESET is waiting for X Pa.
The values in the array are never in the same order, sometimes they arrive in the right order but most of the time this is not the case, there is no sequence, it is totally random