Update: Got the regular version of Labview (2020) working with same P2 code, now attached as "ContinuousReadP2.zip". I first used the device manager to view which COM. I'm sure there's people out there better at this than me though! I am currently trying to communicate to a Serial Port mainly using the National Instruments labVIEW toolkit. Ni-MAX is not happy with that installation and reports an. The 'plug and play' instrument installs COM3 as a virtual com port. I had to develop that library because of an instrument that is not delivered with a driver. This serial send and receive G code was then put in an infinite loop.Īnyway, here's the FlexProp C code and LabView G code that have the two talking. Here is a new version of a library to access a serial communication port without NI-VISA, based on WINAPI (kernel32) commands. My goal is to have the 28 temperatures continuously displayed in LabVIEW (version 8.5).(too old to reply) Madri 18 years ago Using VISA Wait on Event in while loop to read data if and when data arrives at the serial port via RS232. No problem installing the software, the device. Using 'VISA Wait on Event' to Read data from serial port as it arrives via RS232. So, to handle that, had to add an second serial receive block to get that (and then do nothing with it). This is the first time Ive seen this error and there is no information searching on Google or NI website. One issue was that FlexProp C's serial receive functions echo back the input. Trying to just load to RAM and then use LabView seems hit or miss for reasons I don't understand yet.įortunately, LabView NXG comes with an example, "VISA Serial Simple Query" that is very close to what was needed. So far, it seems like the only way to make this work reliably is to flash the P2 with the code and then fire up LabView NXG. But, LabView's VISA seems to be very possessive of the serial port. Haven't used LabView in years, but on a whim am testing out connecting LabView NXG (community edition) to P2 over serial port.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |