LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

visa

Solved!
Go to solution

Hy ya the code is working. Thanx a lot yar. But y havent u set the baud rate n al? 

0 Kudos
Message 11 of 21
(1,038 Views)

If you don't wire those inputs, the values used will be those inside the ()

E.g, the default baud rate is 9600.

So, the configuration values are (here)

 

I suggest that you unmark that first answer as a solution and mark the answer where Ranjeet_Singh attached the VIs. It may help someone in the future.

 

Regards.

Mondoni
0 Kudos
Message 12 of 21
(1,033 Views)

I would like to add that Ranjeet_Singh's VIs are written as standalone VIs.  Normally you would only have one place where you configure your serial port and one place where you close it.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 13 of 21
(1,021 Views)

Bill,

Just checkin':

When you say "place", you mean the code?

Because that's what the way I've learned 🙂

Mondoni
0 Kudos
Message 14 of 21
(1,019 Views)

@joaopam wrote:

Bill,

Just checkin':

When you say "place", you mean the code?

Because that's what the way I've learned 🙂


You are correct.  Usually you have just one place in the code where you initialize the serial port.  And then one place (usually not in the same place as your init) where you close it.

 

The rare exception is if you expect something outside of LabVIEW to be using that COM port also.  But this is messy and it's better to avoid this if you can.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 15 of 21
(1,011 Views)

Yes, I agree with you.

The messy you've mentioned, I've experienced in my first months with LabVIEW. I don't have good memories with that. 😄

Thanks for the answer.

 

Regards

Mondoni
0 Kudos
Message 16 of 21
(1,002 Views)

anyway.. Both the solutions helped me out !!Smiley Happy

0 Kudos
Message 17 of 21
(987 Views)

Hi buddy,

                      Actually in all my application I am using 9600 as baud rate, 8 data bits, no parity and unfortunately labview uses this values as default values so Smiley Very HappySmiley Very HappySmiley Very Happy

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 18 of 21
(985 Views)

Friend billko,

                             I wrote this by taking into consideration that both the VI is running on 2 different PCs and will run only once i.e. if it either read or write the data from or to serial port then it will stop. As our friend is new in labview I tried to make it as simple as possible 

 

And this is just a sample example and nothingSmiley Wink

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 19 of 21
(982 Views)

@Ranjeet_Singh wrote:

Friend @billko,

                             I wrote this by taking into consideration that both the VI is running on 2 different PCs and will run only once i.e. if it either read or write the data from or to serial port then it will stop. As our friend is new in labview I tried to make it as simple as possible 

 

And this is just a sample example and nothingSmiley Wink


And that is exactly how I interpreted it.  The first thing I mentioned was that I thought you wrote it as two separate standlone VIs.  I didn't want to make it sound wrong, I just wanted to make sure he knew your VIs were intended for a specific use.  🙂

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 20 of 21
(972 Views)