10-27-2005 03:18 PM
10-27-2005 03:37 PM
10-27-2005 04:11 PM
10-27-2005 04:31 PM
10-31-2005 10:32 AM
Dennis,
The reason there is not a read file is because I do not need that at this time. I can monitor the instrument to see if the command has been executed by reading the LCD panel on it. If the command goes through "vulos\spreset\sactive\sfreq\s301.025\n", then the front panel LCD display fill show me that the instrument changed frequency to 301.025. If I use the 'Basic Read and Write" program, and change the 'write' input from a 'user defined input string' to just a plain old regular string (with ''\' codes displayed'), it will work. If I try to combine 3 different strings by using the 'Concatenate Strings' tool, it doesn't work. The reason I do this, is because I put it into a loop. When the defined frequency completes that cylce of testing, I want to change frequency and perform the tests again. This leads me to believe that the output of the 'Concatenate Strings' tool is not in the ''\' codes displayed' form. Is there a way to dump the output into a string that can be formated into the '\' codes displayed and then input that into the VISA 'Write'
Thansk again for your help....
10-31-2005 10:45 AM
10-31-2005 11:13 AM
09-20-2017 04:44 AM
I want to connect PICA II 104/8 printer with labview via NI VISA. It will work when I'm connect using USB but its not work in RS232. I want to write prn file through LabView. Please help me for this problem.
06-04-2020 11:30 AM
Hi, this is a simple read and write buffer VI. My program is running, but the read buffer is not able to read the data. Since I can see you have some advance knowledge in this, can you see what I missed to make it work?
Thanks.
06-04-2020 12:07 PM
Not many people have LabVIEW 2020 installed yet. Can you back save to say LabVIEW 2018? Also you might mention the hardware you are working with. What the expected response is, what the termination characters are, etc... i.e. give more details.
Without seeing the code my guess is you have wired the VISA Write return count to the VISA Read Byte count. VISA Read byte count input is just a buffer, you can allocate a lot more room that you expect to need. Try just wiring a constant like 1024 for an expected short reply or 200000 for a full scope trace.
You could also look at the code on your machine for examples..https://zone.ni.com/reference/en-XX/help/371361R-01/lvinstio/visa_read/#examples
Craig