ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

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,539 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,522 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,499 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,481 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,477 Views)

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

0 Kudos
Message 6 of 10
(3,460 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,442 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,432 Views)

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

0 Kudos
Message 9 of 10
(3,417 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,408 Views)