LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

faster data communication way

I am using RT system. I have tried with shared variabe to output a signal(Double) to another RT system. It takes about 100ms. It is obviously too slow to my required frequency. Is there a faster way to transfer data? Thanks in advance.

0 Kudos
Message 1 of 10
(3,344 Views)

Hi Guo,

you can use TCP/IP for it.

The example finder will give some starting points.

 

Mike

0 Kudos
Message 2 of 10
(3,327 Views)

Shared Variables should be much faster than that.

Read this document to learn more.

 

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

0 Kudos
Message 3 of 10
(3,304 Views)

hi sachsm,

your answer is quite inspired. But in that case I should output the signal I have just one while loop to acquire image and do some analysis. I don't know how to add a single process variable to pass the data to a network published varible. It meas how to establish the high priority loop and low priority loop. 

 

0 Kudos
Message 4 of 10
(3,286 Views)

You can use Timed Loop's which have a loop rate and priority setting.   Perhaps you can describe your application in more detail or attach vi's so I can offer more help.

0 Kudos
Message 5 of 10
(3,282 Views)

This is the image. This loop is under a case structure.

0 Kudos
Message 6 of 10
(3,265 Views)

Do NOT post bmp files renamed to jpg just to get around the ban on them. Do you really think that saimply renaming a file changes the file format?

0 Kudos
Message 7 of 10
(3,247 Views)

I think that the problem is that you are trying to use single point data transfer via NSV's, you need to add buffering to the NSV's.

0 Kudos
Message 8 of 10
(3,237 Views)

I have tried with multi-buffer. It worked slower.

0 Kudos
Message 9 of 10
(3,222 Views)

Could you show me the client vi's?  Aggregate NSV data transfers via the PSP (Publish Subscribe Protocol) on a 10ms interval.  You can use the Flush vi to force

any pending NSV data to immediately transmit.  Also, could you tell me what type of NSV buffering you were using?

0 Kudos
Message 10 of 10
(3,213 Views)