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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to work in diferents sequences...

Solved!
Go to solution

Downconverted vi's attached.


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
Download All
Message 41 of 71
(558 Views)

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!!

0 Kudos
Message 42 of 71
(550 Views)

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?


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
Message 43 of 71
(545 Views)

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!

0 Kudos
Message 44 of 71
(542 Views)

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.

 


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 45 of 71
(537 Views)

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!!

Download All
0 Kudos
Message 46 of 71
(535 Views)

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

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 47 of 71
(530 Views)

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

0 Kudos
Message 48 of 71
(515 Views)

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

 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 49 of 71
(506 Views)

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

 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 50 of 71
(506 Views)