Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

serial communication

Hello,

I am an undergraduate student .I am working on my degree project.I only have 1 week left for my final degree project submission.I have to make a GUI which basically communicates with DSPIC30F4011(a controller from Microchip) through UART/serial port. Can you please guide me where to START from.I have only gone through the getting started guide LABVIEW.
 
 
0 Kudos
Message 1 of 10
(4,703 Views)

The best place to start is with the shipping examples. Open the example finder (under the help menu), and then do a search for serial. I don't have the latest version of LabVIEW and don't remember if the examples with that are called the same as with the version I have. I have two - Basic Serial Write and Read and Advanced Serial Write and Read.

I would recomend that you first try serial communication with something like Hyperterminal before you try to write your own program. If you can get this to work, you know that you have the settings (baud rate, parity, etc.) and the cable type (null-modem or straight-through) correct before you try to write and debug your code.

Message 2 of 10
(4,694 Views)
Hi Bonga,
 
I'd also recommend contacting the vendor (Microchip) for a list of remote commands or a serial manual of some sort that can help you "talk" to the controller.
 
Best of luck,
Message 3 of 10
(4,666 Views)
iv tried to implement the loopback code given on https://forums.ni.com/t5/Example-Code/LabVIEW-Loopback-Test-for-Serial-Port/ta-p/3502454 but it gives an error '1073807202'
What should i do? 😞
0 Kudos
Message 4 of 10
(4,619 Views)
Hello Bonga,
 
Error 1073807202 is the result of VISA not being installed or incorrectly installed on your computer.  Go to NIs website and download a VISA driver and then perform the loopback test.
 
 
Best of luck,
Message 5 of 10
(4,611 Views)
i'v downloaded the visa400full.exe from the link you'v given but it doesnt run and instead says this is not a valid Win32 application. Why?
What should i do noe? 😞 i'v got windows XP.
0 Kudos
Message 6 of 10
(4,542 Views)

I just downloaded it to my xp system and it installed with no problems. It's a self-extracting zip file. Do you get the error before or after it's been unzipped?

You could try downloading it again. Since you are using LabVIEW at your university, it's possible that it already exists on a server there.

0 Kudos
Message 7 of 10
(4,539 Views)
well, iv tried but just cant make the driver run. please can you tell me whether this driver should run with the evaluation version of LabView 8??
0 Kudos
Message 8 of 10
(4,465 Views)
The error message you are getting is from windows and has nothing to do with whatever version of LabVIEW you have or don't have installed. That's assuming that you get the error when you double click on the setup file that gets unzipped. I'm not sure what else to suggest. Is there another computer that you can try downloading it to?
0 Kudos
Message 9 of 10
(4,459 Views)
Do you have administrator rights on the computer?
0 Kudos
Message 10 of 10
(4,389 Views)