Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

tcp, start timer

Hello,
I have to messure the time that a PC needs to connect to RT Target! Therefore I've installed a NI PCI-6221 card in my PC! On my host PC runs a VI which configures a connection to the RT Target using TCP. On the RT target runs a VI which sets a port on my PXI-6221 card with the received data.
The two cards are connected with a cable!
My problem is, that I have not found anything to start a timer  on my host PC VI which messures time without using two edges, period or frequency etc.
Can someone help me? Thanks for your efforts!
 
Best regards Oliver
0 Kudos
Message 1 of 6
(5,971 Views)
Hello Oliver,

you are able to use shared variable with time stamp to get the time.
For example you write a value to a shared variable on the host pc.

http://zone.ni.com/devzone/cda/tut/p/id/4679

And read out the value with the time stamp on the RT System.
You get the time when the value was written on the pc system.
Read out the current time and substract the time.

http://zone.ni.com/reference/en-XX/help/370622D-01/lvrtvihelp/rt_set_date_and_time/

Kind regards,

Elmar
0 Kudos
Message 2 of 6
(5,718 Views)
Hey Oliver,

the big problem is that you have different time stamp on the rt as well on the pc system.
And the time is below ms. Therfore its not so easy to realise the project.

Kind regards,

Elmar
0 Kudos
Message 3 of 6
(5,710 Views)
Thanks for your help Elmar,
I've forgot to mention that I have to try some different ways to achieve a result! I have to do this messure with different transfer protocols such as TCP, UDP, Data Socket and Shared Variables. I'm sorry!
But in the meantime i found a solution, therefore I start a trigger with the DAQmx-VI chosing "Counter Input-Two Edge Separation"! I start with a rising edge, transfer another high signal to my RT which stops the messure, becausse my PXI and my PCI-card are connected with a cable So that's it!
 
Kind regards,
 
Oliver
0 Kudos
Message 4 of 6
(5,639 Views)
Hey Oliver,

ok fine thats also a great solution.

Kind regards,

Elmar
0 Kudos
Message 5 of 6
(5,634 Views)
Hello Oliver,
     I am glad that things are working well for you now.  In the future please post questions about RT targets under LabVIEW RT and DAQ questions under Multifunction DAQ.  That way there other LabVIEW RT or DAQ users can help you with your question and also benefit from the solution.

Cheers,

NathanT
0 Kudos
Message 6 of 6
(5,571 Views)