Quantcast
Channel: Instrument Control (GPIB, Serial, VISA, IVI) topics
Viewing all articles
Browse latest Browse all 5565

viVPrintf can't use "&"

$
0
0

hi:

I want to save image from VISA

I use 

 

status = viVPrintf(vi, "Smiley Very HappyISKSmiley FrustratedAVE:IMAGE " "FALE1"",JPEG,SCR,ON,INVERT" + vbCrLf, 0) 

 

it can save image.

but i use 

 

 Dim filename As String = VI_filename.Text

status = viVPrintf(vi, "Smiley Very HappyISKSmiley FrustratedAVE:IMAGE " & filename & ",JPEG,SCR,ON,INVERT" + vbCrLf, 0) 

 

it can't work!

why?


Viewing all articles
Browse latest Browse all 5565

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>