07-07-2006 01:09 PM
07-07-2006 02:12 PM
You just read the same shared variable 100 times within a few nanoseconds. Apparently, the variable gets modified less often on the other end.
@chendel wrote:
Am trying to save data that comes from ehternet ((random values (modbus protocol)) in an array.I am using an index array.....but all the values are the same!!
@chendel wrote:
How can I sort them??
If all array values are the same, they are already sorted. 😉
You need to rethink your code. maybe you can make the shared variable an array and write the entire random array on the other end, the read it out once.
07-07-2006 02:19 PM
Ohh ok. But the signal entered change constantly. That's why i am trying to save all those data.
By making the input an array, it gives me an error. That's why I can not continue.
07-10-2006 01:42 PM
Hello chendel,
When you are defining the properties for the shared variable make sure that you are defining the data type as "Array of double" or something similar for your application. Look at the attached screenshot for for information.
Regards,
Chetan K
Application Engineering
NI