LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

USB RAW BULK TRANSFER

Hi! I am trying to communicate between PC and uC using Labview USB RAW... I have successfully read and write data in interrupt method...Now I want to do in Bulk method....I used USB RAW-Bulk.vi from example for that...it worked....but  I want data in continuous mode(Such that after pressing start data comes out continuously without  any stop)...so I made a new vi....however it does not responding....I am attaching vi  ...

 

I am attaching also a vi of interrupt method that I modified to achieve data in continuos mode and it works....however I am not able to do it in bulk method...

Download All
0 Kudos
Message 1 of 12
(7,870 Views)

I am able to read data using following vi , but facing a strange problem...I am missing the data inbetween...I mean , I am not able to get data continuously....for example I am sending a variable which varies from 0 to 255 by increment of 1 in each iteration of USB function....but I just receive few points instead of all 255...I added some delay in my loop but it does not helping...

I am attaching the VI....Is this the right way for continuous data receiving in bulk method? 

0 Kudos
Message 2 of 12
(7,848 Views)

Keep the Visa Close function outside the While loop!

Shreyas Hebbare
Shreyas Technologies
India
0 Kudos
Message 3 of 12
(7,832 Views)

Shreyas,

               I have tried your advise. I have some interesting results to show... firstly I am describing my scenario.

I am continuously transfering variable incrementing by 1 in each USB function... see below..

do

{

USB()   'USB function call which performs read-write operation

a=a+1         'a will go for 0 to 255 continuously

toggle portb.0   ' after each iteration state portb.0 will change..that will help to find out time taken to complete one loop...helpful to find out data rate...

loop  '''continuous loop...

 

now...case-1: VISA close outside while loop...

                      In this case data is missing badly..see picture p-4..

                      and frequency of loop can be seen in image toggle-1...which has some dead period inbetween that I am not able to understand....

 

         case-2 VISA close inside while loop...

                     In this case datapoints are received but I can see break in data regularly...image p-3

                     and when data breaks we can see a small dead period coming up in loop frequency graph....

 

I am attaching files...             

 

 

 

Download All
0 Kudos
Message 4 of 12
(7,824 Views)

Hello, I'm new labview.estoy undertaking a project of a wind turbine control and I need to communicate my pic 18F4550 with labview 2009 not as making this application and that I think make a physical model and need me and Visualize in display panel MONITORING I am developing the simulation of electronic stage'm doing in proteus version 7 and am compiling the project in pic c compiler

greetings from chile

0 Kudos
Message 5 of 12
(6,693 Views)

@hack007 wrote:

Hello, I'm new labview.estoy undertaking a project of a wind turbine control and I need to communicate my pic 18F4550 with labview 2009 not as making this application and that I think make a physical model and need me and Visualize in display panel MONITORING I am developing the simulation of electronic stage'm doing in proteus version 7 and am compiling the project in pic c compiler



In what way does your question have anything to do with the earlier almost 4 year old discussion?

 

Also your attach word document is too blurry to see anything useful using the google document viewer. I would recommend that you start a new thread and attach the image directly. No need to wrap it into an office document.

0 Kudos
Message 6 of 12
(6,661 Views)

Estimated Altenbach and you advise me?

0 Kudos
Message 7 of 12
(6,648 Views)

@hack007 wrote:

Estimated Altenbach and you advise me?


My advice is to start a new thread and provide more detailed information. It has nothing to do with USB bulk raw transfer.

 

You seem to use the simulation toolkit, but have many missing subVIs. Where did you get this code? Do you have all required toolkits installed?

0 Kudos
Message 8 of 12
(6,632 Views)

Estimated Altenbach costs me a fellow group only showed me as I design my monitoring panel with my pic 18F4550 but not how to make the communication between the two if you can support me would be grateful.

regards

0 Kudos
Message 9 of 12
(6,620 Views)

@hack007 wrote:

Estimated Altenbach [...]


Estimations are fine for back-of-the-napkin analyses, but I think you'll need a precise Altenbach for what you're trying to do.
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 10 of 12
(6,598 Views)