01-02-2012 07:33 AM
hello everybody, i am doing a program to comunicate two pc,s running labview in both of them...
i am reading information for on csv file every 32ms, and every 1001ms i am sending the readen info to the other pc...
when i do it, there is no error but there is one thing that is wrong. when my program is sending the info don't read the information, so i read every 32ms and when ids the moment to send the information i have a delay of 15ms aprox. and my problem is that i can not lose or waste this time...
can somebody help me please??
i also put my program if you like to see it!!!
thank you!!!
happy 2012!
01-02-2012 07:48 AM
Hi alan,
- it's quite challenging to read a file every 32ms again...
- you have timeouts in the queue functions, thus there will always be some kind of "lost time" in the queue reading loop!
- you (possibly) have delays in the datasocket functions
- Windows will hurt your realtime experience
Due to all those reasons you will not have a "synchronuous" operation as desired!
01-02-2012 07:53 AM
and can i do it in other way to work better? no losing time????
01-02-2012 07:55 AM
01-02-2012 08:16 AM
well, i don't understand you when you say more separate loops??
timed while loop¿¿i have used it but i don't know how to implementate this to this program.
and finally i am using ubuntu and windows xp os
samething more, sorry but i am very new in labview, i think is very interesting program that have million of aplications..but i need help i am still lerning this!!
thank you!!
01-02-2012 07:01 PM
any idea?
01-03-2012 01:53 AM
In LV It's quite easy to run multiple threads, two separate while loops will run as two threads unless there's some wire depandancy. Use an Action Engine to store your data and you can use 2 loops, one for getting data and one for writing to file, which'll also reset the data cache.
/Y
01-03-2012 05:10 AM
sorry but i don't understand what are you saying me, i am new with this and i have lv 2009...can you give a simple example or something like this???
01-03-2012 06:55 AM
Very crude example, you'll also need to look up Action Engine
/Y
01-03-2012 07:00 AM
but i havent got action engine in my labview!!