From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
01-20-2012 02:35 AM
Downconverted vi's attached.
01-20-2012 03:23 AM
thanks ACE!!!!
ONE QUESTION!!
i am trying to do something...
i am going to explain you and if you can tell my how can be the phases to get it please...because i don't know where can i start...
i want to read the same array you have put every 32ms...
and do a buckle that send it to the other pc every500ms for example...so we are going to send 2d array...do you understand???
i don't konow what must i do to get it can you help me??
thaks EVERYBODY TO HELP ME IN THIS PROJECT!!
01-20-2012 04:16 AM
Alan,
Did you try this one?
http://forums.ni.com/t5/LabVIEW/TCP-IP-PROGRAM-ERROR/m-p/1844107#M629054
Sending something every 32ms deterministically may not be possible if you are working on windows platform. Timing may vary depending on windows tasks and processor loading. This would be the case for any windows based programming language, if this is critical, you will need to consider LabVIEW RT or a real time OS of some sort where you can send deterministic messages.
I will try and repeat what you are trying to do, please correct me if I am wrong.
You have a 2D array in a file? that you need to send each line every 32ms?
I am not sure what a buckle means, is this like a heartbeat (handshake) signal between the server and client?
01-20-2012 04:31 AM
i am simulating that i am reading, al line of one excel file every 32 msecs...
when i read it, also i catch the time in milisecons and i added to the array, then i will be able to see if i catched on time all my lines....
afther that, i will send the informatil i have read from the execel file to the other pc...i want to send it every 512ms...if i can...if i can't i will send more slowly..no problem..
i think i have exlain correctly, tell e if you don't understand...
thanks for your help!
01-20-2012 05:07 AM
I think I understand it better now.
You are basically acquiring data at 32ms.
You need to send this to your client every 500ms.
Please look at this example: https://decibel.ni.com/content/docs/DOC-8962
Its not what you are looking for, but you can adapt this to do what you want. The first loop will be your data acquisition loop, you need to store your data in a shift register, and every 500ms, enqueue an element to the queue withe data (timestamp + read data).
In the loop below, you could have the tcp server vi's and send it to the client successfully.
Hope this helps.
01-20-2012 05:52 AM
i have done this i think i am really close but i have problems with loops i don't know how to manage them properlly!
can you help, i attached the files if you want to see them!!!
thanks!!
01-20-2012 09:33 AM
It looks to me like you could do the following:
Let the 32ms for loop loop 16 times and let it autoindex on the output.
Remove the while loop around the Send data.
/Y
01-22-2012 04:06 PM
hi yamaeda!!!!!
what i want is, to bee reading information every 32ms...no stopping, it can be for an hour or for one minute....
and then send it to the other pc,,, for example every 500ms send all i have read until this moment....next 500ms send what i have read since first 500ms and second ms...
i think i have explained it better now??do you think??
thanks
01-23-2012 01:26 AM
Yes i understand. How exact must this 500ms be? Would 512 be close enough? Are the 32ms approximate or precise timing? Will the tcp send and data acquisision be performed in under 32ms?
Depending on the answers you have 2 options:
Loop data acquisision and send data in one combined loop, as i suggested above
or
Use one data acquisision loop and one data sender loop. That needs queues or events, but should be easy enough.
/Y
01-23-2012 01:26 AM
Yes i understand. How exact must this 500ms be? Would 512 be close enough? Are the 32ms approximate or precise timing? Will the tcp send and data acquisision be performed in under 32ms?
Depending on the answers you have 2 options:
Loop data acquisision and send data in one combined loop, as i suggested above
or
Use one data acquisision loop and one data sender loop. That needs queues or events, but should be easy enough.
/Y